GET
/
cms
/
v3
/
source-code
/
{environment}
/
metadata
/
{path}
Obtenez les métadonnées d'un fichier
curl --request GET \
  --url https://api.hubapi.com/cms/v3/source-code/{environment}/metadata/{path} \
  --header 'Authorization: Bearer <token>'
{
  "createdAt": 123,
  "archivedAt": 123,
  "folder": true,
  "children": [
    "<string>"
  ],
  "name": "<string>",
  "id": "<string>",
  "hash": "<string>",
  "updatedAt": 123
}
Produits pris en charge
Exige l'un des produits suivants ou un produit supérieur.
Marketing HubMarketing HubGratuit
Sales HubSales HubGratuit
Service HubService HubGratuit
Content HubContent HubGratuit

Portées requises

Cette API requiert l’une des portées suivantes :
  • content

Authorizations

Authorization
string
header
required

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

Path Parameters

environment
string
required

L'environnement du fichier (« brouillon » ou « publié »).

path
string
required

L'emplacement du fichier dans le système de fichiers.

Query Parameters

properties
string

Response

200
application/json

successful operation

The response is of type object.