Skip to main content
PUT
Update Horse

Authentication

Required - JWT Bearer token with seller or admin role

Authorization

  • Sellers can only update their own listings
  • Admins can update any listing

Path Parameters

string
required
Horse unique identifier (MongoDB ObjectId)

Request Body

All fields are optional - only include fields you want to update.
string
Horse name (trimmed)
number
Horse age in years (0-40)
string
Horse breed (trimmed)
string
Primary discipline (trimmed)
string
Pedigree information
object
Horse location information
string
Country
string
Region or state
string
City
object
number
Latitude
number
Longitude
number
Listing price (minimum: 0)
string
Currency code: USD, EUR, ARS, BRL, MXN
array
Array of photos (minimum 3 required if updating)
string
required
Photo URL
string
Photo caption
boolean
Whether this is the cover photo
array
Array of videos
string
required
Video URL
string
required
Type: training, competition, other
string
Video title
string
Video description
string
required
Recording date (ISO 8601)
string
Listing status: active, sold, paused, draft

Response

boolean
Indicates if the request was successful
object
Updated horse listing with all fields
string
Horse unique identifier
string
Seller ID
string
Horse name
number
Horse age
string
Horse breed
string
Primary discipline
string
Pedigree information
object
Location details
number
Listing price
string
Currency code
array
Array of photos
array
Array of videos with auto-generated embed_url
string
Listing status
number
View count
string
Creation timestamp
string
Last update timestamp (updated)

Notes

  • Only provide fields you want to update (partial update)
  • Validators run on update, ensuring data integrity
  • Video embed_url is auto-regenerated for YouTube/Vimeo URLs
  • updated_at timestamp is automatically updated
  • Cannot change seller_id or views_count via this endpoint

Examples

Error Responses

400 - Invalid Horse ID

400 - Validation Error

401 - Unauthorized

403 - Forbidden

404 - Not Found or Unauthorized

500 - Server Error