Skip to main content
PATCH
/
entities
/
updateprompt
curl --request PATCH \
  --url https://api.geogen.io/v1/entities/updateprompt \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "promptId": "abc123def456...",
  "prompt": "What are the best tools for SEO in 2026?"
}
'
{
  "success": true,
  "prompt": {
    "id": "<string>",
    "prompt": "<string>",
    "language": "<string>",
    "geolocation": "<string>",
    "createdAt": 123
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Format: Bearer wsk_your_api_key

Body

application/json
promptId
string
required

Prompt ID to update

prompt
string

New prompt text

language
string

New language code (e.g., 'en', 'fr', 'de')

geolocation
string

New geolocation code (e.g., 'global', 'us', 'gb')

isActive
boolean

Set to false to pause tracking for this prompt, or true to re-activate it

Response

Prompt updated successfully

success
boolean
prompt
object