Skip to main content
POST
/
v1
/
agents
/
{agentId}
/
discard-draft
Discard draft changes and revert to the published snapshot
curl --request POST \
  --url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/discard-draft \
  --header 'Authorization: Bearer <token>'
{
  "discarded": true,
  "agent_id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.prisme.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.

Path Parameters

agentId
string
required
Maximum string length: 64

Response

Draft discarded.

discarded
boolean
Example:

true

agent_id
string