Update the current identity

Update the current identity when authenticated as an identity.

PUT https://api.jsonpad.io/identities/self

Example

cURL
123456789curl https://api.jsonpad.io/identities/self \
  -X PUT \
  -H "Content-Type: application/json" \
  -H "x-api-token: <YOUR TOKEN>" \
  -H "x-identity-token: <IDENTITY TOKEN>" \
  -H "x-identity-group: <IDENTITY GROUP>" \
  -d '{
        "name": "My Updated Identity"
      }'

Parameters

No parameters

Request headers

  • required
    x-api-tokenstringYour API token.
  • required
    x-identity-tokenstringAn identity token.
  • required
    x-identity-groupstringAn identity group.

Request body

{
name: "Sample Identity"
password: "new-secret"
}
  • optional
    namestringThe name of the identity.
  • optional
    passwordstring

    The identity's password.

Response body

200 OK
{
id: "3212acc3-e7bf-4e85-a22d-5e7cbb495256"
createdAt: "2026-09-05T11:30:45.725Z"
updatedAt: "2026-09-05T11:30:45.725Z"
user: {
id: "4379955b-fccd-42da-b626-758ac53bef89"
createdAt: "2026-09-05T11:30:45.725Z"
updatedAt: "2026-09-05T11:30:45.725Z"
lastActiveAt: "2026-09-05T11:30:45.725Z"
activated: true
displayName: "Sample User"
description: "Sample user description"
}
name: "Sample Identity"
group: "sample-group"
activated: true
}

Response headers

  • last-modified2026-09-05T11:30:45.725ZThe date this identity was last modified.
2024-10-29