SupportWire API
API ReferenceUsers

Update team member

Required scope: `users:write`, `actor=self`.

PATCH
/api/oauth/v1/users/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

OAuth access token, e.g. Authorization: Bearer swot_….

In: header

Path Parameters

id*string

Membership ID.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/api/oauth/v1/users/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "data": {
    "id": "string",
    "role": "admin",
    "archived": true,
    "user": {
      "id": "string",
      "name": "string",
      "email": "string",
      "instagram_handle": "string",
      "profile_picture_url": "string"
    }
  }
}