---
title: "POST /agreements/{agreement_id}/contracts"
method: POST
path: "/agreements/{agreement_id}/contracts"
tags: ["Agreements"]
---

# POST /agreements/{agreement_id}/contracts

`POST /agreements/{agreement_id}/contracts`

## Path parameters

- `agreement_id` string, required

## Request body

- DpContract
  - `id` string
  - `type` string
  - `version` integer, nullable
  - `status` string
  - `owner` DpAccountReference
    - `id` string, required
    - `name` string
    - `icon` string, nullable
  - `version_created` string, date-time, nullable
  - `events` object
    - `created` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `updated` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `signed` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `countersigned` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `terminated` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
  - `name` string
  - `agreement` DpAgreementReference
    - `id` string, required
    - `name` string
  - `creator` DpAccountReference
    - `id` string, required
    - `name` string
    - `icon` string, nullable
  - `enrolled` string, date-time, nullable
  - `latest` string
  - `activation` DpActivationField
    - `code` string
    - `message` string, required
    - `note` string
  - `signee` DpUserReference
    - `id` string
    - `name` string, nullable
    - `icon` string, nullable
  - `kind` 'production' | 'test'
  - `expire_at` string, date-time, nullable
  - `note` string, nullable
  - `permissions` object, nullable
  - `termination_note` string, nullable
  - `issuer` DpAccountReference
    - `id` string, required
    - `name` string
    - `icon` string, nullable

## Response `201`

- DpContract
  - `id` string
  - `type` string
  - `version` integer, nullable
  - `status` string
  - `owner` DpAccountReference
    - `id` string, required
    - `name` string
    - `icon` string, nullable
  - `version_created` string, date-time, nullable
  - `events` object
    - `created` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `updated` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `signed` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `countersigned` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
    - `terminated` object
      - `at` string, datetime
      - `by` object
        - `id` string
        - `name` string
        - `icon` string
  - `name` string
  - `agreement` DpAgreementReference
    - `id` string, required
    - `name` string
  - `creator` DpAccountReference
    - `id` string, required
    - `name` string
    - `icon` string, nullable
  - `enrolled` string, date-time, nullable
  - `latest` string
  - `activation` DpActivationField
    - `code` string
    - `message` string, required
    - `note` string
  - `signee` DpUserReference
    - `id` string
    - `name` string, nullable
    - `icon` string, nullable
  - `kind` 'production' | 'test'
  - `expire_at` string, date-time, nullable
  - `note` string, nullable
  - `permissions` object, nullable
  - `termination_note` string, nullable
  - `issuer` DpAccountReference
    - `id` string, required
    - `name` string
    - `icon` string, nullable

## Other responses

- `400`

---

[API](https://skmtc.net/cloudblue/apis/cloudblue-connect-api.md) · [All operations](https://skmtc.net/cloudblue/apis/cloudblue-connect-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudblue/cloudblue-connect-api/versions/54fef191d46c/schema)
