curl --request POST \
--url https://api.hubapi.com/cms/v3/pages/landing-pages/folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"category": 123,
"created": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"parentFolderId": 123,
"updated": "2023-11-07T05:31:56Z"
}
'{
"category": 123,
"created": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"parentFolderId": 123,
"updated": "2023-11-07T05:31:56Z"
}Create a new folder for landing pages.
curl --request POST \
--url https://api.hubapi.com/cms/v3/pages/landing-pages/folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"category": 123,
"created": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"parentFolderId": 123,
"updated": "2023-11-07T05:31:56Z"
}
'{
"category": 123,
"created": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"parentFolderId": 123,
"updated": "2023-11-07T05:31:56Z"
}Supported products
Required Scopes
The access token received from the authorization server in the OAuth 2.0 flow.
Model definition for a content folder.
The type of object this folder applies to. Should always be LANDING_PAGE.
The timestamp indicating when the content folder was created.
The timestamp (ISO8601 format) when this content folder was deleted.
The unique ID of the content folder.
The name of the folder which will show up in the app dashboard
The ID of the content folder this folder is nested under
The timestamp indicating when the content folder was last updated.
successful operation
Model definition for a content folder.
The type of object this folder applies to. Should always be LANDING_PAGE.
The timestamp indicating when the content folder was created.
The timestamp (ISO8601 format) when this content folder was deleted.
The unique ID of the content folder.
The name of the folder which will show up in the app dashboard
The ID of the content folder this folder is nested under
The timestamp indicating when the content folder was last updated.
Was this page helpful?