Competitor Tracker & Co. Docs

Change the target member's role to `admin` or `member`. Owner is intentionally not assignable through this endpoint — use POST /v1/org/transfer-ownership to change ownership.

Change the target member's role to `admin` or `member`. Owner is intentionally not assignable through this endpoint — use POST /v1/org/transfer-ownership to.

Required role: admin or higher (organization-level).

Required scope: members:write (for both OAuth2 tokens and API keys).

PATCH
/v1/org/members/{userId}

Authorization

X-API-Key<token>

In: header

Path Parameters

userId*string
Length1 <= length

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://api.competitortracker.io/v1/org/members/01J0000000000000000000U001" \  -H "Content-Type: application/json" \  -d '{    "role": "admin"  }'
{
  "ok": true,
  "userId": "string",
  "previousRole": "admin",
  "newRole": "admin"
}
{
  "code": "string",
  "message": "string",
  "resolution": "string"
}
{
  "code": "string",
  "message": "string",
  "resolution": "string"
}
{
  "code": "string",
  "message": "string",
  "resolution": "string"
}