Zum Hauptinhalt springen
POST
/
crm
/
v3
/
lists
/
folders
Crée un dossier
curl --request POST \
  --url https://api.hubapi.com/crm/v3/lists/folders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "parentFolderId": "<string>"
}'
{
  "folder": {
    "childLists": [
      123
    ],
    "childNodes": [
      {}
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "id": "<string>",
    "name": "<string>",
    "parentFolderId": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z",
    "updatedContentsAt": "2023-11-07T05:31:56Z",
    "userId": 123
  }
}

Produits pris en charge

Exige l'un des produits suivants ou un produit supérieur.
Marketing HubMarketing Hub -Starter
Sales HubSales Hub -Gratuit
Service HubService Hub -Gratuit
Content HubContent Hub -Starter
Cette API requiert l'une des portées suivantes :
cms.membership.access_groups.write
crm.lists.read
crm.lists.read
crm.lists.write

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
name
string
required

Le nom du dossier à créer.

parentFolderId
string

Le dossier dans lequel cela devrait être créé, s'il n'est pas spécifié, cela sera créé dans le dossier racine 0.

Response

successful operation

folder
object
required