POST /attachments
Attaches a file to one or multiple objects, such as: customer, dispute, transaction, order, plan, product, invoice, or timeline comment. Attachments enable you to quickly find and use files related to specific entities.
Servers
- https://api-sandbox.rebilly.com/organizations/{organizationId}
- https://api.rebilly.com/organizations/{organizationId}
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
id |
String | No |
ID of the attachment. |
_links[] |
Array | No |
Related links. |
_links[].href |
String | No |
Link URL. |
_links[].rel |
String | No |
Type of link. Valid values:
|
relatedId |
String | Yes |
ID of the linked object. |
_embedded |
Object | No |
Embedded objects that are requested by the |
_embedded.file |
Object | No | |
name |
String | No |
Name of original attachment. |
fileId |
String | Yes |
ID of the linked file object. |
description |
String | No |
Description of the attachment. |
updatedTime |
String | No |
Date and time when the resource is updated. This value is set automatically when the resource is updated. |
createdTime |
String | No |
Date and time when the resource is created. This value is set automatically when the resource is created. |
relatedType |
String | Yes |
Linked object type. Valid values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.