REST API áttekintés

API · v1.4.0

Tokens

3 végpont. Az útvonalak a saját példánya /api/v1 címéhez képest értendők; a hitelesítést az áttekintő oldal írja le.

GET /workspaces/{workspace}/tokens

Paraméterek

NévHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

cursorquerystring

Opaque cursor taken from meta.next_cursor of the previous page; omit it for the first page.

limitqueryinteger

Page size.

Válaszok

  • 200
  • 404 Not found
  • 401 Unauthenticated

POST /workspaces/{workspace}/tokens

Paraméterek

NévHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

Kéréstörzs

NévTípus
namekötelezőstring
abilitieskötelezőlist<TokenAbility (workspace:read, workspace:manage, members:manage, audit:read, monitors:read, monitors:write, notifications:read, notifications:write, incidents:read, incidents:write, status-pages:read, status-pages:write)>
expires_atstring | null

Válaszok

  • 201
  • 422 Validation error
  • 404 Not found
  • 401 Unauthenticated

DELETE /workspaces/{workspace}/tokens/{id}

Paraméterek

NévHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

idkötelezőpathstring

Válaszok

  • 204 No content
  • 404 Not found
  • 401 Unauthenticated