Api token
Last updated
Was this helpful?
Last updated
Was this helpful?
Generate an API token for the current user.
Use this endpoint to generate an API token for the current user. Two types of API tokens are supported:
Args: token_type: The type of API token to generate. expires_in: The expiration time of the generic API token in seconds. If not set, the server will use the default expiration time for generic API tokens. The server also imposes a maximum expiration time. schedule_id: The ID of the schedule to scope the workload API token to. pipeline_run_id: The ID of the pipeline run to scope the workload API token to. auth_context: The authentication context.
Returns: The API token.
Raises: AuthorizationException: If not authorized to generate the API token. ValueError: If the request is invalid.
The API token type.
generic
Available options: