Upload a profile photo for an order
Stores a PNG, JPEG, WebP or GIF (at most 4 MB) and returns its address, to send as profilePictureUrl with a mailbox when ordering it. Google sets it as the mailbox's photo once the mailbox is set up.
apiKeyAuthorizationBearer <token>An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.
application/json- body
dataUrl*stringA data: URL, such as FileReader.readAsDataURL() produces in a browser. The declared mime type in it is ignored - the real type is read from the file’s own bytes
Success
application/json- response
Success
url*stringSend as profilePictureUrl
uricurl -X POST "https://example.com/v1/mailbox-pictures" \ -H "Content-Type: application/json" \ -d '{ "dataUrl": "string" }'{ "url": "http://example.com"}Update a mailbox PATCH
Changes the name, username (and so the address), profile picture or password of a set-up mailbox.
Upload a mailbox profile photo POST
Sets the Google profile photo of a set-up mailbox from an uploaded PNG, JPEG, WebP or GIF (at most 4 MB): the photo people see beside its mail. To use an image already online, send its address as `profilePictureUrl` to `PATCH /mailboxes/:id`.