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!


Set Environment Relationship for a Library

Attributes

name
string - optional

Definition

PATCH  /libraries/:library_id/relationships/environment

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/libraries/:library_id/relationships/environment \
  -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": "ENbc402e19e3834a5e93fe544492110d5c",
    "type": "environments"
  }
}'

Example Response

200 OK
{
  "data": {
    "id": "ENbc402e19e3834a5e93fe544492110d5c",
    "type": "environments"
  },
  "links": {
    "related": "http://localhost:9010/libraries/LBdc2d00f923e84abea5f67d52555f6927/environment",
    "self": "http://localhost:9010/libraries/LBdc2d00f923e84abea5f67d52555f6927/relationships/environment"
  }
}