Skip to main content

Add an attachment

POST 

/agreements/:agreement_id/documents/attachments

Add an attachment for the agreement. Attachments are supplemental documents for the agreement. You can specify the order in which they are presented. If not specified they will be added at the end.

Request

Path Parameters

    agreement_id cuidrequired

    POST /agreements/:agreement_id/documents/attachments parameter

Body

POST /agreements/:agreement_id/documents/attachments request body

    file_id cuidrequired
    order int64

    Possible values: >= -9007199254740991 and <= 9007199254740991

Responses

POST /agreements/:agreement_id/documents/attachments Successful response

Schema
    version stringrequired

    Possible values: [1.0]

    The version of the response schema

    result_type stringrequired

    Possible values: [single]

    A single object of the attachment resource.

    resource_type stringrequired

    Possible values: [attachment]

    Data contains the attachment resource.

    data objectrequired

    The resource data.

    id cuidrequired

    The unique identifier of the attachment

    resource_type stringrequired

    Possible values: [attachment]

    agreement cuidrequired

    The unique identifier of the agreement which this attachment belongs to

    order int64required

    Possible values: <= 9007199254740991

    The order of this attachment relative to the other attachments

    file object required
    oneOf

    string

    created_at stringrequired

    UTC datetime ISO string

    updated_at stringrequired

    UTC datetime ISO string

Loading...