SAP Knowledge Base Article - Public

3838017 - PATCH to Email Service returns HTTP 200 but does not persist attachments or field updates - SAP Service Cloud Version 2

Symptom

  • When attempting to link a document to an email interaction using the document-service PATCH flow from - KBA 3497506 - How to Create Attachments Via Document Service API - the request returns HTTP 200 but the attachment is not saved
  • A subsequent GET on the email interaction shows the pre-PATCH state with no changes persisted
  • Attempting to update other fields such as subject or htmlContent via PATCH on the email interaction also returns HTTP 200 but no changes are persisted

Environment

SAP Service Cloud Version 2

Reproducing the Issue

  1. Follow the document-service PATCH flow from KBA 3497506 - How to Create Attachments Via Document Service API  using the email-service endpoint
  2. POST to /sap/c4c/api/v1/document-service/documents to create a document record
  3. Upload the binary file to the returned upload URL
  4. Confirm the document status is ACTIVE and hostObjectType is user
  5. GET /sap/c4c/api/v1/email-service/emails/{emailId} and copy the ETag from the response header
  6. PATCH /sap/c4c/api/v1/email-service/emails/{emailId} with body {"attachments": [{"documentId": "{id}"}]}
  7. Response is HTTP 200, but a subsequent GET shows no changes — attachments remains empty and hostObjectType on the document remains user

Cause

Email interaction content is immutable after creation in SAP Service Cloud Version 2. Once an email interaction is created — whether via an inbound channel or the API — its content fields cannot be modified. This is the intended system behavior.

Resolution

The following fields can be updated via PATCH on an email interaction after creation:

  • Involved parties: contacts, accounts, employees, individualCustomers, organizations
  • relatedObjects
  • Extension fields

Content fields — including attachments, subject, htmlContent, plainContent, toRecipients, ccRecipients, bccRecipients, and from — are read-only after creation and cannot be modified via PATCH.

The document-service attachment flow described in - KBA 3497506 - How to Create Attachments Via Document Service API - applies to the Case Service (/sap/c4c/api/v1/case-service/cases/{id}). It is not supported for email interactions. To attach a document to a case that contains an email, use the case-service PATCH endpoint instead.

See Also

  • KBA 3497506 - How to Create Attachments Via Document Service API
  • KBA 3417171 - APIs in SAP Sales Cloud and SAP Service Cloud Version 2

Keywords

email service, patch, http 200, attachments not saved, adminData.updatedOn, adminData.updatedBy, interaction email, document service, not supported, etag, x-sap-crm-token, email api, persistence issue, related objects, extension fields , KBA , CEC-CRM-EML , Emails for SAP Sales/Service Cloud , Known Error

Product

SAP Service Cloud Version 2 all versions