Read Person Portrait With Default

This example request illustrates how to read the portrait for a Tree person with a default image URI. If no portrait is supplied, the default image will be used.

JSON

Request

GET /platform/tree/persons/PPPP-PPP/portrait?default=https://domain/path/to/default
Accept: application/x-fs-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE

Response

HTTP/1.1 307 Temporary Redirect
Content-type: application/x-fs-v1+json
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/tree/persons/PPPP-PPP/portrait
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Location: https://domain/path/to/default
Transfer-encoding: chunked

XML

Request

GET /platform/tree/persons/PPPP-PPP/portrait?default=https://domain/path/to/default
Accept: application/x-fs-v1+xml
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE

Response

HTTP/1.1 307 Temporary Redirect
Content-type: application/x-fs-v1+xml
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/tree/persons/PPPP-PPP/portrait
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, must-revalidate, max-age=0
Location: https://domain/path/to/default
Transfer-encoding: chunked