Menu
Update Robot
Update robot token
PUT
/v2025-07-11/access/{resourceType}/{resourceId}/robots/{robotId}Use it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Update Robot action (under Access).
- Fill in the fields below, then reference the result from later steps as
{{updateRobot.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"expiresAt": "2030-01-01T00:00:00.000Z"
}
Response
Returns 200 with an object. Read it in later steps with {{updateRobot.response.data.<field>}}.
{
"id": "string",
"label": "string",
"createdAt": "2025-01-01T00:00:00Z",
"memberships": [
{
"resourceType": "project",
"resourceId": "c7ja4siy",
"roleNames": [
"administrator",
"editor"
],
"addedAt": "2024-01-15T12:15:30Z",
"lastSeenAt": "2024-01-15T12:15:30Z",
"resourceUserId": "projectUserId123"
}
],
"tokenId": "string",
"expiresAt": "2025-01-01T00:00:00Z",
"lastSeenAt": "2025-01-01T00:00:00Z",
"managedBy": {
"resourceType": "organization",
"resourceId": "oeMyOrg"
}
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?