Documentation Index
Fetch the complete documentation index at: https://slatehq.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Updates the specified prompt. You can modify the prompt text, target platforms, cron schedule, timezone, active status, or location.
Parameters
Unique identifier for the prompt to update.
Bearer token. Format: Bearer slat_<your-token>.
Topic ID the prompt belongs to.
The prompt text. Maximum 4000 characters.
AI platforms to query. One or more of: CHATGPT, PERPLEXITY, GOOGLE_AI_OVERVIEW, GOOGLE_AI_MODE, GEMINI, CLAUDE.
Cron expression for the query schedule.
Timezone for the cron schedule.
Whether the prompt is active.
ISO 3166-1 alpha-2 country code (e.g., US, GB). Maximum 2 characters.
Response
Returns 200 OK with the updated prompt.
Cron schedule expression.
Whether the prompt is active.
Country code. null if not set.
Next scheduled run time. ISO 8601 format.
Last run time. ISO 8601 format.
Example
curl -s -X PUT "https://api.slatehq.ai/ai-analytics-service/api/public/v1/prompts/156" \
-H "Authorization: Bearer slat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
--data-raw '{
"topicId": 42,
"promptText": "What are the top project management tools for distributed teams in 2026?",
"platform": ["CHATGPT", "PERPLEXITY", "GEMINI"],
"cronExpr": "0 0 * * *",
"timezone": "UTC",
"active": true,
"location": "US"
}'
Response
{
"id": 156,
"topicId": 42,
"promptText": "What are the top project management tools for distributed teams in 2026?",
"platform": ["CHATGPT", "PERPLEXITY", "GEMINI"],
"cronExpr": "0 0 * * *",
"timezone": "UTC",
"active": true,
"location": "US",
"nextRun": "2026-02-12T00:00:00Z",
"lastRun": "2026-02-11T00:00:00Z"
}
Status codes
| Status | Description |
|---|
200 | Prompt updated. |
400 | Invalid request. Missing required fields, topic not found, or invalid location code. |
401 | Missing or invalid Bearer token. See Authentication. |
404 | Prompt not found. |
500 | Internal server error. |
What’s next