---
title: "Create Agreement Version"
method: POST
path: "/finalize/v2/agreements/{agreement_id}/agreement_versions"
tags: ["Finalize Agreement Versions"]
---

# Create Agreement Version

`POST /finalize/v2/agreements/{agreement_id}/agreement_versions`

## Request

- Base URL: `https://api.linksquares.com/api`
- URL: `https://api.linksquares.com/api/finalize/v2/agreements/{agreement_id}/agreement_versions`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/linksquares/apis/linksquares-api/docs/finalize/v2/agreements/:agreement_id/agreement_versions/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `agreement_id` string, uuid, required

## Request body

- object
  - `data` object, required
    - `status_id` string, uuid, required: The status UUID.
    - `agreement_version_file` object, required: Information about the agreement version file to be uploaded.
      - `name` string, required: File name with extension. File must be type docx, pdf, or xlsx.

## Response `201`

created

- object
  - `data` object, required
    - `id` string, uuid: The UUID of the agreement version.
  - `_links` object, required: Links to finish agreement version creation.
    - `agreement_version_file_upload` object, required
      - `href` string, required: Presigned upload URL for the agreement version file.
      - `operation` string, required: The HTTP verb. PUT only.
      - `file` string, required: File name with extension.
    - `agreement_version_upload_complete` object, required
      - `href` string, required: Endpoint to complete agreement version creation.
      - `operation` string, required: The HTTP verb. PATCH only.
      - `body` object, required
        - `data` object, required
          - `upload_complete` boolean, required: Patch this field as `true` after the agreement version file has been uploaded.

## Other responses

- `404`: not_found
- `422`: unprocessable_entity

---

[API](https://skmtc.dev/linksquares/apis/linksquares-api.md) - [All operations](https://skmtc.dev/linksquares/apis/linksquares-api/llms.txt) - [OpenAPI document](https://skmtc.dev/linksquares/apis/linksquares-api/revisions/4d597e83cd78?raw)
