Returns the preview image of a project of your organization.
Required role: ORG_VIEWER, and the current user must have the VIEW permission on the project.
Format (Accept header)
Accept header)Accept | Response |
|---|---|
image/png, image/*, */* or none | The PNG image (Content-Type: image/png) |
text/plain | A Base64 data URI (data:image/png;base64,...), ready for an <img src> |
When both are accepted, the one with the higher quality (q) wins, and PNG on a tie. An Accept that allows neither returns 406.
Caching
The response has an ETag (one per format) and Cache-Control: private, no-cache. Send the ETag back in If-None-Match: when the image hasn't changed, the response is 304 without a body.
When it fails
404 (without a body) when the project has no preview image. The preview image is set with previewImage when creating or updating the project. To know whether a project has one without calling this endpoint, check for preview-image entries in the project's links (GET .../projects and GET .../projects/{project}).
Organization
organization must be the organization of the access token, and the project must belong to it; otherwise the request returns 404.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||