BizKitHub
DocsAPI ReferenceContract/bff/contract/update
postContractAdmin BFF

/bff/contract/update

Updates contract fields. Only provided fields are changed. Cannot update a finalized (PDF-generated) contract.

ContractpostBffContractUpdate

Parameters

JSON body

Request body

application/json
contractIdnumberRequired

Internal contract ID to update.

Example10
titlestringOptional

New contract title.

Length: 1
ExampleUpdated Agreement
contentstringOptional

New contract body in Markdown format.

Example# Updated content
status"draft" | "pending_review" | "approved" | "signed" | "active" | "expired" | "cancelled" | "archived"Optional

Contract lifecycle status.

Examplesdraftactivesigned
validFromstringOptional

New validity start (ISO timestamp).

Example2026-01-01T00:00:00.000Z
validTostringOptional

New validity end (ISO timestamp).

Example2027-01-01T00:00:00.000Z

Response schema

1 status code documented

200Success
successbooleanRequired

Whether the contract was updated successfully.

Response example

application/json
{
  "success": false
}

Request example

POST /bff/contract/update

post
curl -X POST "https://api.bizkithub.com/bff/contract/update" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "contractId": 10,
  "title": "Updated Agreement",
  "content": "# Updated content",
  "status": "draft",
  "validFrom": "2026-01-01T00:00:00.000Z",
  "validTo": "2027-01-01T00:00:00.000Z"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key