Skip to main content
PATCH
Bulk merge-patch API mappings.

Authorizations

Authorization
string
header
required

The Tyk Dashboard API Access Credentials

Path Parameters

id
string
required

Internal record ID hex or custom client_idp_id.

Body

application/json

RFC 7386 JSON Merge Patch body for PATCH /api/clientidps/{id}/mappings. Each key is an api_id. A ScopeMappingPatch value upserts that mapping; a null value deletes the entire mapping for that api_id. Keys absent from the body are left untouched at every nesting level — this includes individual scope keys inside scope_to_policy. To remove a single scope, set it to null inside scope_to_policy; omitting it has no effect.

{key}
object | null

Patch shape for a single API's scope mapping. scope_to_policy is a free-form JSON object so that individual scope keys can be set to null (to remove them) as per RFC 7386 merge-patch semantics.

Response

Mappings merged. Returns the full updated client IdP document.

A client Identity Provider stored beside API definitions.

_id
string

Internal record ID hex. Set server-side on creation.

client_idp_id
string

Stable user-facing identifier. Defaults to _id hex when not supplied on create.

org_id
string

Organisation ID. Set server-side from the session; cannot be overridden.

name
string
issuer
string
jwks_uri
string
scope_claim_name
string

JWT claim holding the OAuth scopes (e.g. scope, scp, roles). Empty falls back to scope gateway-side.

api_mappings
object

Map of api_id → ScopeMapping.

Example:
date_created
string<date-time>
last_updated
string<date-time>