Downloads a preview stream of a principal attachment

GET /domains/{domainId}/principals/{principalId}/preview/{name}

Parameters

Name Required Type Description
domainId true string
principalId true string
name true string
mimetype false string The mimetype to be streamed back (defaults to 'image/png')
size false number For image mimetypes, the max width of the generated image (defaults to 64)
attachment false string The ID of the attachment that serves as the source for the preview (default to 'default')
force false boolean Forces the re-generation of the preview stream, even if previously saved
save false boolean Specifies whether to save the generated preview stream as an attachment (defaults to true)
fallback false boolean A fallback URL that should be redirected to in the event that a preview stream cannot be generated

Response