{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-structure/engagement-calls-api-batch-calls-response-structure.json", "name": "BatchCallsResponse", "description": "Response for batch call operations", "type": "object", "properties": { "status": { "type": "string", "enum": [ "PENDING", "PROCESSING", "CANCELED", "COMPLETE" ], "description": "The status of the batch operation", "example": "COMPLETE" }, "results": { "type": "array", "description": "The results of the batch operation", "items": { "type": "object", "description": "Represents a call engagement in the CRM", "required": [ "id", "properties", "createdAt", "updatedAt", "archived" ], "properties": { "id": { "type": "string", "description": "The unique identifier for the call", "example": "512" }, "properties": { "type": "object", "description": "The call properties", "additionalProperties": { "type": "string" }, "example": { "hs_call_title": "Discovery Call", "hs_call_body": "Discussed product requirements", "hs_call_duration": "1800000", "hs_call_direction": "OUTBOUND", "hs_call_disposition": "connected", "hs_call_status": "COMPLETED", "hs_timestamp": "2024-01-15T10:30:00.000Z" } }, "propertiesWithHistory": { "type": "object", "description": "Properties with their change history", "additionalProperties": { "type": "array", "items": { "$ref": "#/components/schemas/PropertyHistory" } }, "example": { "key": "value" } }, "createdAt": { "type": "datetime", "description": "When the call was created", "example": "2024-01-15T10:30:00.000Z" }, "updatedAt": { "type": "datetime", "description": "When the call was last updated", "example": "2024-01-15T11:00:00.000Z" }, "archived": { "type": "boolean", "description": "Whether the call is archived", "example": false }, "archivedAt": { "type": "datetime", "description": "When the call was archived (if archived)", "example": "2025-03-15T14:30:00Z" } } }, "example": [ { "id": "512", "properties": { "hs_call_title": "Discovery Call", "hs_call_body": "Discussed product requirements", "hs_call_duration": "1800000", "hs_call_direction": "OUTBOUND", "hs_call_disposition": "connected", "hs_call_status": "COMPLETED", "hs_timestamp": "2024-01-15T10:30:00.000Z" }, "propertiesWithHistory": { "key": "value" }, "createdAt": "2024-01-15T10:30:00.000Z", "updatedAt": "2024-01-15T11:00:00.000Z", "archived": false, "archivedAt": "2025-03-15T14:30:00Z" } ] }, "requestedAt": { "type": "datetime", "description": "When the batch was requested", "example": "2025-03-15T14:30:00Z" }, "startedAt": { "type": "datetime", "description": "When the batch processing started", "example": "2024-01-15T10:30:00.000Z" }, "completedAt": { "type": "datetime", "description": "When the batch processing completed", "example": "2024-01-15T10:30:05.000Z" }, "errors": { "type": "array", "description": "Any errors that occurred during batch processing", "items": { "type": "object", "description": "Error information for a batch operation item", "properties": { "status": { "type": "string", "description": "The error status", "example": "error" }, "category": { "type": "string", "description": "The error category", "example": "VALIDATION_ERROR" }, "message": { "type": "string", "description": "The error message", "example": "Property value is invalid" }, "context": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "example": { "key": "value" } }, "errors": { "type": "array", "items": { "$ref": "#/components/schemas/ErrorDetail" }, "example": [ { "message": "This is an example description.", "code": "example-value", "in": "example-value", "subCategory": "standard", "context": { "key": "value" } } ] } } }, "example": [ { "status": "error", "category": "VALIDATION_ERROR", "message": "Property value is invalid", "context": { "key": "value" }, "errors": [ {} ] } ] }, "links": { "type": "object", "additionalProperties": { "type": "string" }, "example": { "key": "value" } } }, "required": [ "status", "results", "startedAt", "completedAt" ] }