ApiEmbed configs
Discards the draft presentation, reverting the studio to what is live.
Throws away unpublished appearance changes and leaves the published manifest untouched. Visitors are unaffected either way — a draft never reached them. A no-op when there is no draft. Use this rather than editing the config back by hand: it is the only operation that clears the pending state the studio shows.
Authorization
Bearer AuthorizationBearer <token>
JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
agent*string
The agent identifier.
embedConfig*string
The embed config id.
tenant*string
The tenant identifier
Response Body
curl -X POST "https://api.fruxon.com/v1/tenants/string/agents/string/embedConfigs/string:discardDraft"{
"id": "string",
"agentId": "string",
"key": "string",
"enabled": false,
"allowedOrigins": [
"string"
],
"greeting": "string",
"suggestedPrompts": [
"string"
],
"themeJson": "string",
"draftThemeJson": "string",
"hasUnpublishedChanges": false,
"publishedAt": 0,
"customCss": "string",
"maxTurnsPerSession": 0,
"maxCostPerSession": 0,
"accessMode": "PUBLIC",
"hasIdentitySecret": false,
"trustAnchorId": "00000000-0000-0000-0000-000000000000",
"createdAt": 0,
"modifiedAt": 0
}Empty
Empty
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}