Skip to content
Start here

Deployments

List Deployments
workers.scripts.deployments.list(strscript_name, DeploymentListParams**kwargs) -> DeploymentListResponse
GET/accounts/{account_id}/workers/scripts/{script_name}/deployments
Create Deployment
workers.scripts.deployments.create(strscript_name, DeploymentCreateParams**kwargs) -> Deployment
POST/accounts/{account_id}/workers/scripts/{script_name}/deployments
Get Deployment
workers.scripts.deployments.get(strdeployment_id, DeploymentGetParams**kwargs) -> Deployment
GET/accounts/{account_id}/workers/scripts/{script_name}/deployments/{deployment_id}
Delete Deployment
workers.scripts.deployments.delete(strdeployment_id, DeploymentDeleteParams**kwargs) -> DeploymentDeleteResponse
DELETE/accounts/{account_id}/workers/scripts/{script_name}/deployments/{deployment_id}
ModelsExpand Collapse
class Deployment:
id: str
formatuuid
created_on: datetime
formatdate-time
source: str
strategy: Literal["percentage"]
versions: List[Version]
percentage: float
maximum100
minimum0.01
version_id: str
formatuuid
annotations: Optional[Annotations]
workers_message: Optional[str]

Human-readable message about the deployment. Truncated to 1000 bytes if longer.

maxLength1000
workers_triggered_by: Optional[str]

Operation that triggered the creation of the deployment.

author_email: Optional[str]
formatemail
class DeploymentListResponse:
deployments: List[Deployment]
id: str
formatuuid
created_on: datetime
formatdate-time
source: str
strategy: Literal["percentage"]
versions: List[Version]
percentage: float
maximum100
minimum0.01
version_id: str
formatuuid
annotations: Optional[Annotations]
workers_message: Optional[str]

Human-readable message about the deployment. Truncated to 1000 bytes if longer.

maxLength1000
workers_triggered_by: Optional[str]

Operation that triggered the creation of the deployment.

author_email: Optional[str]
formatemail
class DeploymentDeleteResponse:
errors: List[Error]
code: int
minimum1000
message: str
documentation_url: Optional[str]
source: Optional[ErrorSource]
pointer: Optional[str]
messages: List[Message]
code: int
minimum1000
message: str
documentation_url: Optional[str]
source: Optional[MessageSource]
pointer: Optional[str]
success: Literal[true]

Whether the API call was successful.