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!


Update a Callback

Attributes

subscriptions
array - required
url
string - required

Definition

PATCH  /callbacks/:id

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/callbacks/:id \
  -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 PATCH \
  -d \
'
{
  "data": {
    "attributes": {
      "url": "https://www.example.net",
      "subscriptions": [
        "rule.created",
        "build.created"
      ]
    },
    "type": "callbacks",
    "id": "CBdf4f5c2c509b4dc2b56ecd77b8ccfb04"
  }
}'

Example Response

200 OK
{
  "data": {
    "id": "CBdf4f5c2c509b4dc2b56ecd77b8ccfb04",
    "type": "callbacks",
    "attributes": {
      "subscriptions": [
        "rule.created",
        "build.created"
      ],
      "url": "https://www.example.net"
    },
    "relationships": {
      "property": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/callbacks/CBdf4f5c2c509b4dc2b56ecd77b8ccfb04/property"
        },
        "data": {
          "type": "properties",
          "id": "PR7e2bd98872024e13a51e5c114ac768d6"
        }
      }
    },
    "links": {
      "property": "https://mc-api-activation-reactor-qe.adobe.io/properties/PR7e2bd98872024e13a51e5c114ac768d6",
      "self": "https://mc-api-activation-reactor-qe.adobe.io/callbacks/CBdf4f5c2c509b4dc2b56ecd77b8ccfb04"
    }
  }
}