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": "CB52cd6c534ebe4e709bea4cd5cb961af7"
  }
}'

Example Response

200 OK
{
  "data": {
    "id": "CB52cd6c534ebe4e709bea4cd5cb961af7",
    "type": "callbacks",
    "attributes": {
      "subscriptions": [
        "rule.created",
        "build.created"
      ],
      "url": "https://www.example.net"
    },
    "relationships": {
      "property": {
        "links": {
          "related": "http://localhost:9010/callbacks/CB52cd6c534ebe4e709bea4cd5cb961af7/property"
        },
        "data": {
          "id": "PR0568dd3776f34cbd96ca2ec91f265485",
          "type": "properties"
        }
      }
    },
    "links": {
      "property": "http://localhost:9010/properties/PR0568dd3776f34cbd96ca2ec91f265485",
      "self": "http://localhost:9010/callbacks/CB52cd6c534ebe4e709bea4cd5cb961af7"
    }
  }
}