curl --request PATCH \
--url https://ai.wisepilot.app/api/v1/ghl/agents/{id}/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"personality": "<string>",
"instructions": "<string>",
"goal": "<string>"
}
'{
"success": true,
"data": {
"id": "<string>",
"ghlAgentId": "<string>",
"name": "<string>",
"status": "<string>",
"activePromptVersion": {
"versionNumber": 123,
"promptText": "<string>",
"isActive": true
},
"createdAt": "2023-11-07T05:31:56Z"
}
}Update the agent’s personality, instructions, and goal. Uses PUT to GHL API (PATCH returns 404). minRole: editor
curl --request PATCH \
--url https://ai.wisepilot.app/api/v1/ghl/agents/{id}/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"personality": "<string>",
"instructions": "<string>",
"goal": "<string>"
}
'{
"success": true,
"data": {
"id": "<string>",
"ghlAgentId": "<string>",
"name": "<string>",
"status": "<string>",
"activePromptVersion": {
"versionNumber": 123,
"promptText": "<string>",
"isActive": true
},
"createdAt": "2023-11-07T05:31:56Z"
}
}