You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/v3-openapi.yaml
+68Lines changed: 68 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -505,6 +505,74 @@ paths:
505
505
506
506
await runs.cancel("run_1234");
507
507
508
+
"/api/v1/deployments/{version}/promote":
509
+
parameters:
510
+
- in: path
511
+
name: version
512
+
required: true
513
+
schema:
514
+
type: string
515
+
description: The deployment version to promote (e.g., "20250228.1").
516
+
post:
517
+
operationId: promote_deployment_v1
518
+
summary: Promote deployment
519
+
description: Promote a previously deployed version to be the current version for the environment. This makes the specified version active for new task runs.
520
+
responses:
521
+
"200":
522
+
description: Deployment promoted successfully
523
+
content:
524
+
application/json:
525
+
schema:
526
+
type: object
527
+
properties:
528
+
id:
529
+
type: string
530
+
description: The deployment ID
531
+
version:
532
+
type: string
533
+
description: The deployment version (e.g., "20250228.1")
534
+
shortCode:
535
+
type: string
536
+
description: The short code for the deployment
537
+
"400":
538
+
description: Invalid request
539
+
content:
540
+
application/json:
541
+
schema:
542
+
type: object
543
+
properties:
544
+
error:
545
+
type: string
546
+
"401":
547
+
description: Unauthorized - Access token is missing or invalid
548
+
"404":
549
+
description: Deployment not found
550
+
tags:
551
+
- deployments
552
+
security:
553
+
- personalAccessToken: []
554
+
x-codeSamples:
555
+
- lang: typescript
556
+
source: |-
557
+
// Note: This endpoint requires a personal access token, not a secret key
558
+
// The SDK doesn't currently expose this endpoint, but you can call it directly:
0 commit comments