(parentFolder)
or parent folder name (parentFolderName)
is not provided, the folder will be created under the root folder.{
"input": {
"name": "franchise",
"parentFolderName": "all_franchise"
}
}
curl --location --request POST 'https://api.synup.com/api/v4/folders/create' \
--header 'Authorization: API T9V35W3xxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": {
"name": "franchise",
"parentFolderName": "all_franchise"
}
}'
{
"data": {
"createFolder": {
"clientMutationId": null,
"errors": null,
"folder": {
"accountId": 11073,
"archived": false,
"createdAt": "2024-04-03 10:29:49 UTC",
"id": "d6cc61b3-6da7-4b64-a7c0-340c0df25f4c",
"locationCount": null,
"name": "franchise",
"root": false
},
"success": true
}
}
}