Create a Clause
AuthenticationRequires bearerAuth.
Description
Creates a draft Clause Library entry for later review and approval.
Request body
application/jsonrequired
titlestringrequired
categorystringrequired
textstringrequired
drafting_notestring
fallback_positionsobject[]
tagsstring[]
owner_idstringrequired
Responses
201The created draft Clause.
application/jsonidstringrequired
titlestringrequired
categorystringrequired
textstringrequired
Preferred contract language.
drafting_notestring | null
Internal guidance for editors.
fallback_positionsobject[]
statusstringrequired
Allowed values:
draftapprovedretiredGovernance status of a Clause version.
versionintegerrequired
tagsstring[]required
owner_idstringrequired
reviewed_atstring | null
updated_atstring <date-time>required
Example response
{
"id": "cls_01J8V1B4H6",
"title": "Mutual liability cap",
"category": "Risk allocation",
"text": "string",
"drafting_note": "string",
"fallback_positions": [
{
"label": "Two times fees",
"text": "string",
"requires_approval": true
}
],
"status": "draft",
"version": 0,
"tags": [
"string"
],
"owner_id": "usr_01J7Z9K3W8",
"reviewed_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}401The API key is missing, malformed, expired, or revoked.
application/jsonerrorobjectrequired
Example response
{
"error": {
"code": "unauthorized",
"message": "Provide a valid bearer API key.",
"request_id": "req_01JAZA0P8M"
}
}403The API key does not have permission for this action.
application/jsonerrorobjectrequired
Example response
{
"error": {
"code": "forbidden",
"message": "This API key does not have the required permission.",
"request_id": "req_01JAZA0P8M"
}
}422One or more request fields are invalid.
application/jsonerrorobjectrequired
Example response
{
"error": {
"code": "validation_error",
"message": "Correct the highlighted request fields.",
"request_id": "req_01JAZA0P8M",
"details": [
{
"field": "target_signature_date",
"issue": "must be today or later"
}
]
}
}