Update Media

View as Markdown
**Update Media Fields** **Validation Rules:** - `media_type` (optional): Must be one of: photo, video, audio, document, drawing, signature, before_photo, after_photo, progress_photo, damage_photo, part_photo, measurement, inspection, safety, compliance, other - `capture_context` (optional): Must be one of: arrival, before_work, during_work, after_work, departure, problem, solution, customer_demo, inspection, safety_check, compliance, training, other - `capture_type` (optional): Must be one of: camera, gallery, scan, draw, upload - `description` (optional): String, max 500 characters - `title` (optional): String, max 255 characters - `tags` (optional): Array, max 10 tags, each tag max 50 characters - `latitude` (optional): Numeric, between -90 and 90 - `longitude` (optional): Numeric, between -180 and 180 - `location_id` (optional): Valid UUID, must exist in customer_locations - `captured_at` (optional): Valid date format - `customer_visible` (optional): Boolean - `metadata` (optional): Valid JSON object

Headers

{{tenant_key_name}}stringOptional

Request

This endpoint expects a multipart form containing a file.
filefileRequired
media_typestringRequired

Response

Successful response