Composite request service for submitting multiple "subrequests" in a single POST request. See the Composite request service guide for a full description and examples.
Sends multiple requests within a single POST request.
Array of subrequests
method required | string Operation for request. Example: "POST" |
path required | string^\/(objects|services)\/[a-z_][a-z_0-9.\-:]+(.... Path to the request endpoint in the Intacct REST API. Example: "/objects/accounts-payable/vendor" |
headers | object Headers needed for this request. Example: {"Idempotency-Key":"e9606bb2-6be1-4c9e-a2a7-134cd644a5ee"} |
body | object Request body for POST or PATCH operations. Example: {"lastName":"Doe","firstName":"John","id":"Doe, John"} |
resultReference | string Reference identifier for success results, used by other requests as input data. Example: "contactRef" |
OK
Multi-Status
Bad Request
[- {
- "method": "PATCH",
- "path": "/objects/company-config/employee/26",
- "body": {
- "location": {
- "key": "6"
}
}
}, - {
- "method": "PATCH",
- "path": "/objects/company-config/employee/33",
- "body": {
- "location": {
- "key": "6"
}
}
}, - {
- "method": "PATCH",
- "path": "/objects/company-config/employee/62",
- "body": {
- "location": {
- "key": "6"
}
}
}
]
{- "ia::result": [
- {
- "ia::result": {
- "key": "26",
- "id": "0014",
- "href": "/objects/company-config/employee/26"
}, - "ia::meta": {
- "totalCount": 1
}, - "ia::status": 200
}, - {
- "ia::result": {
- "key": "33",
- "id": "1",
- "href": "/objects/company-config/employee/33"
}, - "ia::meta": {
- "totalCount": 1
}, - "ia::status": 200
}, - {
- "ia::result": {
- "key": "62",
- "id": "2",
- "href": "/objects/company-config/employee/62"
}, - "ia::meta": {
- "totalCount": 1
}, - "ia::status": 200
}
], - "ia::meta": {
- "totalCount": 3
}
}