Add an agent section

Add a section after the agent's existing sections. Returns 404 when the agent is not found and 409 when another section already has the name.

post/v1/agents/{id}/sections

Request

  • Base URL
    https://api.runbear.io
  • Auth
    HTTP bearer

Path parameters

idstring uuid required

Agent ID

Request body

namestring required

Section name, unique within the agent, at most 200 characters. Shown as the section heading in the agent's instructions.

contentstring required

Section text, at most 100,000 characters.

Response

Default Response

idstring required

Section ID

namestring required

Section name

contentstring required

Section text

positioninteger required

Zero-based place of the section in the agent's instructions. Read-only: change the order with PUT /v1/agents/{id}/sections.

createdAtstring required

ISO 8601 timestamp when the section was created

updatedAtstring required

ISO 8601 timestamp when the section was last changed

Changes

No recorded changes to this operation across all 1 revision of this API.