Preview write entity
preview_write_entityPreview entity create/update/delete; return approval token.
Ticket↔order links: preview_entity_action. Unlisted fields dropped; derived totals read-only. Dates: YYYY-MM-DD → Europe/Berlin midnight. Do not calculate epoch values. Keep previously read epoch values for unchanged fields; respect explicit datetime offsets.
Guarded routes:
Sales-order address route: address-only UPDATE binds execution_payload/revision_guard (pass unchanged); safe default does not reconfirm. reconfirm=true has AB-resend risk, can fire a confirmation-email and needs automated-email consent (allow_automated_confirmation_email).
Sales-order status confirmation: UPDATE to ORDER_CONFIRMATION_PRINTED needs the same consent + an emailing-rule snapshot; drift blocks.
party UPDATE with partyEmailAddresses[] → full-set execution_payload + party_email_plan.
Item-array UPDATE (sales/purchase documents, productionOrder, contract, article BOM): id=update, no id=add; omitted positions kept unless allow_item_removal=true; header changes separately.
Status only via {version, status} for a listed transition.
payload.items batch: task creates (≤10); article updates (≤25, id each).
Payload routes: customAttributes/items only; others via get_schema(entity, detail="payload_guide").
Args: entity: article|contract|lead|opportunity|party|crmEvent|campaign|campaignParticipant|quotation| salesOrder|salesInvoice|purchaseInvoice|purchaseOrder|productionOrder|ticket|task|timeRecord| performanceRecord|mailTemplate; routes: shipment|sop. payload: OpenAPI fields, aliases folded; updates include version (article: omit, server-read). resolve_quotation_recipient_email: OPEN quotation: re-resolve To; fails closed. duplicate_decision: party CREATE duplicate blocks; "create_new" + duplicate_candidate_ids overrides. sop_snapshot_hash: sop_directive.snapshot_hash after applying house rules.
Schema: get_schema(entity, detail="payload_guide"); never guess. Returns approval.token + execution, or tokenless diagnostics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delete | No | ||
| entity | Yes | ||
| payload | Yes | ||
| entity_id | No | ||
| reconfirm | No | ||
| correlation_id | No | ||
| sop_snapshot_hash | No | ||
| allow_item_removal | No | ||
| duplicate_decision | No | ||
| duplicate_candidate_ids | No | ||
| resolve_quotation_recipient_email | No | ||
| allow_automated_confirmation_email | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||