Folders are used to store attachments for easy grouping. For example, you can create an attachment folder for a project and store every supporting document for the project in that folder.
Attachment folders can be nested. The folder hierarchy can be as broad or deep as needed.
Returns a collection with a key, ID, and link for each folder. This operation is mostly for use in testing; use the query service to find folders that meet certain criteria and specify the properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "1",
- "id": "Bills",
- "href": "/objects/company-config/folder/1"
}, - {
- "key": "2",
- "id": "Credits",
- "href": "/objects/company-config/folder/2"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new folder for attachments.
Folder to create
id required | string Unique name for the folder. Cannot be changed after the folder is created. Example: "2024 Taxes" | ||||
description | string Description of the folder. Example: "2024 tax forms" | ||||
object Parent folder, for folder hierarchies. | |||||
| |||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
Created
Bad Request
{- "id": "2024 Bills",
- "description": "Annual bills folder",
- "status": "active"
}
{- "ia::result": {
- "key": "28",
- "id": "2024 Bills",
- "href": "/objects/company-config/folder/28"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified folder.
key required | string System-assigned key for an attachment folder. Example: 28 |
OK
Bad Request
{- "ia::result": {
- "key": "28",
- "id": "2024 Bills",
- "parent": {
- "id": "Bills",
- "key": "2",
- "href": "/objects/company-config/folder/2"
}, - "description": "Annual bills folder",
- "audit": {
- "createdDate": "2023-04-01",
- "createdBy": "Admin",
- "modifiedBy": "Admin",
- "modifiedDate": "2023-04-01"
}, - "status": "active",
- "hasSubfolders": false,
- "href": "/objects/company-config/folder/28"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing folder by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for an attachment folder. Example: 28 |
description | string Description of the folder. Example: "2024 tax forms" | ||||
object Parent folder, for folder hierarchies. | |||||
| |||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
OK
Bad Request
{- "description": "2024 bills and dunning notices"
}
{- "ia::result": {
- "key": "1",
- "id": "Bills",
- "href": "/objects/company-config/folder/1"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a folder and all of its sub-folders and attachments. You must first remove the attachments from any objects or transactions.
key required | string System-assigned key for an attachment folder. Example: 28 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}