Skip to main content
This page centralizes the request schemas for a few commonly-used endpoints. The canonical source is api-reference/openapi.yml.

invite-user

Endpoint: POST /v1/invites Schema: InviteUserRequestSchema Body: application/json

Schema (OpenAPI-style)

Example

assign-role

Endpoint: POST /v1/roles/assign Schema: AssignRoleRequestSchema Body: application/json

Schema (OpenAPI-style)

Required fields

  • role: string
  • userId: string

Example

revoke-role

Endpoint: POST /v1/roles/revoke Schema: RevokeRoleRequestSchema Body: application/json

Schema (OpenAPI-style)

Required fields

  • role: string
  • userId: string

Example

create-policy

Endpoint: POST /v1/users/policies Schema: CreatePolicyRequestSchema Body: application/json

Schema (OpenAPI-style)

Required fields

  • name: string

Optional fields

  • roles: string[]
  • functions: string[]

Example

update-policy

Endpoint: PATCH /v1/users/policies/{id} Schema: UpdatePolicyRequestSchema Path params:
  • id: string (required)
Body: application/json

Schema (OpenAPI-style)

Required fields

  • name: string

Optional fields

  • oldPolicyName: string
  • roles: string[]
  • functions: string[]

Example

delete-policy

Endpoint: DELETE /v1/users/policies/{id} Path params (from components.parameters.Id):
  • id: string (required)
Body: none