> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hyperline.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Create contract clause

> Create a contract clause in the contract library.



## OpenAPI

````yaml post /v1/contracts/clauses
openapi: 3.1.0
info:
  title: Hyperline API
  version: 0.0.0
servers:
  - url: https://api.hyperline.co
  - url: https://sandbox.api.hyperline.co
security: []
paths:
  /v1/contracts/clauses:
    post:
      tags:
        - Contracts > Clauses
      summary: Create contract clause
      description: Create a contract clause in the contract library.
      operationId: createContractClause
      requestBody:
        description: Contract clause creation payload.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateContractClause'
      responses:
        '201':
          description: Contract clause created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractClause'
        '400':
          description: Invalid contract clause.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - bearer: []
components:
  schemas:
    CreateContractClause:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          description: Name of the contract clause, displayed in the contract library.
          example: Termination clause
        text:
          type: string
          minLength: 1
          description: >-
            Default text of the clause, used when no translation exists for the
            customer language. Plain text, line breaks are preserved.
          example: >-
            Either party may terminate the agreement with a 30-day written
            notice.
        translations:
          type: object
          additionalProperties:
            type: object
            properties:
              text:
                type: string
                minLength: 1
                description: Text of the clause in this language.
                example: >-
                  Chaque partie peut résilier le contrat avec un préavis écrit
                  de 30 jours.
            required:
              - text
          description: >-
            Translations of the clause, keyed by language code. The translation
            matching the customer language is used instead of `text`.
          example:
            fr:
              text: >-
                Chaque partie peut résilier le contrat avec un préavis écrit de
                30 jours.
        invoicing_entity_ids:
          type: array
          items:
            type: string
          description: >-
            IDs of the invoicing entities for which the clause is available when
            building a quote.
          example:
            - ive_jerrb484RHn
      required:
        - name
        - text
      additionalProperties: false
    ContractClause:
      type: object
      properties:
        id:
          type: string
          description: Contract clause ID.
          example: ccl_QalW2vTAdkR6IY
        name:
          type: string
          description: Name of the contract clause, displayed in the contract library.
          example: Termination clause
        text:
          type: string
          description: >-
            Default text of the clause, used when no translation exists for the
            customer language. Plain text, line breaks are preserved.
          example: >-
            Either party may terminate the agreement with a 30-day written
            notice.
        translations:
          type: object
          additionalProperties:
            type: object
            properties:
              text:
                type: string
                description: Text of the clause in this language.
                example: >-
                  Chaque partie peut résilier le contrat avec un préavis écrit
                  de 30 jours.
            required:
              - text
          description: >-
            Translations of the clause, keyed by language code. The translation
            matching the customer language is used instead of `text`.
          example:
            fr:
              text: >-
                Chaque partie peut résilier le contrat avec un préavis écrit de
                30 jours.
        invoicing_entity_ids:
          type: array
          items:
            type: string
          description: >-
            IDs of the invoicing entities for which the clause is available when
            building a quote.
          example:
            - ive_jerrb484RHn
        created_at:
          type: string
          format: date-time
          description: >-
            Contract clause creation date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-06-03T12:32:22Z'
        updated_at:
          type: string
          format: date-time
          description: >-
            Contract clause last edition date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-06-07T18:13:25Z'
      required:
        - id
        - name
        - text
        - translations
        - invoicing_entity_ids
        - created_at
        - updated_at
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.