Menu
Get Content Version
Retrieve a Content Version
GET
/versions/{id}Use it in a workflow
- Add a step and choose the Directus connector.
- Pick the Get Content Version action (under Versions).
- Fill in the fields below, then reference the result from later steps as
{{getContentVersion.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getContentVersion.response.data.<field>}}.
{
"data": {
"id": "63716273-0f29-4648-8a2a-2af2948f6f78",
"key": "draft",
"name": "My Draft",
"collection": "articles",
"item": "168",
"hash": "string",
"date_created": "2022-05-11T13:14:52Z",
"date_updated": "2022-05-11T13:14:53Z",
"user_created": "63716273-0f29-4648-8a2a-2af2948f6f78",
"user_updated": "63716273-0f29-4648-8a2a-2af2948f6f78",
"delta": {}
}
}
Need more? See the Directus guide for connection setup and behaviour shared by every action.
Was this page helpful?