Lease Attachments
Get lease attachments
HTTP Basic authentication using clientId as username and clientSecret as password
In: header
Path Parameters
uuidHeader Parameters
API version to use for the request. When you omit the header, the API version set on your app is used.
Required when operating on behalf of a connected account
uuidResponse 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.
HTTP Basic authentication using clientId as username and clientSecret as password
In: header
Path Parameters
uuidQuery Parameters
Idempotency key for write requests. Cached for 24 hours.
Header Parameters
API version to use for the request. When you omit the header, the API version set on your app is used.
Required when operating on behalf of a connected account
uuidResponse 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
HTTP Basic authentication using clientId as username and clientSecret as password
In: header
Path Parameters
uuiduuidQuery Parameters
Idempotency key for write requests. Cached for 24 hours.
Header Parameters
API version to use for the request. When you omit the header, the API version set on your app is used.
Required when operating on behalf of a connected account
uuidResponse 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"{
"requestId": "string",
"message": "string",
"errorCode": "string"
}