user

Set CLI secret for a user.

This endpoint let user generate a new CLI secret for himself. This API only works when auth mode is set to 'OIDC'. Once this API returns with successful status, the old secret will be invalid, as there will be only one CLI secret for a user.

put/users/{user_id}/cli_secret

Path parameters

user_idinteger required

User ID

Headers

X-Request-Idstring

An unique ID for the request

Request body

secretstring

The new secret

Response

The secret is successfully updated

Changes