Users

Replace a member's role set

Overwrites the roles assigned to a member of the authenticated caller's organization. The caller cannot update their own roles or an account owner's roles. Platform-level roles require the caller's org to be a parent merchant.

patch/v1/users/{user_id}/roles

Request

  • Base URL
    https://identity-api.paymongo.com
  • URL
    https://identity-api.paymongo.com/v1/users/{user_id}/roles
  • Auth
    HTTP bearer

Path parameters

user_idstring required

User id

Request body

Example request

{
  "data": {
    "attributes": {
      "roles": [
        "manage_users"
      ]
    }
  }
}

Response

OK

has_moreboolean

Example response

{
  "data": {
    "attributes": {
      "confirmed": true,
      "contact_number": "+639171234567",
      "created_at": 1733097600,
      "department": "owner_management",
      "email": "alice@example.com",
      "first_name": "Alice",
      "last_name": "Cruz",
      "organization_id": "org_xyz",
      "roles": [
        "manage_users"
      ],
      "updated_at": 1733097600
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.