POST
/
cms
/
v3
/
source-code
/
{environment}
/
content
/
{path}
Criar um arquivo
curl --request POST \
  --url https://api.hubapi.com/cms/v3/source-code/{environment}/content/{path} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file=@example-file
{
  "createdAt": 123,
  "archivedAt": 123,
  "folder": true,
  "children": [
    "<string>"
  ],
  "name": "<string>",
  "id": "<string>",
  "hash": "<string>",
  "updatedAt": 123
}
Produtos suportados
Requer um dos seguintes produtos ou superior.
Marketing HubMarketing HubGrátis
Sales HubSales HubGrátis
Service HubService HubGrátis
Content HubContent HubGrátis

Escopos Necessários

Esta API requer um dos seguintes escopos:
  • 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

O ambiente do arquivo (rascunho ou publicado).

path
string
required

A localização do sistema de arquivos do arquivo.

Body

multipart/form-data

Response

200
application/json

successful operation

The response is of type object.