Skip to main content
POST
/
v2
/
UserPatch
Patch user profile using JSON Patch
curl --request POST \
  --url http://localhost:3000/v2/UserPatch \
  --header 'Content-Type: application/json' \
  --header 'X-Bunker-Token: <api-key>' \
  --data '
{
  "mode": "login",
  "identity": "<string>",
  "patch": [
    {
      "op": "add",
      "path": "<string>",
      "value": "<unknown>"
    }
  ],
  "request_metadata": {}
}
'
{
  "status": "ok"
}

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
mode
enum<string>
required

Mode of user identification

Available options:
login,
token,
email,
phone,
custom
identity
string
required

User identifier corresponding to the mode

patch
object[]
required
request_metadata
object

Additional metadata for the request

Response

200 - application/json

User patched successfully

status
string
Example:

"ok"