Get the preview image of a project

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)

AcceptResponse
image/png, image/*, */* or noneThe PNG image (Content-Type: image/png)
text/plainA 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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

Id of your organization (must match the access token)

uuid
required

Id of the project

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
image/png
text/plain
*/*
application/json