After you create a creative asset business folder, you can add subfolders to help you organize your assets.
Example request:
curl -X GET \ -F 'access_token=<USER_ACCESS_TOKEN>' \ https://graph.facebook.com/v<API_VERSION>/<PARENT_FOLDER_ID>/subfolders?fields=<FOLDER_NAME>
Example of a successful response:
{ "data": [ { "name": "<SUBFOLDER_NAME>", "id": "<SUBFOLDER_ID>" } ] }
To create a subfolder, you need business_creative_management
permission.
Example request:
curl -X POST \ -F "name=<FOLDER_NAME>" -F "description=<DESCRIPTION>" -F "parent_folder_id=<PARENT_FOLDER_ID>" -F 'access_token=<USER_ACCESS_TOKEN>' \ https://graph.facebook.com/V<API_VERSION>/<BUSINESS_ID>/creative_folders
Example of a successful response:
{ "id": "<SUBFOLDER_ID>" }
The subfolder ID can be used during the creative asset upload process. This works the the same it would if you add a creative asset to the parent folder.
Folders and subfolders can be deleted with DELETE
request to /<folder_id>
or /<subfolder_id>
endpoint.