BlogLog InRequest Demo
HomeProductDevelopersSelf-HostingChangelog
HomeProductDevelopersSelf-HostingChangelog
  • Getting Started
    • Overview
  • Workflows SDK
    • Introduction
    • Installation
    • Core Concepts
    • Defining Control Flow
    • Configuration
    • Custom Docker Images
  • Client SDK
    • Introduction
    • Authentication
    • API Versioning
LogoLogo
BlogLog InRequest Demo
Client SDKPromptsPrompt Sandboxes

Deploy Prompt Sandbox

Beta
POST
https://api.vellum.ai/v1/sandboxes/:id/prompts/:prompt_variant_id/deploy
POST
/v1/sandboxes/:id/prompts/:prompt_variant_id/deploy
1from vellum import Vellum
2
3client = Vellum(
4 api_version="YOUR_API_VERSION",
5 api_key="YOUR_API_KEY",
6)
7client.sandboxes.deploy_prompt(
8 id="id",
9 prompt_variant_id="prompt_variant_id",
10)
Try it
200Successful
1{
2 "id": "string",
3 "created": "2024-01-15T09:30:00Z",
4 "label": "string",
5 "name": "string",
6 "last_deployed_on": "2024-01-15T09:30:00Z",
7 "input_variables": [
8 {
9 "id": "string",
10 "key": "string",
11 "type": "STRING",
12 "required": true,
13 "default": {
14 "type": "STRING",
15 "value": "string"
16 },
17 "extensions": {
18 "color": "string"
19 }
20 }
21 ],
22 "last_deployed_history_item_id": "string",
23 "active_model_version_ids": [
24 "string"
25 ],
26 "status": "ACTIVE",
27 "environment": "DEVELOPMENT",
28 "description": "string"
29}
Was this page helpful?
Previous

Upsert Prompt Sandbox Scenario

Next
Built with
Upsert Prompt Sandbox Scenario

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

idstringRequiredformat: "uuid"
A UUID string identifying this sandbox.
prompt_variant_idstringRequired
An ID identifying the Prompt you'd like to deploy.

Headers

X-API-VersionstringOptional

Request

API Key authentication via header
A UUID string identifying this sandbox.
An ID identifying the Prompt you'd like to deploy.
This endpoint expects an object.
prompt_deployment_idstring or nullOptionalformat: "uuid"
The Vellum-generated ID of the Prompt Deployment you'd like to update. Cannot specify both this and prompt_deployment_name. Leave null to create a new Prompt Deployment.
prompt_deployment_namestring or nullOptional>=1 character
The unique name of the Prompt Deployment you'd like to either create or update. Cannot specify both this and prompt_deployment_id. If provided and matches an existing Prompt Deployment, that Prompt Deployment will be updated. Otherwise, a new Prompt Deployment will be created.
labelstring or nullOptional>=1 character
In the event that a new Prompt Deployment is created, this will be the label it's given.
release_tagslist of strings or nullOptional
Optionally provide the release tags that you'd like to be associated with the latest release of the created/updated Prompt Deployment.
release_descriptionstring or nullOptional>=1 characterDefaults to
Optionally provide a description that details what's new in this Release.

Response

idstringformat: "uuid"
createdstringformat: "date-time"
labelstring<=150 characters
A human-readable label for the deployment
namestring<=150 characters
A name that uniquely identifies this deployment within its workspace
last_deployed_onstringformat: "date-time"
input_variableslist of objects
last_deployed_history_item_idstringformat: "uuid"
The ID of the history item associated with this Deployment's LATEST Release Tag
active_model_version_idslist of strings or nullDeprecated
Deprecated. This now always returns an empty array.
statusenum or null
The current status of the deployment * `ACTIVE` - Active * `ARCHIVED` - Archived
Allowed values:
environmentenum or null
Deprecated. The value returned will always be 'PRODUCTION'.
Allowed values:
descriptionstring or null
A human-readable description of the deployment

A human-readable label for the deployment

The Vellum-generated ID of the Prompt Deployment you’d like to update. Cannot specify both this and prompt_deployment_name. Leave null to create a new Prompt Deployment.

The unique name of the Prompt Deployment you’d like to either create or update. Cannot specify both this and prompt_deployment_id. If provided and matches an existing Prompt Deployment, that Prompt Deployment will be updated. Otherwise, a new Prompt Deployment will be created.

A human-readable description of the deployment

The current status of the deployment

  • ACTIVE - Active
  • ARCHIVED - Archived

Optionally provide the release tags that you’d like to be associated with the latest release of the created/updated Prompt Deployment.