Replace all existing Rules on a Library with the specified Rules
PATCH /libraries/:library_id/relationships/rules
curl https://reactor.adobe.io/libraries/:library_id/relationships/rules \
-H "Accept: application/vnd.api+json;revision=1" \
-H "Content-Type: application/vnd.api+json" \
-H "Authorization: Bearer [TOKEN]" \
-H "X-Api-Key: [KEY]" \
-H "X-Gw-Ims-Org-Id: [ORG_ID]" \
-X PATCH \
-d \
'
{
"data": [
{
"id": "RL0dcb6028f3094ba49b54020243a410d6",
"type": "rules"
}
]
}'
{
"data": [
{
"type": "rules",
"id": "RL0dcb6028f3094ba49b54020243a410d6"
}
],
"links": {
"related": "https://reactor.adobe.io/libraries/LB4de9f01f6545401fabc502fa629d73f9/rules",
"self": "https://reactor.adobe.io/libraries/LB4de9f01f6545401fabc502fa629d73f9/relationships/rules"
}
}