Change member role

Changes member role to admin or staff. Owner cannot be demoted, and promotion to owner via API is not allowed.

PATCH /team/{id}

Parameters

NameTypeRequiredDescription
id string yes Member number (the id field from the team list).
role string yes New role: admin or staff. You cannot demote the owner or promote to owner via API.

Important to know

Request example

curl -X PATCH https://api.shippickup.com/v1/team/5d3a8e1f6c2b47a9b0e4d7c3a1 \
  -H "Authorization: Bearer $SHIPPICKUP_API_KEY" \
  -H "Idempotency-Key: order-10452-label-v1" \
  -H "Content-Type: application/json" \
  -d '{
    "role": "admin"
}'

Response example 200

JSON
{
    "data": {
        "id": "5d3a8e1f6c2b47a9b0e4d7c3a1",
        "name": "Anna Petrova",
        "email": "anna@example.com",
        "role": "admin",
        "status": "active",
        "joined_at": "2026-11-20T08:00:00+00:00",
        "last_login_at": "2026-12-03T17:42:10+00:00"
    }
}

Possible errors

HTTPCodeDescription
403test_key_cannot_buyTest key does not purchase labels or order pickups, use a live key.
403owner_key_requiredКомандой может управлять только ключ, созданный владельцем аккаунта.
404not_foundObject not found among your account's objects (order, address, invoice, webhook, member, or team invitation), or the order has no active pickup, or the method does not exist. Objects belonging to others appear as non-existent.
409conflictAction is currently not possible for this order (e.g., order cannot be canceled or pickup already ordered). Reason text in error.message.
422validation_failedError in request fields. error.details specifies the reason for each field.
422idempotency_key_requiredMissing or invalid Idempotency-Key header: must be 16–64 characters A-Za-z0-9_-.
422idempotency_key_reusedЭтот Idempotency-Key уже использован для другого запроса: для нового запроса нужен новый ключ.
403insufficient_scopeKey lacks the required permission, specified in error.details.required_scope.
429rate_limitedKey request limit exceeded. Retry after the time specified in the Retry-After header.

Full list of error codes →