catalog_user.

create_user_api_token

create_user_api_token(user_id: str, api_token_id: str)

Create a new user api token.

Parameters

nametypedescription
user_idstringUser identification string. e.g. "admin"
api_token_idstringAPI token identification string. e.g. "admin_token"

Returns

typedescription
CatalogApiTokenInstance of CatalogApiToken holding the information about API token (its id, and bearer token).

Example

sdk.catalog_user.create_user_api_token(user_id="admin", api_token_id="admin_token")