curl --request POST \
--url https://api.getmaxim.ai/v1/prompts/deploy \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '
{
"promptId": "<string>",
"workspaceId": "<string>",
"deploymentConditions": [
{
"variable": "<string>",
"operator": ">",
"value": "<string>"
}
],
"versionId": "<string>",
"version": 123
}
'{
"data": {
"id": "<string>",
"promptId": "<string>",
"versionId": "<string>",
"status": "active",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Deploy a prompt version
curl --request POST \
--url https://api.getmaxim.ai/v1/prompts/deploy \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '
{
"promptId": "<string>",
"workspaceId": "<string>",
"deploymentConditions": [
{
"variable": "<string>",
"operator": ">",
"value": "<string>"
}
],
"versionId": "<string>",
"version": 123
}
'{
"data": {
"id": "<string>",
"promptId": "<string>",
"versionId": "<string>",
"status": "active",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}API key for authentication
Unique identifier for the prompt
Unique identifier for the workspace
Deployment conditions configuration
1Show child attributes
Unique identifier for the version
Version number
Prompt version deployed successfully
Show child attributes
Was this page helpful?