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!


Add resources to a Library

Insert revisable resources into the specified library.

The revisable resources are Extensions, DataElements, and Rules.

Definition

POST  /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 POST \
  -d \
'
{
  "data": [
    {
      "id": "DE12da661a3e394952afc2e6eea76ff90d",
      "type": "data_elements"
    },
    {
      "id": "RLe7c91f21bb324578902a709867c86afc",
      "type": "rules"
    }
  ]
}'

Example Response

200 OK
{
  "data": [
    {
      "id": "DE12da661a3e394952afc2e6eea76ff90d",
      "type": "data_elements"
    },
    {
      "id": "RLe7c91f21bb324578902a709867c86afc",
      "type": "rules"
    }
  ],
  "links": {
    "related": "http://localhost:9010/libraries/LB85a6f78455d84cb6ba976eb003e1bd5e/resources",
    "self": "http://localhost:9010/libraries/LB85a6f78455d84cb6ba976eb003e1bd5e/relationships/resources"
  }
}