---
title: "Create"
method: POST
path: "/api/cp/contract"
tags: ["Contract"]
---

# Create

`POST /api/cp/contract`

Create a new Contract record.

## Request body

- ContractInput
  - `id` integer — Id
  - `contract_rev_id` integer, required — Contract Rev Id (references contract_rev.id)
  - `company_id` integer, required — Company Id
  - `route_ingress_id` integer — Route Ingress Id
  - `required` integer — Required
  - `date_created` string, date-time — Date Created
  - `date_grace` string, date-time — Date Grace
  - `date_approved` string, date-time — Date Approved
  - `approved_by` string — Approved By
  - `identity_id` string — Identity Id

## Response `200`

Successful response

- CreateResponse
  - `id` union — The ID of the newly created record
    - integer
    - string
  - `status` string — Operation status

## Other responses

- `400` — Bad Request - Invalid parameters or request body
- `401` — Authentication information is missing or invalid
- `403` — Access denied - insufficient permissions or dependency access failure
- `409` — Conflict - foreign key or unique constraint violation on write
- `500` — Internal server error

---

[API](https://skmtc.dev/connexcs/apis/connexcs-control-panel-api.md) · [All operations](https://skmtc.dev/connexcs/apis/connexcs-control-panel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/connexcs/connexcs-control-panel-api/revisions/54bc2ed6edae/schema)
