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!


Replace resources on a Library

Definition

PATCH  /libraries/:library_id/relationships/resources

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/libraries/:library_id/relationships/resources \
  -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": [
    {
      "id": "RL2642943907b946baab9491e09dbcf1e5",
      "type": "rules"
    }
  ]
}'

Example Response

200 OK
{
  "data": [
    {
      "id": "RL2642943907b946baab9491e09dbcf1e5",
      "type": "rules"
    }
  ],
  "links": {
    "related": "http://localhost:9010/libraries/LB8e6dcc47fa5a4e198b6adfb95f56d8c7/resources",
    "self": "http://localhost:9010/libraries/LB8e6dcc47fa5a4e198b6adfb95f56d8c7/relationships/resources"
  }
}