---
title: "Create partner in the contract"
method: POST
path: "/partner"
tags: ["Distributors"]
---

# Create partner in the contract

`POST /partner`

## Request

- Base URL: `https://api.partner.eu-central-2.impossiblecloud.com/v1`
- URL: `https://api.partner.eu-central-2.impossiblecloud.com/v1/partner`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/impossiblecloud/apis/impossible-cloud-management-console-public-api/docs/partner/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows the creation of a new partner within a specific contract. It is designed for distributors to add partners to their contracts efficiently.
Use Case: As a Distributor, I want to create a new Partner within a specific contract to expand my network and manage my contractual relationships.

## Request body

- ApiCreatePartnerReqBody
  - `allocatedCapacity` integer, required: The capacity allocated to this new partner
  - `allowOverdraft` boolean: Indicated if the partner can go over its allocated capacity
  - `distributorContractId` string, required: UUID of the distributor's contract with which the partner is to be associated
  - `name` string, required: The name of the new partner

## Response `201`

Created

- ApiDistributorPartnerResponse
  - `allocatedCapacity` integer: The capacity allocated to this partner under the contract
  - `allowOverdraft` boolean: Indicates if the partner can go over it's allocated capacity
  - `details` string: Additional details about the partner
  - `distributorContractId` string: The ID of the distributor's contract (UUID)
  - `id` string: The unique identifier of the partner (UUID)
  - `name` string: The name of the partner

---

[API](https://skmtc.dev/impossiblecloud/apis/impossible-cloud-management-console-public-api.md) - [All operations](https://skmtc.dev/impossiblecloud/apis/impossible-cloud-management-console-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/impossiblecloud/apis/impossible-cloud-management-console-public-api/revisions/d22e84e8b0db?raw)
