I'm trying to use the REST API (via Postman, for now) to update fields on an Email, and strangely, the changes aren't taking. I'm using the API Key method rather than HMAC.
For instance, I can make a GET request to /api/v1/Email/aaaBBBccc successfully and receive all details about an email that was sent to a shared mailbox. Let's say the response looks something like this:
If I make a PUT request, however, I get a 200 response, but the data in the email object doesn't change. The content type is application/json, the API key is set on X-Api-Key, and the body is:
Despite the 200 response, calls to GET the email (or looking in the UI) show no changes to those fields. This API user's role has permission to the Email scope, with yes/all/all/all to Create/Read/Edit/Delete. External Account scope is also enabled, as is the Personal Emails Account scope.
At the Field level, this user's role has permission to read and edit both the "Body (Plain)" and "Name (Subject)" fields.
I must be missing something obvious, but why isn't a PUT request having any effect?
For instance, I can make a GET request to /api/v1/Email/aaaBBBccc successfully and receive all details about an email that was sent to a shared mailbox. Let's say the response looks something like this:
Code:
{ "id": "aaaBBBccc , "name": "email test", "deleted": false, "subject": "email test", "fromName": "MAveryWeir", "fromAddress": "MAveryWeir@example.com", "bodyPlain": "Lorem ipsum", ... }
Code:
{ "bodyPlain": "help", "name": "api test" }
At the Field level, this user's role has permission to read and edit both the "Body (Plain)" and "Name (Subject)" fields.
I must be missing something obvious, but why isn't a PUT request having any effect?
Comment