Organizing locations
Add locations to a folder
This API adds specified locations to a folder. If the folder does not exist, it will be created automatically.
Behavior:
- If locationIds are provided, the locations will be added to the folder.
- If locationIds is omitted or empty, only the folder will be created.
post/locations/folders
Request
- Base URLhttps://api.synup.com/api/v4
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Authorizationstring
API key for authentication
Request body
Example request
{
"input": {
"name": "Acme",
"locationIds": [
"TG9jYXRpb246MTY4NjE=",
"TG9jYXRpb246MTY4NjA="
]
}
}Response
Successfully added locations to folder
Example response
{
"data": {
"addLocationsToFolder": {
"folder": {
"accountId": 10072,
"id": "0e4cc56e-45f8-4058-a713-ead264fa9318",
"name": "acme"
}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.