Create or upsert a contract draft
POST/contract-drafts
Creates a new contract draft. When erp_id is provided, the endpoint updates the existing draft with the same ERP ID or creates a new one. Requires 'create contracts' permission.
Request
Responses
- 201
- 401
- 403
- 422
- 500
Contract draft created successfully
Unauthenticated
Forbidden - Missing permission: create contracts
Validation error
Internal server error