Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

/file/get/metadata

The action retrieves file metadata for a given file_id.

Request

FieldDescriptionRequired
file_idUnique identifier for a fileYes

Example:

{
  "file_id": 401
}
curl -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer ACCESS_TOKEN' \
     -d '{"file_id":401}' \
     https://ppw.web/svc/file/get/metadata

Response

FieldDescriptionType
file_idUnique identifier for the filenumber
metadataPhoto Exif Dataarray

Example successful response:

{
    "file_id": 14339,
    "metadata": {
        "UploadBy": "John R Doe",
        "UploadTimestamp": "11/4/24 12:43 PM",
        "FileName": "unflagged_001.jpg",
        "DateTimeOriginal": "2024:04:24 11:18:00",
        "GPSLatitude": "41.11704",
        "GPSLongitude": "-83.188661972222",
        "Make": "Google",
        "Model": "Pixel 5"
    }
}

Errors

Error TypeDescriptionStatus Code
file_id_invalidfile_id in request is invalid422
not_foundFile not found404