curl --request PUT \
--url https://api.getmaxim.ai/v1/prompts \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '
{
"workspaceId": "<string>",
"id": "<string>",
"name": "<string>",
"description": "<string>",
"folderId": "<string>"
}
'{
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"workspaceId": "<string>",
"accountId": "<string>",
"folderId": "<string>",
"createdById": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"deploymentHistory": {
"id": "<string>",
"workspaceId": "<string>",
"accountId": "<string>",
"promptId": "<string>",
"strategy": {
"type": "<string>",
"config": {}
},
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
},
"meta": null
}
}Update an existing prompt
curl --request PUT \
--url https://api.getmaxim.ai/v1/prompts \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '
{
"workspaceId": "<string>",
"id": "<string>",
"name": "<string>",
"description": "<string>",
"folderId": "<string>"
}
'{
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"workspaceId": "<string>",
"accountId": "<string>",
"folderId": "<string>",
"createdById": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"deploymentHistory": {
"id": "<string>",
"workspaceId": "<string>",
"accountId": "<string>",
"promptId": "<string>",
"strategy": {
"type": "<string>",
"config": {}
},
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
},
"meta": null
}
}API key for authentication
Prompt updated successfully
Show child attributes
Was this page helpful?