Menu
Get Comment
Get Comment by ID
GET
/comments/{id}Use it in a workflow
- Add a step and choose the Directus connector.
- Pick the Get Comment action (under Comments).
- Fill in the fields below, then reference the result from later steps as
{{getComment.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getComment.response.data.<field>}}.
{
"data": {
"collection": "articles",
"id": "2fab3b9d-0543-4b87-8a30-3c5ee66fedf1",
"item": 15,
"comment": "This is a comment on an article",
"date_created": "2023-01-15T09:14:52Z",
"date_updated": "2023-01-15T09:00:00Z",
"user_created": "12e62fd0-29c7-4fd3-b3d3-c7a39933e8af",
"user_updated": "12e62fd0-29c7-4fd3-b3d3-c7a39933e8af"
}
}
Need more? See the Directus guide for connection setup and behaviour shared by every action.
Was this page helpful?