Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint updates an existing contact for a specific distillery. You only need to include the fields you want to update in the request body.

API Endpoint

  • Method: PUT
  • Path: /odis/v1/distilleries/:id/contacts/:contact_id

Request Body

Include only the fields you want to update. For example, to update just the role:
{
  "distillery_contact": {
    "role": "PR"
  }
}
Or to update multiple fields:
{
  "distillery_contact": {
    "first_name": "Jane",
    "last_name": "Smith",
    "email": "jane@example.com",
    "phone": "+1-555-2000",
    "role": "Sales"
  }
}

Available Fields

  • first_name
  • last_name
  • email
  • phone
  • role

Response

200 OK

{ "message": "Contact updated successfully" }

Error Responses

  • 401 Unauthorized
    { "message": "Missing Token" }
    
  • 403 Forbidden
    { "message": "Insufficient privileges" }
    
  • 404 Not Found
    { "success": false, "error": "The requested resource was not found." }
    
  • 422 Unprocessable Entity
    { "message": ["Email format is invalid"] }