Bulk location actions
Changed onPOST /api/v1/locations/bulk
Bulk actions allow to make changes to multiple locations in a single request. The following actions are supported:
- archive
- restore
- delete
All of these actions require an array of location ids to perform the requested action on ie.
"ids":['id1','id2']
Request
- Base URLhttps://demo.invoiceninja.com
- Authnone declared. Required headers: X-API-TOKEN, X-Requested-With
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Replaces the default response index from data to a user specific string
ie.
?index=new_index
response is wrapped
{
'new_index' : [
.....
]
}
Headers
The API token to be used for authentication
Used to send the XMLHttpRequest header
Request body
Example request
{
"action": "archive",
"ids": [
"2J234DFA,D2J234DFA,D2J234DFA"
]
}Response
The Location list Response of the updated locations that were bulk updated
Example response
{
"id": "Kd5S2M",
"name": "Warehouse A",
"address1": "123 Business Street",
"address2": "Suite 100",
"city": "San Francisco",
"state": "CA",
"postal_code": "94107",
"country_id": "840",
"is_shipping_location": true,
"user_id": "Opnel5aKBz",
"assigned_user_id": "Opnel5aKBz",
"client_id": "Opnel5aKBz",
"vendor_id": "Opnel5aKBz",
"created_at": 1623456789,
"updated_at": 1623456999
}Changes
- info
the response optional property
became read-only for the status
- info
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- warning