Update an agent section

Rename a section, replace its content, or both. The section keeps its ID and place; use PUT /v1/agents/{id}/sections to reorder. Returns 404 when the agent or section is not found and 409 when another section already has the new name.

patch/v1/agents/{id}/sections/{sectionId}

Request

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

Path parameters

idstring uuid required

Agent ID

sectionIdstring uuid required

Section ID

Request body

namestring

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

contentstring

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.