Skip to main content
PATCH
/
organizations
/
{id}
Update organization
curl --request PATCH \
  --url https://api.helloannie.com/v1/organizations/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Updated Dental Clinic",
  "externalId": "location_001_updated",
  "phone": "+1-555-123-4567",
  "timezone": "America/Los_Angeles",
  "address": {
    "addressLine1": "123 Main Street",
    "addressLine2": "Suite 200",
    "city": "Springfield",
    "state": "IL",
    "country": "US",
    "zip": "62701",
    "directions": "Enter through the back entrance"
  },
  "officeHours": [
    {
      "dayOfWeek": "MONDAY",
      "open": "09:00",
      "close": "17:00",
      "notes": "Lunch break 12:00-13:00"
    }
  ],
  "staff": [
    {
      "name": "Dr. Jane Smith",
      "role": "DOCTOR",
      "bio": "Dr. Smith has over 15 years of experience in general dentistry",
      "isActive": true
    }
  ]
}
'
{
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Downtown Dental Clinic",
    "externalId": "location_001",
    "phone": "+1-555-123-4567",
    "timezone": "America/New_York",
    "address": {
      "addressLine1": "123 Main Street",
      "addressLine2": "Suite 200",
      "city": "Springfield",
      "state": "IL",
      "country": "US",
      "zip": "62701",
      "directions": "Enter through the back entrance"
    },
    "officeHours": [
      {
        "dayOfWeek": "MONDAY",
        "open": "09:00",
        "close": "17:00",
        "notes": "Lunch break 12:00-13:00"
      }
    ],
    "staff": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440001",
        "name": "Dr. Jane Smith",
        "role": "DOCTOR",
        "bio": "Dr. Smith has over 15 years of experience in general dentistry",
        "isActive": true
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Path Parameters

id
string<uuid>
required

Body

application/json
name
string

Display name of the office/location

Required string length: 1 - 255
Example:

"Updated Dental Clinic"

externalId
string | null

Optional external identifier for PMS integration

Maximum string length: 255
Example:

"location_001_updated"

phone
string | null

Primary office phone number

Maximum string length: 50
Example:

"+1-555-123-4567"

timezone
string | null

Location timezone for appointment scheduling

Maximum string length: 100
Example:

"America/Los_Angeles"

address
object
officeHours
object[]

Office hours for each day of the week

staff
object[]

Staff/team members at this location

Response

200 - application/json

OK

data
object