Edit prompt
Make a TARGETED edit to the draft system prompt by a single find/replace span, far cheaper and faster than rewriting the whole prompt with `update_system_prompt`. PREFER THIS for small changes: a one-line tweak, tighten a rule, add a line to a section, fix a phrase, delete a stale sentence. `find` must match the current prompt exactly once (copy it verbatim, whitespace included); set `replace` to the new text (or empty to delete). Differs from `update_system_prompt`: that one full-replaces the entire prompt body, use it instead only when you're rewriting most of the prompt at once. The prompt guide still applies to the result (over the MCP, read_guide with 'system-prompt').
Authorization
bearerAuth A personal access token from Settings > API tokens.
In: header
Header Parameters
A key you choose, such as a UUID, that makes this POST safe to retry. Within 24 hours the same key and request answers with the first successful answer and runs nothing, the same key with a different request answers 422 idempotency_key_reused, and a key whose request is still running answers 409 idempotency_key_in_use. A failed request keeps nothing, so the same key runs it again.
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/operations/edit_system_prompt" \ -H "Content-Type: application/json" \ -d '{ "find": "string", "replace": "string", "agent": "string" }'{
"length": 0,
"property1": null,
"property2": null
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}Edit KB sync schedule POST
Set, change, or remove the auto-sync schedule on a URL or whole-site knowledge-base source, for example "re-fetch this page every day at 3am". Pass the source id (from list_kb_sources), a 5-field cron expression, and an IANA timezone; the next-run time is computed server-side. Each re-sync re-reads the source; pages whose content has not changed keep their passages, and changed pages are re-embedded (a metered charge). A failed re-sync keeps the source's previous passages. The schedule follows the source across drafts and publishes, and always refreshes the live copy. Set disable:true to remove the schedule. The sync does NOT run immediately; it fires on the schedule via the platform's cron tick. Time-based pull only; webhook push and CSS-selector targeting are not supported.
Enrol as partner POST
Enrol a workspace into the partner program and return its partner record (tier, payout method, enrolment date) plus the partner's single auto-generated referral link (referralLink.shareUrl) ready to share. Idempotent, re-enrolling returns the existing partner and its existing link. Referral codes are system-generated and globally unique; there is no custom/vanity code. A partner earns recurring commission on the actual paid usage of the customers they refer.