curl --request POST \
--url https://api.hubapi.com/cms/v3/pages/landing-pages/folders/batch/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"inputs": [
{
"deletedAt": "2023-11-07T05:31:56Z",
"parentFolderId": 123,
"created": "2023-11-07T05:31:56Z",
"name": "<string>",
"id": "<string>",
"category": 123,
"updated": "2023-11-07T05:31:56Z"
}
]
}'
{
"completedAt": "2023-11-07T05:31:56Z",
"requestedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"links": {},
"results": [
{
"deletedAt": "2023-11-07T05:31:56Z",
"parentFolderId": 123,
"created": "2023-11-07T05:31:56Z",
"name": "<string>",
"id": "<string>",
"category": 123,
"updated": "2023-11-07T05:31:56Z"
}
],
"status": "PENDING"
}
Create the Folder objects detailed in the request body.
curl --request POST \
--url https://api.hubapi.com/cms/v3/pages/landing-pages/folders/batch/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"inputs": [
{
"deletedAt": "2023-11-07T05:31:56Z",
"parentFolderId": 123,
"created": "2023-11-07T05:31:56Z",
"name": "<string>",
"id": "<string>",
"category": 123,
"updated": "2023-11-07T05:31:56Z"
}
]
}'
{
"completedAt": "2023-11-07T05:31:56Z",
"requestedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"links": {},
"results": [
{
"deletedAt": "2023-11-07T05:31:56Z",
"parentFolderId": 123,
"created": "2023-11-07T05:31:56Z",
"name": "<string>",
"id": "<string>",
"category": 123,
"updated": "2023-11-07T05:31:56Z"
}
],
"status": "PENDING"
}
content
The access token received from the authorization server in the OAuth 2.0 flow.
The JSON array of new Folders to create.
Wrapper for providing an array of content folders as inputs.
successful operation
Response object for successful batch operations on content folders.
Was this page helpful?