Skip to main content

Update a shared token

PUT 

https://api.logz.io/v1/shared-tokens/:id

Changes the filters attached to a 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

Path Parameters

    id int32required

Body

    filters int32[]required

    IDs of filters to attach to the token. To remove all filters, use an empty array [].

    filtersOperator string[]

    Logical operator used to combine filters. Possible values can be OR or AND.

Responses

successful operation

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.

    lastUsed int64[]

    UNIX timestamp in milliseconds. If token wasn't in use, null.

    expirationDate int64[]

    UNIX timestamp in milliseconds. If token doesn't have expiration date, null.

    filtersOperator string[]

    Logical operator used to combine filters. Possible values can be OR or AND.

Authorization: X-API-TOKEN

name: X-API-TOKENtype: apiKeydescription: You can manage your API tokens from the [Logz.io API tokens](https://app.logz.io/#/dashboard/settings/manage-tokens/api) page.

API tokens are account-specific. You will need to be logged into the relevant Log Management or SIEM account to view the API tokens associated with it.

To manage your API tokens, log into the relevant account in your Logz.io platform, click the gear in the top-right menu, and select [**Tools > Manage tokens > API tokens**](https://app.logz.io/#/dashboard/settings/manage-tokens/api).

It's important to keep your tokens secure. API tokens carry privileges to make changes to users and accounts, so if you believe an API token has been compromised, delete it, and replace it with a new token in your integrations.in: header
curl -L -X PUT 'https://api.logz.io/v1/shared-tokens/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-API-TOKEN: <API_KEY_VALUE>' \
--data-raw '{
"filters": [
339
],
"filtersOperator": "OR"
}'
Request Collapse all
Base URL
https://api.logz.io
Auth
Parameters
— pathrequired
Body
{
  "filters": [
    339
  ],
  "filtersOperator": "OR"
}