{ "message": "Invalid input (details will vary based on the error)", "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf", "category": "VALIDATION_ERROR", "links": { "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base" }}
Source code
Download a file
Downloads the byte contents of the file at the specified path in the specified environment.
{ "message": "Invalid input (details will vary based on the error)", "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf", "category": "VALIDATION_ERROR", "links": { "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base" }}
Supported products
Required Scopes
Authorizations
oauth2oauth2oauth2
Authorization
string
header
required
The access token received from the authorization server in the OAuth 2.0 flow.
Scopes
cms.source_code.read
marketplace_validation
content
Path Parameters
environment
string
required
The environment of the file ("draft" or "published").
path
string
required
The file system location of the file.
Pattern: .+
Response
default - */*
Represents an error response returned by the API when an operation fails. This component is used in various endpoints to provide detailed information about the error encountered.
category
string
required
The error category
correlationId
string<uuid>
required
A unique identifier for the request. Include this value with any error reports or support tickets
Example:
"aeb5f871-7f07-4993-9211-075dc63e7cbf"
message
string
required
A human readable message describing the error along with remediation steps where appropriate