ZITADEL Docs
APIsCore ResourcesV1Organization Objects

SetUserMetadata

Set User Metadata

Deprecated: use SetUserMetadata instead.

This endpoint either adds or updates a metadata value for the requested key. Make sure the value is base64 encoded.

POST
/users/{id}/metadata/{key}

Path Parameters

id*string
key*string

Request Body

application/json

value?string
Formatbyte
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/users/string/metadata/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "string",
  "details": {
    "sequence": 0,
    "creationDate": "1s",
    "changeDate": "1s",
    "resourceOwner": "string"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?