API reference · Contract Lines
POST/api/v1/contract-line-templates/{id}/create-contract-line

Create contract line from template

Creates a contract line from a template. Current controller validates body createPlanFromTemplateSchema and passes that body to service; path `{id}` is not used by service logic.

Path parameters

idstring <uuid>Required
Template UUID from plan_templates.template_id.

Request body

Content type: application/json · schema CreateContractLineFromTemplateBody

template_idstring <uuid>Required
Used by service; current controller ignores the path id and relies on this field.
contract_line_namestringRequired
min length 1 · max length 255
modify_ratesobject
percentage_changenumber
fixed_adjustmentnumber
override_servicesarray of object
itemsobject
service_idstring <uuid>Required
custom_ratenumber
≥ 0
quantitynumber
≥ 1

Response body

Success response 201 · schema ContractLineApiSuccess

successbooleanRequired
Enum: true
dataanyOfRequired
anyOf (option 1)object
anyOf (option 2)array of object
itemsobject
metaobject
timestampstring <date-time>Required
versionstringRequired

Response codes

201
Contract line created from template.
400
Invalid request payload.
401
x-api-key missing at middleware.
500
Request context missing or template application failure.