curl --request PUT \
--url https://api.getmaxim.ai/v1/prompt-tools \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '
{
"workspaceId": "<string>",
"id": "<string>",
"name": "<string>",
"description": "<string>",
"config": {
"args": "<string>",
"code": "<string>",
"schema": {
"type": "function",
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {}
}
},
"lang": "javascript",
"scripts": "<string>",
"sample": "<string>"
},
"folderId": "<string>",
"newWorkspaceId": "<string>"
}
'{
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"type": "<string>",
"workspaceId": "<string>",
"accountId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"config": null,
"folderId": "<string>",
"fromMcpServer": "<string>"
}
}Update an existing prompt tool
curl --request PUT \
--url https://api.getmaxim.ai/v1/prompt-tools \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '
{
"workspaceId": "<string>",
"id": "<string>",
"name": "<string>",
"description": "<string>",
"config": {
"args": "<string>",
"code": "<string>",
"schema": {
"type": "function",
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {}
}
},
"lang": "javascript",
"scripts": "<string>",
"sample": "<string>"
},
"folderId": "<string>",
"newWorkspaceId": "<string>"
}
'{
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"type": "<string>",
"workspaceId": "<string>",
"accountId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"config": null,
"folderId": "<string>",
"fromMcpServer": "<string>"
}
}API key for authentication
Unique identifier for the workspace
Unique identifier for the prompt tool
Name of the prompt tool
Description of the prompt tool
Configuration for the prompt tool
Show child attributes
Folder ID
New Workspace ID if moving
Prompt tool updated successfully
Show child attributes
Was this page helpful?