Menu
Update Collection
Update a Collection
PATCH
/collections/{id}Use it in a workflow
- Add a step and choose the Directus connector.
- Pick the Update Collection action (under Collections).
- Fill in the fields below, then reference the result from later steps as
{{updateCollection.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"meta": {
"icon": "people",
"color": "#6644ff",
"note": null,
"display_template": null,
"hidden": false,
"singleton": false,
"translation": null,
"versioning": false,
"archive_field": null,
"archive_app_filter": null,
"archive_value": null,
"unarchive_value": null
}
}
Response
Returns 200 with an object. Read it in later steps with {{updateCollection.response.data.<field>}}.
{
"data": {
"collection": "customers",
"icon": "string",
"note": "string",
"display_template": "string",
"hidden": false,
"singleton": false,
"translations": [
null
],
"archive_field": "string",
"archive_app_filter": false,
"archive_value": "string",
"unarchive_value": "string",
"sort_field": "string"
}
}
Need more? See the Directus guide for connection setup and behaviour shared by every action.
Was this page helpful?