Skip to main content
PUT
Update Prompt
Updates the specified prompt. You can modify the prompt text, topic, target platforms, cron schedule, timezone, active status, or location. This endpoint replaces the prompt’s settings, so send every field you want to keep. If you omit cronExpr or location, the value is cleared. If you omit timezone, it resets to UTC. If you omit active, it resets to true.

Parameters

number
required
Unique identifier for the prompt to update.
string
required
Bearer token. Format: Bearer slat_<your-token>.
number
required
Brand ID for the prompt. topicId must belong to this brand.
number
required
Topic ID the prompt belongs to. Must be an active topic in your workspace that belongs to brandId.
string
required
The prompt text. Maximum 4000 characters. Another prompt in the workspace can’t have the same text.
string[]
required
AI platforms to query. One or more of: CHATGPT, PERPLEXITY, GOOGLE_AI_OVERVIEW, GOOGLE_AI_MODE, GEMINI, CLAUDE.
string
Cron expression for the query schedule. Omit to remove the schedule.
string
Timezone for the cron schedule. Default: UTC.
boolean
Whether the prompt is active. Default: true.
string
ISO 3166-1 alpha-2 country code (e.g., US, GB). Must be exactly two letters. Omit to clear the location.

Response

Returns 200 OK with the updated prompt.
number
required
Prompt ID.
number
required
Topic ID.
string
required
The updated prompt text.
string[]
required
Target AI platforms.
string
Cron schedule expression. null if the prompt has no schedule.
string
required
Schedule timezone.
boolean
required
Whether the prompt is active.
string
Country code. null if not set.
string
Next run time stored on the prompt. ISO 8601 format. null if not set.
string
Last run time stored on the prompt. ISO 8601 format. null if not set.

Example

Response

Status codes

What’s next