Photo Object
When a photo.status.changed
is emitted, the payload will contain the following:
Example Object
host: webhook.site
content-length: 349
hopdrive-event: photo_status_changed
user-agent: HopDrive-Webhooks/1.0.0
hopdrive-signature: t=1661284695424, v1=589d916b3a6b27a40c8fed05eaa77f045bb30c4c056f0ae18b3ebd4beb011bbf
content-type: application/json
accept: application/json, text/plain
{
"data": {
"id": "15a103eb-d44b-4e06-ba85-d2d6d7acbde3",
"move_id": 123456,
"name": "rear-interior",
"step_id": "rear-interior",
"url": "image-url",
"status": "done",
"time": "2024-07-20T03:00:48.548211+00:00",
"lat": 38.03299,
"lon": -78.44548
}
"id": "ee887f20-231d-11ed-9c17-d1a5eafd48b0",
"object": "event",
"version": "1.0.0"
}
Photo Object Fields
Field | Description |
---|---|
id | Unique identifier for the photo. |
move_id | Move Id that this photo belongs to. |
name | Name of the photo. |
step_id | Workflow step Id that this photo belongs to. |
url | URL where the photo is stored. Can be null. |
status | Current status of the photo: Pending A photo was taken by our driver and is pending upload Done A photo has been uploaded |
time | Timestamp when the photo was taken. |
lat | Latitude coordinate where the photo was taken. |
lon | Longitude coordinate where the photo was taken. |