Media

edit media

PUT https://ushahididocs.api.ushahidi.io/api/v3/media/1

Request Body

NameTypeDescription

user_id

String

The user identifier

o_size

String

File Size

o_filename

String

File name

mime

String

Media import location e.g. "image/jpeg"

caption

String

The media caption

original_width

String

Width dimension

original_file_size

String

The media file size

original_file_url

String

The media file URL

original_height

String

Height dimension

{
    "id": 1,
    "url": "http://localhost:8000/api/v3/media/1",
    "user": {
        "id": 1,
        "url": "http://localhost:8000/api/v3/users/1"
    },
    "caption": "ihub",
    "created": "2013-10-15T05:43:41+00:00",
    "updated": "2013-10-15T05:43:39+00:00",
    "mime": "image/jpeg",
    "original_file_url": "http://localhost:8000/storage/9ze_1381815819_o.jpg",
    "original_file_size": 1024,
    "original_width": 400,
    "original_height": 500,
    "allowed_privileges": [
        "read",
        "create",
        "update",
        "delete",
        "search"
    ]
}