Update a user
PATCH
/v1/users/{userId}curl -X PATCH 'https://api.embodiflow.io/v1/users/{userId}' \
-H 'Authorization: Bearer $EMBODIFLOW_PAT' \
-H 'Content-Type: application/json' \
-d '{
"status": "active"
}'Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Path parameters
- userIdstringrequired
Header parameters
- If-Matchstring
Optional precondition. A matching tag proceeds and returns the new ETag. A stale tag returns 412 PRECONDITION_FAILED with no write. Absent proceeds (opt-in this release). If-Match: * succeeds when the resource exists. Malformed values return 400 IF_MATCH_INVALID.
Request body
Content-Typeapplication/json
- statusstringrequiredAllowed valuesactivedisabled
Responses
Success
- dataobjectrequired
- userobjectrequired
- metaobjectrequired
- requestIdstringrequired
Response example
{
"data": {
"user": {
"id": "string",
"email": "string",
"displayName": "string",
"avatarUrl": "string",
"hasPassword": false,
"status": "string",
"lastLoginAt": "string",
"emailVerifiedAt": "string",
"handle": "string"
}
},
"meta": {
"requestId": "string"
}
}Servershttps://api.embodiflow.io/v1https://api.embodiflow.dev/v1