Menu
Get Revision
Retrieve a Revision
GET
/revisions/{id}Use it in a workflow
- Add a step and choose the Directus connector.
- Pick the Get Revision action (under Revisions).
- Fill in the fields below, then reference the result from later steps as
{{getRevision.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getRevision.response.data.<field>}}.
{
"data": {
"id": 1,
"activity": 2,
"collection": "articles",
"item": "168",
"data": {
"author": 1,
"body": "This is my first post",
"featured_image": 15,
"id": "168",
"title": "Hello, World!"
},
"delta": {
"title": "Hello, World!"
},
"parent": null,
"version": "draft"
}
}
Need more? See the Directus guide for connection setup and behaviour shared by every action.
Was this page helpful?