Org

Change a member's role (owner-only, v1.77)

Owner-only. Changes a member's role. The org always keeps ≥1 active owner (LAST_OWNER guard). Audited.

patch/orgs/v1/{org_id}/members/{principal_id}

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/orgs/v1/{org_id}/members/{principal_id}
  • Auth: API key in header SIGN-IN-WITH-X

Path parameters

org_idstring uuid required
principal_idstring uuid required

Headers

SIGN-IN-WITH-Xstring required

SIWX auth header — base64-encoded JSON payload containing a signed CAIP-122 (EIP-4361) message. See https://docs.x402.org/extensions/sign-in-with-x.

Request body

role'owner' | 'admin' | 'developer' | 'billing' | 'viewer' required

Response

Role changed

object required

Changes

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