Skip to main content
Grimm OffRoad

User Media

Create, edit, delete and list a user's media library items.

POST /user/media/uploads

Uploads a file to the logged in user's media library.

You must send the file as the body of the request, and a header of `Content-Type: 'application/octet-stream'` for the request to be served correctly.

GET /user/media/current

Get a list of the logged in user's media items.

GET /user/media/{type}/{itemId}

Gets a user media item and its readiness based on the media type and item id.

DELETE /user/media/{type}/{itemId}

Delete a user's media item based on the media type and item id.

POST /user/media/images/edits

Edit an image by cropping or adding markup. The body of the request should contain the imageid of the image to edit, the crop information, and the markup information.

GET /user/media/constraints

Get media constraints for site. It can be filtered by media item name.