Menu
Create Tag
Create a new tag for the project
POST
/projects/{projectId}/tagsUse it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Create Tag action (under Projects).
- Fill in the fields below, then reference the result from later steps as
{{createTag.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"title": "string",
"name": "string",
"description": "string",
"metadata": {
"tone": "default"
}
}
Response
Returns 201 with an object. Read it in later steps with {{createTag.response.data.<field>}}.
{
"name": "string",
"title": "string",
"description": "string",
"metadata": {
"tone": "default"
},
"datasets": [
{
"name": "string",
"aclMode": "string"
}
]
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?