WARNING

WARNING: These APIs are currently in an 'alpha' state and are likely to change over time. We recommend you not use them in a production setting at this time!


Create a Callback

Attributes

subscriptions
array - required
url
string - required

Definition

POST  /properties/:property_id/callbacks

Example Request

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"
      ]
    }
  }
}'

Example Response

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"
    }
  }
}