function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VPVP 

Allowed attachment content type values in API calls

What are the allowed/expected values for the content type field when creating an attachment using the API? Are they like "PDF", "TXT", etc, or is it more like "FILE", "NOTE", etc.
DevAngelDevAngel
The attachment type is inconsequential for the api. This is because the API expects the body of the attachment to be a Base64 string. This is embedded as part of the soap message and not as a SOAP attachment.
SuperfellSuperfell
The content type should be set to the mime type of the attachment (e.g. text/plain, image/jpeg, etc)