Skip to Content

Roles API

API for managing Roles resources.

Fields

interface Roles { name: string; superAdmin?: boolean; }

API Endpoints

GET /api/roles

Retrieves a list of Roles with pagination.

Query Parameters

  • limit: Maximum number of items to return (default: 10)
  • page: Page number for pagination (default: 1)
  • sort: Field to sort by (default: createdAt)
  • where: JSON query for filtering results

GET /api/roles/:id

Retrieves a single Roles by ID.

POST /api/roles

Creates a new Roles.

PATCH /api/roles/:id

Updates an existing Roles.

DELETE /api/roles/:id

Deletes a Roles.

Last updated on