locationIds
are provided, the locations will be added to the folder. locationIds
is omitted or empty, only the folder will be created.{
"input": {
"name": "Acme",
"locationIds": [
"TG9jYXRpb246MTY4NjE=",
"TG9jYXRpb246MTY4NjA="
]
}
}
curl --location --request POST 'https://api.synup.com/api/v4/locations/folders' \
--header 'Authorization: T9V35W3xxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": {
"name": "Acme",
"locationIds": [
"TG9jYXRpb246MTY4NjE=",
"TG9jYXRpb246MTY4NjA="
]
}
}'
{
"data": {
"addLocationsToFolder": {
"errors": null,
"folder": {
"accountId": 10072,
"archived": false,
"id": "0e4cc56e-45f8-4058-a713-ead264fa9318",
"name": "acme",
"root": false
}
}
}
}