Tokens and Permissions
Update token
Updates token properties. Beware that all current bucket permissions are replaced. If you want to add new bucket permissions, don't forget to specify the previous permissions.
put/v2/storage/tokens/{id}
Request
- Base URLhttps://connection.keboola.com
- Auth
- API key in header X-StorageApi-Token
- or API key in header X-KBC-ManageApiToken
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
Token ID.
Request body
Example request
{
"description": "New Description",
"bucketPermissions": {
"in.c-main": "write"
},
"componentAccess": [
"keboola.ex-db-mysql"
]
}Response
Updated token. The decrypted token value is never returned.
Example response
{
"id": "484",
"created": "2017-02-13T12:01:05+0100",
"refreshed": "2017-02-13T12:01:05+0100",
"description": "my-new-token",
"uri": "https://connection.keboola.com/v2/storage/tokens/484",
"dailyCapacity": 5,
"token": "75-12d4bfa4995694a1c956e7bb1eea0df5cc53acdb",
"creatorToken": {
"id": 1,
"description": "dev@keboola.com"
},
"componentAccess": [
"keboola.ex-db-mysql"
],
"bucketPermissions": {
"in.c-main": "read"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.