Use the Entities API to retrieve, create, update, and delete entities. An entity is a set of data that belongs together (such as for a product, campaign, project, story, recipe, or asset).
Use the Entities API to retrieve, create, update, and delete entities. An entity is a set of data that belongs together (such as for a product, campaign, project, story, recipe, or asset).
To use the Try it feature of the Entities API, you need:
curl -i -X GET \
'https://your-server/api/entities/{id}/lifecycle' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "actions": { "property1": { … }, "property2": { … } }, "self": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false } }
curl -i -X POST \
'https://your-server/api/entities/{id}/lifecycle/submit' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
curl -i -X POST \
'https://your-server/api/entities/{id}/lifecycle/directpublish' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
curl -i -X POST \
'https://your-server/api/entities/{id}/lifecycle/approve' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
The reject request containing the reason for the rejection.
curl -i -X POST \
'https://your-server/api/entities/{id}/lifecycle/reject' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"reason": "string"
}'
curl -i -X POST \
'https://your-server/api/entities/{id}/lifecycle/archive' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
curl -i -X POST \
'https://your-server/api/entities/{id}/lifecycle/restore' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
curl -i -X POST \
'https://your-server/api/entities/{id}/lifecycle/restorefromdelete' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
curl -i -X POST \
'https://your-server/api/entities/{id}/lifecycle/softdeleteentity' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'