Retrieve the Rules related to the specified Library.
GET /libraries/:library_id/rules
curl https://reactor.adobe.io/libraries/:library_id/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 GET
{
"data": [
{
"id": "RL386f3811334848f78618758782ce2494",
"type": "rules",
"attributes": {
"created_at": "2021-10-05T19:13:12.343Z",
"deleted_at": null,
"dirty": false,
"enabled": true,
"name": "Example Rule",
"published": false,
"published_at": null,
"revision_number": 1,
"updated_at": "2021-10-05T19:13:12.343Z",
"review_status": "unsubmitted"
},
"relationships": {
"libraries": {
"links": {
"related": "https://reactor.adobe.io/rules/RL386f3811334848f78618758782ce2494/libraries"
}
},
"revisions": {
"links": {
"related": "https://reactor.adobe.io/rules/RL386f3811334848f78618758782ce2494/revisions"
}
},
"notes": {
"links": {
"related": "https://reactor.adobe.io/rules/RL386f3811334848f78618758782ce2494/notes"
}
},
"property": {
"links": {
"related": "https://reactor.adobe.io/rules/RL386f3811334848f78618758782ce2494/property"
},
"data": {
"id": "PR655bb3ef6c06406b9330c7a4ba264a60",
"type": "properties"
}
},
"origin": {
"links": {
"related": "https://reactor.adobe.io/rules/RL386f3811334848f78618758782ce2494/origin"
},
"data": {
"id": "RL41b6d70a8764448f88d33ce560dbf4db",
"type": "rules"
}
},
"rule_components": {
"links": {
"related": "https://reactor.adobe.io/rules/RL386f3811334848f78618758782ce2494/rule_components"
}
}
},
"links": {
"property": "https://reactor.adobe.io/properties/PR655bb3ef6c06406b9330c7a4ba264a60",
"origin": "https://reactor.adobe.io/rules/RL41b6d70a8764448f88d33ce560dbf4db",
"self": "https://reactor.adobe.io/rules/RL386f3811334848f78618758782ce2494",
"rule_components": "https://reactor.adobe.io/rules/RL386f3811334848f78618758782ce2494/rule_components"
},
"meta": {
"latest_revision_number": 1
}
}
],
"meta": {
"pagination": {
"current_page": 1,
"next_page": null,
"prev_page": null,
"total_pages": 1,
"total_count": 1
}
}
}