POST
Frame image
/v1/branding/image/frameScope prep_manage
Save the part of an image that should show in a round headshot or a square logo.
The edit dialogs let people zoom and drag an image into its icon. The browser can show any image but cannot read the pixels of one from another site, so the crop happens here: the browser sends the visible square, and this stores that square as a new image under the organisation's branding prefix, like any upload. A pasted link is fetched once through the SSRF-guarded client (public addresses only), after which the picture is ours to serve, not a hotlink someone else can break.
Request body (JSON)
sourcestringRequiredxnumberRequiredynumberRequiredwidthnumberRequiredheightnumberRequiredshapeone of circular, roundedResponses
200Successful Response
422The request did not validate.
401The key is missing, unknown, revoked or expired.
403The key lacks the scope this call needs, or the organisation is not on Enterprise.
429Over the request rate. Wait for Retry-After seconds.