---
title: "Update a site"
method: PATCH
path: "/{org_slug}/sites/{id}"
tags: ["Sites"]
---

# Update a site

`PATCH /{org_slug}/sites/{id}`

## Request

- Base URL: `https://api.obelinf.com`
- URL: `https://api.obelinf.com/{org_slug}/sites/{id}`
- Auth: HTTP bearer

Update a site

## Path parameters

- `org_slug` string, required
- `id` string, required

## Request body

- object
  - `contact_email` string, nullable
  - `contact_name` string, nullable
  - `contact_phone` string, nullable
  - `description` string, nullable
  - `facility` string, nullable
  - `latitude` number, nullable
  - `longitude` number, nullable
  - `name` string
  - `physical_address` string, nullable
  - `shipping_address` string, nullable
  - `site_group_id` string
  - `slug` string
  - `status` 'active' | 'decommissioned' | 'inactive' | 'planned'
  - `time_zone` string, nullable

## Response `200`

Site updated

- object
  - `site` object, required
    - `created_at` string, required
    - `id` string, required
    - `name` string, required
    - `slug` string, required
    - `status` string, required
    - `updated_at` string, required
    - `contact_email` string, nullable
    - `contact_name` string, nullable
    - `contact_phone` string, nullable
    - `description` string, nullable
    - `facility` string, nullable
    - `latitude` string, nullable
    - `longitude` string, nullable
    - `physical_address` string, nullable
    - `shipping_address` string, nullable
    - `site_group_id` string, nullable
    - `site_group_name` string, nullable
    - `time_zone` string, nullable

## Other responses

- `400`: Validation error
- `404`: Not found
- `409`: Slug conflict

---

[API](https://skmtc.dev/obelinf/apis/obelinf-api.md) · [All operations](https://skmtc.dev/obelinf/apis/obelinf-api/llms.txt) · [OpenAPI document](https://skmtc.dev/obelinf/apis/obelinf-api/revisions/463fcf791828?raw)
