Menu
Get Comments
Get Comments
GET
/commentsUse it in a workflow
- Add a step and choose the Directus connector.
- Pick the Get Comments action (under Comments).
- Fill in the fields below, then reference the result from later steps as
{{getComments.response.data}}.
Request
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getComments.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"
}
],
"meta": {
"total_count": 0,
"filter_count": 0
}
}
Need more? See the Directus guide for connection setup and behaviour shared by every action.
Was this page helpful?