---
title: "Create section"
method: POST
path: "/partner_api/v1/sections"
tags: ["Sections"]
---

# Create section

`POST /partner_api/v1/sections`

## Request

- Base URL: `https://api.contentsnare.com`
- URL: `https://api.contentsnare.com/partner_api/v1/sections`
- Auth: one of:
  - OAuth 2
    - Authorization code: `/oauth/authorization`
    - Token URL: `/oauth/token` scopes: `write_requests`
  - HTTP bearer

Creates a new section in page<br>Required scopes: <b>write_requests</b>

## Request body

- NewSection
  - `compressed` boolean: A boolean value indicating whether the section is displayed as a single compressed block with one submit button
  - `name` string: Section name. If it isn't set then the source template name is used.
  - `page_id` string, required: Id of a page where a new section should be added
  - `source_template_id` string: Source section template id (`source_template_id` or `source_template_name` should be set)
  - `source_template_name` string: Source section template name (`source_template_id` or `source_template_name` should be set)

## Response `201`

successful

- Section
  - `compressed` boolean: A boolean value indicating whether the section is displayed as a single compressed block with one submit button
  - `fields` Field[]
    - `additional_fields` AdditionalField[]
      - `id` string
      - `sorting_position` integer
      - `text` string
    - `answers` Answer[]: <b>DEPRECATED</b>
      - `attachment` Attachment
        - `byte_size` integer
        - `filename` string
        - `signed_id` string
        - `url` string
      - `id` string
      - `field_id` string
      - `link` string
      - `rejection_comment` string
      - `row` AnswerSegment[]
        - `field_column_id` string
        - `text` string
      - `sorting_position` integer
      - `status` string
      - `text` string[]
    - `field_columns` FieldColumn[]
      - `id` string
      - `name` string
      - `read_only` boolean
      - `required` boolean
      - `sorting_position` integer
    - `field_configuration` FieldConfiguration
      - `id` string
      - `settings` object
    - `id` string
    - `images` Image[]
      - `byte_size` integer
      - `filename` string
      - `image` object
        - `height` integer
        - `url` string
        - `width` integer
      - `signed_id` string
      - `thumbnail` object
        - `height` integer
        - `url` string
        - `width` integer
      - `url` string
    - `instruction_text` string
    - `internal` boolean: A boolean value indicating whether the field is visible only to team members and hidden from clients
    - `min_answer_count` integer
    - `max_answer_count` integer
    - `name` string
    - `placeholder` string
    - `rejection_message` RejectionMessage
      - `text` string
    - `repeater_enabled` boolean
    - `required` boolean
    - `show_instruction` boolean
    - `sorting_position` integer
    - `status` string
    - `reference_id` string: A reference ID is a unique identifier that remains consistent across all instances of a field, whether in multiple requests or within repeated sections of the same request
    - `sub_type` string
    - `type` string
    - `values` string[]
    - `values_flat` string
    - `values_structured` union[]
      - union
        - object
          - `value` string
        - object: For fields with sub_type 'checkbox', 'radio', 'task list', 'select', 'image select'
          - `values` string[]
        - object: For fields with sub_type 'abr verification'
          - `identifier` string
          - `type` string
          - `confirmed` string
          - `entity_name` string
          - `location` string
          - `active` string
        - object: For fields with sub_type 'address'
          - `formatted_address` string
          - `street_number` string
          - `street_address` string
          - `locality` string
          - `administrative_area` string
          - `country` string
          - `post_code` string
        - object: For fields with sub_type 'button'
          - `button_text` string
          - `link_to_url` string
        - object: For fields with sub_type 'currency'
          - `formatted_value` string
          - `currency_code` string
          - `amount` string
        - object: For fields with sub_type 'date_range'
          - `start_date` string
          - `end_date` string
          - `number_of_days` integer
        - object: For fields with sub_type 'signature'
          - `signed` boolean
          - `user_name` string
          - `ip_address` string
          - `signed_at` string
        - object: For fields with sub_type 'country select'
          - `country_code` string
          - `name` string
  - `id` string
  - `instruction_text` string
  - `name` string
  - `show_instruction` boolean
  - `sorting_position` integer
  - `reference_id` string: A reference ID is an identifier, unique within a page, that remains consistent across all instances of a section, whether in multiple requests or within duplicated pages of the same request

## Other responses

- `401`: unauthorized
- `403`: forbidden
- `404`: not found
- `422`: unprocessable entity

---

[API](https://skmtc.dev/contentsnare/apis/api-general-info.md) - [All operations](https://skmtc.dev/contentsnare/apis/api-general-info/llms.txt) - [OpenAPI document](https://skmtc.dev/contentsnare/apis/api-general-info/revisions/d3048549a0ba?raw)
