Menu
Create Attribute Definition
Create Attribute Definition
POST
/v2026-04-27/organizations/{organizationId}/attribute-definitionsUse it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Create Attribute Definition action (under User Attributes).
- Fill in the fields below, then reference the result from later steps as
{{createAttributeDefinition.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"key": "year_started",
"type": "string"
}
Response
Returns 200 with an object. Read it in later steps with {{createAttributeDefinition.response.data.<field>}}.
{
"key": "year_started",
"type": "string",
"sources": [
"saml",
"sanity"
],
"createdAt": "2026-01-08T12:00:00Z",
"alreadyExists": true
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?