/file/get/metadata
The action retrieves file metadata for a given file_id.
Request
| Field | Description | Required |
|---|---|---|
file_id | Unique identifier for a file | Yes |
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
| Field | Description | Type |
|---|---|---|
file_id | Unique identifier for the file | number |
metadata | Photo Exif Data | array |
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 Type | Description | Status Code |
|---|---|---|
file_id_invalid | file_id in request is invalid | 422 |
not_found | File not found | 404 |