curl https://mc-api-activation-reactor-integration.adobe.io/properties/:property_id/callbacks \
-H "Accept: application/vnd.api+json;revision=1" \
-H "Content-Type: application/vnd.api+json" \
-H "Authorization: Bearer [TOKEN]" \
-H "X-Api-Key: [KEY]" \
-X POST \
-d \
'
{
"data": {
"attributes": {
"url": "https://www.example.com",
"subscriptions": [
"rule.created"
]
}
}
}'
201 Created
{
"data": {
"id": "CB1707af6ceadb4dedb351da65e518ca12",
"type": "callbacks",
"attributes": {
"subscriptions": [
"rule.created"
],
"url": "https://www.example.com"
},
"relationships": {
"property": {
"links": {
"related": "http://localhost:9010/callbacks/CB1707af6ceadb4dedb351da65e518ca12/property"
},
"data": {
"id": "PR825de8b8e15e4182a0cbb403de8b44eb",
"type": "properties"
}
}
},
"links": {
"property": "http://localhost:9010/properties/PR825de8b8e15e4182a0cbb403de8b44eb",
"self": "http://localhost:9010/callbacks/CB1707af6ceadb4dedb351da65e518ca12"
}
}
}