---
title: "Edit representment sections"
method: PUT
path: "/dispute/disputes/{disputeId}/evidences/representment-sections"
tags: ["Disputes"]
---

# Edit representment sections

`PUT /dispute/disputes/{disputeId}/evidences/representment-sections`

Update the written sections of your dispute response. Use this endpoint to revise the content before finalizing your representment. If a PDF has already been generated for this dispute, editing the sections will discard it so it can be regenerated with your changes.

## Path parameters

- `disputeId` string, uuid, required

## Headers

- `x-idempotency-key` string, uuid, required

## Request body

- object
  - `sections` object[], required — Complete list of representment sections. Replaces all existing sections for the dispute.
    - `position` integer, required — Position of the section in the representment.
    - `indent` integer, required — Indentation level of the section.
    - `sectionType` 'Text' | 'Picture' | 'Timeline', required — Type of representment section.
    - `textSectionTitle` string — Title of the text section. Required when sectionType is Text.
    - `textSectionContent` string — Content of the text section. Required when sectionType is Text.
    - `pictureSectionEvidenceId` string, uuid — Linked evidence identifier. Required when sectionType is Picture.
    - `pictureSectionLabel` string — Label for the picture section.

## Response `200`

Representment sections replaced successfully.

- object
  - `representmentSections` object[], required — Updated ordered representment sections (Timeline sections excluded).
    - `id` string, uuid, required — Unique identifier of the representment section in Payrails.
    - `disputeId` string, uuid, required — Unique identifier of the dispute in Payrails.
    - `createdAt` string, date-time, required — Date and time when the representment section was created in Payrails.
    - `updatedAt` string, date-time, required — Date and time when the representment section was last updated in Payrails.
    - `position` integer, required — Position of the section in the representment.
    - `indent` integer, required — Indentation level of the section in the representment.
    - `sectionType` 'Text' | 'Picture' | 'Timeline', required — Type of representment section.
    - `textSectionTitle` string — Title of the text section when sectionType is Text.
    - `textSectionContent` string — Content of the text section when sectionType is Text.
    - `pictureSectionEvidenceId` string, uuid — Linked evidence identifier when sectionType is Picture.
    - `pictureSectionLabel` string — Label for the picture section when sectionType is Picture.
    - `pictureSectionEvidenceLinks` object — Links for downloading the picture section evidence file when sectionType is Picture.
      - `download` union
        - string
        - object — Link related information.
          - `href` string, required
          - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' — HTTP method that should be used to call the `href`.
  - `timeline` object[] — Deserialized timeline events extracted from the Timeline section, when present.
    - `date` string, date, required — Date of the timeline event in ISO 8601 format (YYYY-MM-DD).
    - `message` string, required — Concise plain-text description of the timeline event (1-2 sentences, no HTML).

## Other responses

- `400` — Bad Request.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not Found.
- `409` — Conflict.
- `429` — Too Many Requests.
- `500` — Internal Server Error.

---

[API](https://skmtc.net/payrails/apis/payrails-api-reference.md) · [All operations](https://skmtc.net/payrails/apis/payrails-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/payrails/payrails-api-reference/revisions/9dd2f0158582/schema)
