Skip to content
Richard Thombs edited this page Apr 6, 2017 · 10 revisions

The Pictures API allows Pictures stored in TeamHaven to be retrieved and modified.

Get a Picture

GET /api/pictures/:guid[?size=N]

This retrieves the raw bytes that make up the Picture. This can be used directly in an HTML image tag if required.

The size parameter resizes the image so it's longest edge is no larger than N.

Rotate a Picture

POST /api/pictures/:guid/rotate

This rotates the Picture 90 degrees clockwise.

Note: can not be used on Picture Attributes

Censor a Picture

POST /api/pictures/:guid/censor

This marks a Picture as censored.

Note: can not be used on Picture Attributes

Clone this wiki locally