Adobe Launch Logo Adobe Experience Platform Launch

    • Light
    • Dark

Set the Environment relationship on a Library

Definition

PATCH  /libraries/:library_id/relationships/environment

Example Request

curl https://reactor.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": "EN88390645811e4f278d0ab63e91e204ac",
    "type": "environments"
  }
}'

Example Response

200 OK
{
  "data": {
    "id": "EN88390645811e4f278d0ab63e91e204ac",
    "type": "environments"
  },
  "links": {
    "related": "https://reactor.adobe.io/libraries/LB52fd55f2785046e6b154672e0f05fe79/environment",
    "self": "https://reactor.adobe.io/libraries/LB52fd55f2785046e6b154672e0f05fe79/relationships/environment"
  }
}