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": "RL554de690f8224e99a03df8acf1420eed",
"type": "rules",
"attributes": {
"created_at": "2023-04-21T23:01:02.422Z",
"deleted_at": null,
"dirty": false,
"enabled": true,
"name": "Example Rule",
"published": false,
"published_at": null,
"revision_number": 1,
"updated_at": "2023-04-21T23:01:02.422Z",
"created_by_email": "ciltaru@adobe.com",
"created_by_display_name": "George Ciltaru",
"updated_by_email": "ciltaru@adobe.com",
"updated_by_display_name": "George Ciltaru",
"review_status": "unsubmitted"
},
"relationships": {
"libraries": {
"links": {
"related": "https://reactor.adobe.io/rules/RL554de690f8224e99a03df8acf1420eed/libraries"
}
},
"revisions": {
"links": {
"related": "https://reactor.adobe.io/rules/RL554de690f8224e99a03df8acf1420eed/revisions"
}
},
"notes": {
"links": {
"related": "https://reactor.adobe.io/rules/RL554de690f8224e99a03df8acf1420eed/notes"
}
},
"property": {
"links": {
"related": "https://reactor.adobe.io/rules/RL554de690f8224e99a03df8acf1420eed/property"
},
"data": {
"id": "PR3346339888294729806405fccd5d3c4a",
"type": "properties"
}
},
"origin": {
"links": {
"related": "https://reactor.adobe.io/rules/RL554de690f8224e99a03df8acf1420eed/origin"
},
"data": {
"id": "RL1208671fbfdc4440a67bfcb7e5512cda",
"type": "rules"
}
},
"rule_components": {
"links": {
"related": "https://reactor.adobe.io/rules/RL554de690f8224e99a03df8acf1420eed/rule_components"
}
}
},
"links": {
"property": "https://reactor.adobe.io/properties/PR3346339888294729806405fccd5d3c4a",
"origin": "https://reactor.adobe.io/rules/RL1208671fbfdc4440a67bfcb7e5512cda",
"self": "https://reactor.adobe.io/rules/RL554de690f8224e99a03df8acf1420eed",
"rule_components": "https://reactor.adobe.io/rules/RL554de690f8224e99a03df8acf1420eed/rule_components"
},
"meta": {
"latest_revision_number": 1
}
}
],
"meta": {
"pagination": {
"current_page": 1,
"next_page": null,
"prev_page": null,
"total_pages": 1,
"total_count": 1
}
}
}