Applications

Create a contract

Attach a new contract to the application.

Required scope contracts:add

post/applications/{id}/contracts

Authorizations

Authorizationstringrequired

Authorization header carrying a workspace API key, as “Bearer kbn_live_…”. The X-Api-Key header is accepted equivalently.

Path parameters

idstring<uuid>required

Identifier of the application. Must belong to the workspace the key is bound to.

Bodyapplication/json

naturestringrequired

Nature of the contract.

startDatestring<date>required

Date the contract starts.

endDatestring<date>

Date the contract ends.

amountPerMonthnumber

Monthly amount, in the workspace currency.

enableProjectionboolean

Whether the contract feeds financial projections.

Response201 · application/json

The contract was created.

idstring<uuid>required

Identifier of the contract.

naturestringrequired

Nature of the contract.

startDatestring<date> | null

Date the contract starts.

endDatestring<date> | null

Date the contract ends.

amountPerMonthnumber | null

Monthly amount, in the workspace currency.

enableProjectionboolean

Whether the contract feeds financial projections.