Skip to main content

Delete an Attachment

DELETE 

/agreements/:agreement_id/documents/attachments/:attachment_id

Detaches and deletes an attachment from the agreement. The attachment order will be updated accordingly.

Request

Path Parameters

    agreement_id cuidrequired

    DELETE /agreements/:agreement_id/documents/attachments/:attachment_id parameter

    attachment_id cuidrequired

    DELETE /agreements/:agreement_id/documents/attachments/:attachment_id parameter

Responses

DELETE /agreements/:agreement_id/documents/attachments/:attachment_id Successful response

Schema
    version stringrequired

    Possible values: [1.0]

    The version of the response schema

    result_type stringrequired

    Possible values: [deleted]

    Returns a single object of the attachment resource which was deleted.

    resource_type stringrequired

    Possible values: [attachment]

    Data contains the attachment resource.

    data objectrequired

    The resource data that was deleted.

    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...