Skip to content

Scope Sets โ€‹

Named bundles of scopes that can be attached to users, groups, or API keys. Scope sets let you define a "role" once and reuse it โ€” instead of editing each user's scope list individually when permissions change, you edit the scope set.

Scopes โ€‹

ScopeReach
scope_sets:readListing, reading, viewing filters.
scope_sets:writeCreating, modifying, deleting scope sets.

Endpoints โ€‹

List Scope Sets โ€‹

GET /api/admin/scope-sets/

Returns a page of scope-set records.

Required scope: scope_sets:read ยท also accepts API key

Query parameters โ€” standard pagination set; see Conventions โ€บ Pagination. Defaults: sort_by=created, sort_order=desc, hydrate=true.

Response 200 โ€” ScopeSetInDbCursorPage

Get Scope Set Filter Metadata โ€‹

GET /api/admin/scope-sets/filters

Returns filter/operator/sort options for List Scope Sets.

Required scope: scope_sets:read

Response 200 โ€” open metadata object.

Get Scope Set by ID โ€‹

GET /api/admin/scope-sets/{id}

Returns a single scope-set record, including the scopes it bundles.

Required scope: scope_sets:read ยท also accepts API key

Path parameters

NameTypeRequiredDescription
idstringyesScope set ID.

Response 200 โ€” ScopeSetRead

Create Scope Set โ€‹

POST /api/admin/scope-sets/

Creates a new scope set.

Required scope: scope_sets:write

Request body โ€” ScopeSetWriteCreate

Response 201 โ€” ScopeSetRead

Update Scope Set by ID โ€‹

PUT /api/admin/scope-sets/{id}

Replaces the scope set.

Required scope: scope_sets:write

Path parameters

NameTypeRequiredDescription
idstringyesScope set ID.

Request body โ€” ScopeSetWriteReplace

Response 200 โ€” ScopeSetRead

Patch Scope Set โ€‹

PATCH /api/admin/scope-sets/{id}

Partial scope-set update.

Required scope: scope_sets:write

Path parameters

NameTypeRequiredDescription
idstringyesScope set ID.

Request body โ€” ScopeSetWriteUpdate

Response 200 โ€” ScopeSetRead

Delete Scope Set by ID โ€‹

DELETE /api/admin/scope-sets/{id}

Removes a scope set. Users, groups, and API keys that referenced this scope set lose those scopes.

Required scope: scope_sets:write

Path parameters

NameTypeRequiredDescription
idstringyesScope set ID.

Response 204 โ€” empty.

WARNING

Deleting a scope set immediately revokes its scopes from every principal that referenced it. Inspect referencing users/groups/keys first to avoid unintended access loss.

See also โ€‹

  • Scopes โ€” the catalogue of scope identifiers a scope set can bundle.
  • Users โ€” users that can carry scope-set references.
  • Groups โ€” groups that can carry scope-set references.
  • API Keys โ€” keys that can carry scope-set references.

S-Launch