FruxonDocs
ApiAgent reply style

Replaces a draft's content.

Only a draft can be edited. Agent admins only.

PATCH
/v1/tenants/{tenant}/agents/{agent}/replyStyle/versions/{version}
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

agent*string

The agent ID.

version*integer

The draft's version number.

Formatint32
tenant*string

The tenant identifier

The new content, whole.

content?

What a reply-style version says, structured. Code renders it to prompt text (Fruxon.Model.AgentReplyStyles.ReplyStylePreamble); nothing reads the text back.

[key: string]?never

Response Body

curl -X PATCH "https://api.fruxon.com/v1/tenants/string/agents/string/replyStyle/versions/0" \  -H "Content-Type: application/json" \  -d '{}'
{
  "number": 0,
  "status": "DRAFT",
  "content": {
    "summary": "string",
    "rules": [
      {
        "text": "string",
        "situation": "string"
      }
    ],
    "examples": [
      {
        "situation": "string",
        "turns": []
      }
    ]
  },
  "renderedText": "string",
  "tokenEstimate": 0,
  "createdBy": "string",
  "createdAt": 0,
  "modifiedAt": 0,
  "activatedAt": 0,
  "activatedBy": "string",
  "retiredAt": 0,
  "expiresAt": 0,
  "buildId": "00000000-0000-0000-0000-000000000000",
  "check": {
    "running": false,
    "style": {
      "runId": "00000000-0000-0000-0000-000000000000",
      "cases": 0,
      "draftWins": 0,
      "withoutWins": 0,
      "ties": 0,
      "score": 0
    },
    "substance": {
      "runId": "00000000-0000-0000-0000-000000000000",
      "cases": 0,
      "draftWins": 0,
      "withoutWins": 0,
      "ties": 0,
      "score": 0
    }
  }
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}