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év | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Válaszok
200404Not found401Unauthenticated
POST /workspaces/{workspace}/tokens
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
Kéréstörzs
| Név | Tí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_at | string | null |
Válaszok
201422Validation error404Not found401Unauthenticated
DELETE /workspaces/{workspace}/tokens/{id}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
idkötelező | path | string |
Válaszok
204No content404Not found401Unauthenticated