Method
createDeploymentToken POST
Copy POST

Creates a deployment token for the specified project.

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes projectId str The unique string identifier associated with the project.
No name str The name of the deployment token.
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.

Response:

KEY TYPE DESCRIPTION
success Boolean true if the call succeeded, false if there was an error
result DeploymentAuthToken
KEY TYPE Description
deploymentToken str The unique token used to authenticate requests.
createdAt str The date and time when the token was created, in ISO-8601 format.
name str The name associated with the authentication token.

Exceptions:

TYPE WHEN
DataNotFoundError

projectId is not found.

Language: