Create a shared token
POST/v1/shared-tokens
Creates a new shared token.
Note: This endpoint requires permissions that must be set by our Support team. Please email help@logz.io for assistance. Please ensure to change the region in the URL to match your account's region.
Request
- application/json
Body
tokenName string
Default value: string
Name of the token
filters int32[]
IDs of filters to attach to the token
Responses
- 200
- 400
- 403
successful operation
- application/json
- Schema
- Example (from schema)
Schema
id int32
ID of the shared token
name string
Descriptive name of the token
token string
The token
filters int32[]
Array of filter IDs attached to each token. If no filter is attached, null
.
{
"id": 1241,
"name": "Snapshotting token",
"token": "6c36edf51-cf93883aa35-5bc6ce6-7bcfe60d87",
"filters": [
339,
340
]
}
not found
- application/json
- Schema
- Example (from schema)
Schema
message string
The shared token or query filter could not be found
{
"message": "token with id 12345 not found for account 54321"
}
forbidden
- application/json
- Schema
- Example (from schema)
Schema
message string
Insufficient privileges. Contact our Support team for access to this API feature.
{
"message": "Insufficient privileges"
}
Loading...