Bloss Docs

Change a member's agency role

Developers
PATCH
/agencies/{orgId}/members/{memberId}

Make an agency member an "admin" or a plain "member", as the agency Team page does. The owner can't be changed here (ownership is transferred on the website). Send expectedRole (from agency.members.list) to refuse the change if someone changed it since (409). Agency admins manage every brand in the agency. Preview with ?dryRun=true.

Authorization

bearerAuth agency:write
headerAuthorizationBearer <token>

Personal access token. Scopes: account:read, creator:read, creator:earnings, managed:read, coach:read, brand:read, creators:read, videos:read, analytics:read, onboarding:read, onboarding:signatures, engagement:read, support:read, integrations:read, payouts:read, funds:read, billing:read, groups:write, videos:write, onboarding:write, sync:write, payouts:write, campaigns:write, brand:write, creators:write, engagement:write, support:write, accounts:write, payments:write, creator:write, creator:payouts:write, managed:write, coach:write, agency:write.

Scope: agency:write

Path Parameters

orgId*string

An agency id from GET /agencies.

Length1 <= length
memberId*string

A membership id (memberId) from GET /agencies/{orgId}/members.

Length1 <= length

Query Parameters

dryRun?string

"true": run every check and return { dryRun: true, wouldChange } without changing anything.

Value in"true""false"

Request Body

application/json
  1. body
role*string
Value in"admin""member"
expectedRole?string

The role you read; defaults to the current one.

Value in"owner""admin""member"

Response Body

Success.

application/json
  1. response
memberId*string
before*string
Value in"owner""admin""member"
after*string
Value in"owner""admin""member"
changed*boolean
curl -X PATCH 'https://example.com/api/v1/agencies/string/members/string' \  -H 'Content-Type: application/json' \  -d '{  "role": "admin"}'
{  "memberId": "string",  "before": "owner",  "after": "owner",  "changed": true}

Was this page helpful?