Get media
Description
Retrieve a single media object by UUID
Url
|
1 |
GET /api/v0/media/UUID/ |
Parameters optional
- uuid: media's unique identifier
Example
Get the media identified by UUID 2636fa4e3bba49ed9900880bd6b70a64
Request
|
1 |
curl 'https://my.craftar.net/api/v0/media/2636fa4e3bba49ed9900880bd6b70a64/?api_key=123456789abcdefghijk123456789abcdefghijk' |
Response
HTTP Status code: 200 OK
|
1 2 3 4 5 6 7 |
{ "uuid": "2636fa4e3bba49ed9900880bd6b70a64", "resource_uri": "/api/v0/media/2636fa4e3bba49ed9900880bd6b70a64/", "name": "catchoom_1.6.jpe", "mimetype": "image/jpeg", "file": "https://example.com/media/2636fa4e3bba49ed9900880bd6b70a64/catchoom_1.6.jpe" } |
Errors
Media not found
HTTP Status code: 404 Not Found