Skip to main content
POST
/
v1
/
businesses
/
{businessId}
/
documents
/
{documentId}
/
abort
Abort document upload
curl --request POST \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/documents/{documentId}/abort \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "upload_id": "<string>"
}
'
{
  "type": "{}"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json.

Path Parameters

businessId
string<uuid>
required

The UUID of the business.

documentId
string<uuid>
required

The UUID of the document returned from the create endpoint.

Body

application/json

Parameters for aborting a multipart upload.

upload_id
string
required

The upload ID returned from the create document endpoint.

Response

Upload aborted successfully.

type
string

Resource type. Value will be 'com.layerfi.controllers.EmptyResponse'.

Example:

"{}"