AgentConnect
Members

Change a member’s role

Owner-only. Changes a member’s role; the last owner can’t be demoted, which would orphan the org.

PATCH
/v1/orgs/{orgId}/members/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

orgId*string
id*string

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 "https://example.com/v1/orgs/string/members/string" \  -H "Content-Type: application/json" \  -d '{    "role": "owner"  }'
{  "userId": "string",  "email": "string",  "name": "string",  "picture": "string",  "role": "owner",  "isCurrentUser": true,  "joinedAt": "string"}