Skip to main content
POST
/
api
/
v1
/
templates
/
{template_id}
/
sections
Add Template Section
curl --request POST \
  --url https://api.artosai.com/api/v1/templates/{template_id}/sections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "section_name": "3. Safety Summary",
  "level": 1,
  "order_index": 2
}
'
{
  "message": "<string>",
  "section_id": "<string>",
  "template_id": "<string>",
  "section_name": "<string>",
  "level": 123,
  "order_index": 123
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Token provides organization-scoped access.

Path Parameters

template_id
string
required

UUID of template

Body

application/json
section_name
string
required

Name/title of the section

level
integer
required

Nesting level (1=top-level, 2=subsection, etc.)

order_index
integer
required

Position of section in the template (0-based)

Response

Section added successfully

message
string
required

Success message

section_id
string
required

UUID of the created section

template_id
string
required

UUID of the parent template

section_name
string
required

Name of the created section

level
integer
required

Nesting level of the section

order_index
integer
required

Position of the section in the template