Skip to main content
PATCH
http://localhost:3000
/
subjects
/
{id}
curl -X PATCH 'https://api.example.com/subjects/sub_123' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "metadata": {
      "name": "John Doe Updated",
      "email": "john.updated@example.com"
    }
  }'
{
  "id": "sub_123",
  "type": "user",
  "externalId": "user-456",
  "metadata": {
    "name": "John Doe Updated",
    "email": "john.updated@example.com"
  }
}

Path Parameters

id
string
required
The unique identifier of the subject to update

Request Body

metadata
object
Updated metadata for the subject

Response

Returns the updated subject object.
curl -X PATCH 'https://api.example.com/subjects/sub_123' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "metadata": {
      "name": "John Doe Updated",
      "email": "john.updated@example.com"
    }
  }'
{
  "id": "sub_123",
  "type": "user",
  "externalId": "user-456",
  "metadata": {
    "name": "John Doe Updated",
    "email": "john.updated@example.com"
  }
}