name
platform
development
domains
privacy
rule_component_sequencing_enabled
ssl_enabled
undefined_vars_return_empty
Some attributes marked as optional above, are required depending on the platform. For example, if you create a web property (a Property
with "platform": "web"
), then domains
is a required attribute. If you create a mobile or an edge property (a Property
with "platform": "mobile"
or "platform": "edge"
), then domains
is a not required.
POST /companies/:company_id/properties
curl https://reactor.adobe.io/companies/:company_id/properties \
-H "Accept: application/vnd.api+json;revision=1" \
-H "Content-Type: application/vnd.api+json" \
-H "Authorization: Bearer [TOKEN]" \
-H "X-Api-Key: [KEY]" \
-H "X-Gw-Ims-Org-Id: [ORG_ID]" \
-X POST \
-d \
'
{
"data": {
"attributes": {
"name": "Kessel Property A",
"domains": [
"example.com"
],
"platform": "web"
},
"type": "properties"
}
}'
{
"data": {
"id": "PR057354e579dc4910a60816c1422b19ed",
"type": "properties",
"attributes": {
"created_at": "2023-04-21T23:03:41.501Z",
"enabled": true,
"name": "Kessel Property A",
"updated_at": "2023-04-21T23:03:41.501Z",
"platform": "web",
"development": false,
"token": "f74ed1745ad0",
"created_by_email": "ciltaru@adobe.com",
"created_by_display_name": "George Ciltaru",
"updated_by_email": "ciltaru@adobe.com",
"updated_by_display_name": "George Ciltaru",
"domains": [
"example.com"
],
"undefined_vars_return_empty": false,
"rule_component_sequencing_enabled": true
},
"relationships": {
"company": {
"links": {
"related": "https://reactor.adobe.io/properties/PR057354e579dc4910a60816c1422b19ed/company"
},
"data": {
"id": "COb0dbd63fb8304a6197eef1f5cd0324fb",
"type": "companies"
}
},
"callbacks": {
"links": {
"related": "https://reactor.adobe.io/properties/PR057354e579dc4910a60816c1422b19ed/callbacks"
}
},
"hosts": {
"links": {
"related": "https://reactor.adobe.io/properties/PR057354e579dc4910a60816c1422b19ed/hosts"
}
},
"environments": {
"links": {
"related": "https://reactor.adobe.io/properties/PR057354e579dc4910a60816c1422b19ed/environments"
}
},
"libraries": {
"links": {
"related": "https://reactor.adobe.io/properties/PR057354e579dc4910a60816c1422b19ed/libraries"
}
},
"data_elements": {
"links": {
"related": "https://reactor.adobe.io/properties/PR057354e579dc4910a60816c1422b19ed/data_elements"
}
},
"extensions": {
"links": {
"related": "https://reactor.adobe.io/properties/PR057354e579dc4910a60816c1422b19ed/extensions"
}
},
"rules": {
"links": {
"related": "https://reactor.adobe.io/properties/PR057354e579dc4910a60816c1422b19ed/rules"
}
},
"notes": {
"links": {
"related": "https://reactor.adobe.io/properties/PR057354e579dc4910a60816c1422b19ed/notes"
}
}
},
"links": {
"company": "https://reactor.adobe.io/companies/COb0dbd63fb8304a6197eef1f5cd0324fb",
"data_elements": "https://reactor.adobe.io/properties/PR057354e579dc4910a60816c1422b19ed/data_elements",
"environments": "https://reactor.adobe.io/properties/PR057354e579dc4910a60816c1422b19ed/environments",
"extensions": "https://reactor.adobe.io/properties/PR057354e579dc4910a60816c1422b19ed/extensions",
"rules": "https://reactor.adobe.io/properties/PR057354e579dc4910a60816c1422b19ed/rules",
"self": "https://reactor.adobe.io/properties/PR057354e579dc4910a60816c1422b19ed"
},
"meta": {
"rights": [
"approve",
"develop",
"edit_property",
"manage_environments",
"manage_extensions",
"publish"
]
}
}
}