Skip to content

Zoho: Email drafts schemas

13 Zoho schemas with complete fields and constraints.

← Email drafts operations · All schemas

Create Email Drafts for a Record — response body — __email_drafts / __email_drafts / item / code: SUCCESS, status: success

FieldTypePresenceDescription and constraints
$objectRootPer-item success result.
Additional keys: not allowed
codestringRequired within parentOperation result code.
Known values: SUCCESS
detailsobjectRequired within parentDetails for successful draft operation.
Additional keys: not allowed
details.idstringRequired within parentUpdated or created draft identifier.
Maximum length: 64
messagestringRequired within parentHuman-readable result message.
Maximum length: 512
statusstringRequired within parentPer-item outcome status.
Known values: success

Create Email Drafts for a Record — response body — __email_drafts / __email_drafts / item / status: error

FieldTypePresenceDescription and constraints
$objectRootPer-item validation or processing error result.
Additional keys: not allowed
codestringRequired within parentOperation error code.

**Possible values:**
- **MANDATORY_NOT_FOUND** - A required field is missing.
- **INVALID_DATA** - The field contains invalid data.
- **NOT_ALLOWED** - The field is not allowed in this operation.
- **DUPLICATE_DATA** - A duplicate value was found (e.g. a duplicate attachment).
- **EXPECTED_FIELD_MISSING** - At least one of a set of expected fields must be specified.
- **AMBIGUITY_DURING_PROCESSING** - The given field values are ambiguous or conflicting.
- **NOT_SUPPORTED** - The given field or value is not supported for this module.
- **DEPENDENT_MISMATCH** - A field value does not match its dependent field.

Known values: MANDATORY_NOT_FOUND, INVALID_DATA, NOT_ALLOWED, DUPLICATE_DATA, EXPECTED_FIELD_MISSING, AMBIGUITY_DURING_PROCESSING, NOT_SUPPORTED, DEPENDENT_MISMATCH
Maximum length: 128
detailsobjectRequired within parentDetails for failed draft operation.
Additional keys: allowed
details.api_namestringOptionalField or API name that caused the error.
Maximum length: 128
details.json_pathstringOptionalJSON path for the invalid or missing field.
Maximum length: 256
messagestringRequired within parentHuman-readable error message.
Maximum length: 512
statusstringRequired within parentPer-item outcome status.
Known values: error

Create Email Drafts for a Record — response body — email drafts

FieldTypePresenceDescription and constraints
$objectRootResponse containing per-draft status for mixed batch processing results.
Additional keys: not allowed
__email_draftsarrayRequired within parentPer-draft status results for the submitted batch.
Maximum items: 100
__email_drafts[]JSONEach item
__email_drafts[] (anyOf 1)ModelAlternativeExpand Create Email Drafts for a Record — response body — __email_drafts / __email_drafts / item / code: SUCCESS, status: success
__email_drafts[] (anyOf 2)ModelAlternativeExpand Create Email Drafts for a Record — response body — __email_drafts / __email_drafts / item / status: error

Referenced models: Create Email Drafts for a Record — response body — __email_drafts / __email_drafts / item / code: SUCCESS, status: success, Create Email Drafts for a Record — response body — __email_drafts / __email_drafts / item / status: error

List Email Drafts for a Record — response body — __email_drafts, info / __email_drafts / item / inventory_details / paper_type: A4, US Letter, view type: portrait, landscape — shared_inventory-details_496ad47505d2

FieldTypePresenceDescription and constraints
$objectRootInventory email details; null if not an inventory draft.
Additional keys: not allowed
inventory_templateobjectRequired within parentInventory template details.
Additional keys: not allowed
inventory_template.idstringRequired within parentInventory template identifier.
Maximum length: 64
inventory_template.namestringRequired within parentInventory template name.
Maximum length: 256
paper_typestringRequired within parentPaper type for rendered inventory.
Known values: A4, USLetter
recordobjectOptionalCRM record associated with this inventory draft.
Additional keys: not allowed
record.idstringRequired within parentCRM record identifier.
Maximum length: 64
record.namestringRequired within parentCRM record display name.
Maximum length: 256
view_typestringRequired within parentLayout/view type for the inventory.
Known values: portrait, landscape

List Email Drafts for a Record — response body — __email_drafts, info / __email_drafts / item / inventory_details / paper_type: A4, US Letter, view type: portrait, landscape — shared_inventory-details_d1fe827e5270

FieldTypePresenceDescription and constraints
$nullRootInventory email details; null if not an inventory draft.
Additional keys: not allowed
inventory_templateobjectRequired within parentInventory template details.
Additional keys: not allowed
inventory_template.idstringRequired within parentInventory template identifier.
Maximum length: 64
inventory_template.namestringRequired within parentInventory template name.
Maximum length: 256
paper_typestringRequired within parentPaper type for rendered inventory.
Known values: A4, USLetter
recordobjectOptionalCRM record associated with this inventory draft.
Additional keys: not allowed
record.idstringRequired within parentCRM record identifier.
Maximum length: 64
record.namestringRequired within parentCRM record display name.
Maximum length: 256
view_typestringRequired within parentLayout/view type for the inventory.
Known values: portrait, landscape

List Email Drafts for a Record — response body — email drafts, info email drafts item attachments Attachments included with the draft; null if none item

FieldTypePresenceDescription and constraints
$objectRootAttachment metadata.
Additional keys: not allowed
file_namestringRequired within parentOriginal file name.
Maximum length: 512
file_sizestringRequired within parentFile size in bytes as a numeric string.
Maximum length: 20
idstringRequired within parentEncrypted attachment/file identifier.
Maximum length: 256
service_namestringRequired within parentStorage service name.
Maximum length: 100

List Email Drafts for a Record — response body — email drafts, info email drafts item linked record id, module — shared_linked-record_70e659738c7a

FieldTypePresenceDescription and constraints
$nullRootCRM record linked to this draft; null if not linked.
Additional keys: not allowed
idstringRequired within parentLinked CRM record identifier.
Maximum length: 64
moduleobjectRequired within parentModule of the linked record.
Additional keys: not allowed
module.api_namestringRequired within parentModule API name.
Maximum length: 100
module.idstringOptionalModule tab identifier.
Maximum length: 64

List Email Drafts for a Record — response body — email drafts, info email drafts item linked record id, module — shared_linked-record_dfa5af433a40

FieldTypePresenceDescription and constraints
$objectRootCRM record linked to this draft; null if not linked.
Additional keys: not allowed
idstringRequired within parentLinked CRM record identifier.
Maximum length: 64
moduleobjectRequired within parentModule of the linked record.
Additional keys: not allowed
module.api_namestringRequired within parentModule API name.
Maximum length: 100
module.idstringOptionalModule tab identifier.
Maximum length: 64

Update an Email Draft — request body — body email drafts item attachments item

FieldTypePresenceDescription and constraints
$objectRootAttachment reference.
Additional keys: not allowed
_deletebooleanOptionaltrue to remove this attachment.
file_namestringOptionalFile name.
Maximum length: 512
file_sizestringOptionalFile size in bytes as a numeric string.
Maximum length: 20
idstringRequired within parentAttachment/file identifier. Use the [Files API](files.yaml#$.paths./files.get) to retrieve file IDs.

Maximum length: 256
service_namestringRequired within parentStorage service name.
Maximum length: 100

Update an Email Draft — request body — body email drafts item inventory details

FieldTypePresenceDescription and constraints
$object or nullRootInventory email details; null to remove.
Additional keys: not allowed
inventory_templateobjectRequired within parentInventory template to use.
Additional keys: not allowed
inventory_template.idstringRequired within parentInventory template identifier.
Maximum length: 64
paper_typestringRequired within parentPaper type.
One of: A4, USLetter
view_typestringRequired within parentView type.
One of: portrait, landscape

Update an Email Draft — request body — body email drafts item linked record

FieldTypePresenceDescription and constraints
$object or nullRootCRM record to link this draft to; null to clear.
Additional keys: not allowed
idstringRequired within parentCRM record identifier to link.
Maximum length: 64
moduleobjectRequired within parentModule to which the record belongs. Specify at least one of "api_name" or "id". If both are specified, they must refer to the same module.
Minimum fields: 1
Additional keys: not allowed
module.api_namestringOptionalAPI name of the module.
Maximum length: 100
module.idstringOptionalTab identifier of the module.
Maximum length: 20

Update an Email Draft — request body — body email drafts item schedule details

FieldTypePresenceDescription and constraints
$object or nullRootScheduling details; null to remove schedule.
Additional keys: not allowed
sourcestringOptionalSource of the schedule decision.
One of: ecOneHourAhead, upTime, ecSchduleBestTime, ecUpComing, ecSchduleTime
timestringRequired within parentScheduled send time (ISO 8601 format).
Format: date-time
timezonestring or nullOptionalJava TimeZone ID string; null uses organization default.
Maximum length: 100

Update an Email Draft — response body — email drafts item

FieldTypePresenceDescription and constraints
$objectRootResult of a single updated email draft.
Additional keys: not allowed
codestringRequired within parentStatus code for the operation.
Known values: SUCCESS
detailsobjectRequired within parentDetails of the updated draft.
Additional keys: not allowed
details.idstringRequired within parentEncrypted identifier of the updated draft.
Maximum length: 256
messagestringRequired within parentOperation message.
Maximum length: 512
statusstringRequired within parentStatus of the operation.
Known values: success

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.