HubSpot · Schema
BatchResponseWithErrors
BatchResponseWithErrors schema from HubSpot Blog Authors API
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-schema/authors-api-batch-response-with-errors-schema.json",
"title": "BatchResponseWithErrors",
"description": "BatchResponseWithErrors schema from HubSpot Blog Authors API",
"allOf": [
{
"type": "object",
"description": "Response from batch operations",
"properties": {
"status": {
"type": "string",
"enum": [
"PENDING",
"PROCESSING",
"CANCELED",
"COMPLETE"
],
"description": "Current status of the batch operation",
"example": "PENDING"
},
"results": {
"type": "array",
"items": {
"type": "object",
"description": "Represents a blog author profile with biographical and social information",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the blog author",
"example": "500123"
},
"name": {
"type": "string",
"description": "Full display name of the author",
"example": "Example Record"
},
"slug": {
"type": "string",
"description": "URL-friendly identifier for the author",
"example": "example-value"
},
"email": {
"type": "string",
"format": "email",
"description": "Author's email address",
"example": "[email protected]"
},
"bio": {
"type": "string",
"description": "Author biography or description",
"example": "example-value"
},
"website": {
"type": "string",
"format": "uri",
"description": "Author's personal website URL",
"example": "https://app.hubspot.com/contacts/12345"
},
"twitter": {
"type": "string",
"description": "Author's Twitter/X handle",
"example": "example-value"
},
"facebook": {
"type": "string",
"description": "Author's Facebook profile URL",
"example": "example-value"
},
"linkedin": {
"type": "string",
"description": "Author's LinkedIn profile URL",
"example": "https://app.hubspot.com/contacts/12345"
},
"avatar": {
"type": "string",
"format": "uri",
"description": "URL to the author's avatar image",
"example": "https://app.hubspot.com/contacts/12345"
},
"language": {
"type": "string",
"description": "Language code for the author profile (e.g., en, es, fr)",
"example": "en"
},
"translatedFromId": {
"type": "string",
"description": "ID of the original author this was translated from",
"example": "500123"
},
"created": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp when the author was created",
"example": "2025-03-15T14:30:00Z"
},
"updated": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp when the author was last updated",
"example": "2025-03-15T14:30:00Z"
},
"deletedAt": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp when the author was archived",
"example": "2025-03-15T14:30:00Z"
}
},
"required": [
"id",
"name",
"created",
"updated"
]
},
"description": "Successfully processed authors",
"example": [
{
"id": "500123",
"name": "Example Record",
"slug": "example-value",
"email": "[email protected]",
"bio": "example-value",
"website": "https://app.hubspot.com/contacts/12345",
"twitter": "example-value",
"facebook": "example-value",
"linkedin": "https://app.hubspot.com/contacts/12345",
"avatar": "https://app.hubspot.com/contacts/12345",
"language": "en",
"translatedFromId": "500123",
"created": "2025-03-15T14:30:00Z",
"updated": "2025-03-15T14:30:00Z",
"deletedAt": "2025-03-15T14:30:00Z"
}
]
},
"requestedAt": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp when the batch was requested",
"example": "2025-03-15T14:30:00Z"
},
"startedAt": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp when processing started",
"example": "2025-03-15T14:30:00Z"
},
"completedAt": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp when processing completed",
"example": "2025-03-15T14:30:00Z"
},
"links": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Related links for the batch operation",
"example": {
"key": "value"
}
}
},
"required": [
"status",
"results",
"startedAt",
"completedAt"
]
},
{
"type": "object",
"properties": {
"numErrors": {
"type": "integer",
"description": "Number of errors encountered during processing"
},
"errors": {
"type": "array",
"items": {
"type": "object",
"description": "Standard error in batch operations",
"properties": {
"status": {
"type": "string",
"description": "Error status code",
"example": "active"
},
"id": {
"type": "string",
"description": "ID of the failed item",
"example": "500123"
},
"category": {
"type": "string",
"description": "Error category",
"example": "standard"
},
"message": {
"type": "string",
"description": "Human-readable error message",
"example": "This is an example description."
},
"errors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ErrorDetail"
},
"description": "List of detailed errors",
"example": [
{
"message": "This is an example description.",
"code": "example-value",
"subCategory": "standard",
"in": "example-value",
"context": {
"key": "value"
}
}
]
},
"context": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "Additional error context",
"example": {
"key": "value"
}
},
"links": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Related links for error resolution",
"example": {
"key": "value"
}
}
},
"required": [
"status",
"category",
"message"
]
},
"description": "List of errors encountered"
}
}
}
]
}