PlatformIntegrations
API ReferenceV1.2 (Current)

Lease Attachments

Get lease attachments

GET
/leases/{leaseId}/attachments
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

leaseIdstring
Formatuuid

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid

Response Body

application/json

application/json

curl -X GET "https://api.obligo.com/leases/497f6eca-6276-4993-bfeb-53cbbbba6f08/attachments" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
[
  {
    "fileId": "a1c6a2ab-4b01-4253-b4c9-70e04b3b48fc",
    "type": "Ledger"
  }
]
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Attach files to a lease

Attaches one or more uploaded files to a lease. The request body is an array.

POST
/leases/{leaseId}/attachments
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

leaseIdstring
Formatuuid

Query Parameters

idempotencyId?string

Idempotency key for write requests. Cached for 24 hours.

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid

Response Body

application/json

application/json

application/json

curl -X POST "https://api.obligo.com/leases/497f6eca-6276-4993-bfeb-53cbbbba6f08/attachments?idempotencyId=string" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '[    {      "fileId": "3f1c2b9e-7a4d-4e8b-9c1a-2d5e6f7a8b9c",      "type": "Ledger"    },    {      "fileId": "8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d",      "type": "Receipt"    }  ]'
{}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Detach a file from a lease

DELETE
/leases/{leaseId}/attachments/{fileId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

leaseIdstring
Formatuuid
fileIdstring
Formatuuid

Query Parameters

idempotencyId?string

Idempotency key for write requests. Cached for 24 hours.

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid

Response Body

application/json

curl -X DELETE "https://api.obligo.com/leases/497f6eca-6276-4993-bfeb-53cbbbba6f08/attachments/497f6eca-6276-4993-bfeb-53cbbbba6f08?idempotencyId=string" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}