Zum Hauptinhalt springen
PUT
/
crm
/
v3
/
lists
/
folders
/
{folderId}
/
rename
Renommer un dossier
curl --request PUT \
  --url https://api.hubapi.com/crm/v3/lists/folders/{folderId}/rename \
  --header 'Authorization: Bearer <token>'
{
  "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.

Path Parameters

folderId
string
required

L'ID du dossier à renommer

Query Parameters

newFolderName
string

Le nouveau nom du dossier.

Response

successful operation

folder
object
required