UpdateDocument
Type: schema
TypeScript Definition
typescript
UpdateDocument: {{
document_number?: string;
note?: string;
/**
* Format: binary
* @description Optional replacement attachment. Omit to keep the current attachment. A supplied file must contain at least one byte.
*/
file?: string;
modified_reason: string;
document_type_id?: string;
};
/** @description Updates only the supplied fields. Only a primary user can change `business` or `customer_group_id`. */
}OpenAPI Schema
json
{
"title": "UpdateDocument",
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/UpdateDocument",
"description": "API reference for the UpdateDocument schema"
},
"required": [
"modified_reason"
],
"properties": {
"document_number": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "\\S"
},
"note": {
"type": "string",
"maxLength": 512,
"minLength": 1,
"pattern": "\\S"
},
"file": {
"description": "Optional replacement attachment. Omit to keep the current attachment. A supplied file must contain at least one byte.",
"type": "string",
"format": "binary",
"minLength": 1
},
"modified_reason": {
"type": "string",
"minLength": 1,
"pattern": "\\S"
},
"document_type_id": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"pattern": "\\S"
}
},
"x-tags": [
"KYC"
]
}Auto-generated from OpenAPI spec and TypeScript definitions