SoulFire LogoSoulFire

Update user

Updates an existing user's profile information.

PATCH
/v1/users/:id

Updates an existing user's profile information.

Authorization

AuthorizationBearer <token>

Preferred API authentication. Use a JWT with the api audience.

In: header

Path Parameters

id*string

The unique identifier (UUID) of the user to update. Cannot be the ID of the requesting user (cannot update self via this method). Cannot be the root user ID (00000000-0000-0000-0000-000000000000).

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "http://127.0.0.1:38765/v1/users/:id" \  -H "Content-Type: application/json" \  -d '{    "username": "string",    "role": {},    "email": "user@example.com"  }'
{}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}

How is this page?