catalog_user.
create_user_api_token
create_user_api_token(user_id: str, api_token_id: str)
Create a new user api token.
Parameters
name | type | description |
---|---|---|
user_id | string | User identification string. e.g. "admin" |
api_token_id | string | API token identification string. e.g. "admin_token" |
Returns
type | description |
---|---|
CatalogApiToken | Instance 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")