Skip to content
API reference / Locations
PATCH /api/v1/locations/{id}

Token needs the update ability. About tokens

Partially updates a Location object (send only the fields to change). Requires the update ability. Send is_active to activate or deactivate the location. Deactivating (is_active: false) is how a store closes: it leaves leaderboards, but its history keeps counting toward network totals and year-over-year benchmarks, so it does not by itself make the location deletable — see Delete Location and deletable_on.

Path parameters

  • id string (uuid) required
    Resource UUID.

Request body application/json

  • name string
  • address string nullable
  • city string nullable
  • region string nullable
  • postal_code string nullable
  • country string nullable
  • timezone string nullable
    IANA zone identifier (e.g. America/Chicago). A value marks the zone as set by hand; null hands the location back to automatic detection.
  • district_id string (uuid) nullable
  • district_id_2 string (uuid) nullable
  • location_category_id string (uuid) nullable
  • is_active boolean
    Activation state. Omit to leave it unchanged (a location created without it stays pending, and never appears on a leaderboard). true activates the location, false takes an active one out of service; both are idempotent, and a deactivated location keeps the timestamp of its first deactivation. false on a location that was never activated leaves it pending rather than marking it deactivated — there is no service to take it out of. Null is rejected — omit the field instead. Tenants that partition leaderboards by location category can only activate a location that has one from the tenant's primary category group, so location_category_id must either already be set or be sent alongside is_active: true.
  • external_id string nullable
    Unique per tenant.
  • datasource_settings object nullable
    Sets POS identifiers; never clears them. A provider sent as null, or with a null or blank value, keeps its stored settings.
    • qu object
      • location_id integer nullable
    • brink object
      • brink_api_key string nullable
        Write-only. Replaces the stored Brink API key; a null or blank value keeps it. Responses report only brink.api_key_set.

Responses

    • data Location
      • id string (uuid)
      • external_id string nullable
      • name string
      • address string nullable
      • city string nullable
      • region string nullable
      • postal_code string nullable
      • country string nullable
      • timezone string nullable
        IANA zone the location's business day runs on. Null until resolved; the tenant timezone applies meanwhile.
      • timezone_source string nullable
        Where the timezone came from. user was chosen by a person and is never overwritten by the nightly resolver; the others were detected automatically.
        user pos google state
      • is_private boolean
      • is_corporate boolean
      • is_active boolean
        True only for an active location; false for both pending and deactivated ones — see activation_status.
      • activation_status string
        pending was never activated; active collects metrics and ranks on leaderboards; deactivated was taken out of service and stays in historical network totals.
        pending active deactivated
      • deactivated_at string (date-time) nullable
        When the location was taken out of service. Null unless activation_status is deactivated.
      • is_deletable boolean
        Whether DELETE will succeed: true for a pending location, a deactivated one that never loaded any sales, labor or custom-metric data, or a deactivated one whose daily history has aged out of reporting retention.
      • deletable_on string (date) nullable
        For a deactivated location still inside retention, the date it becomes deletable (always a Jan 1). Null when it is already deletable, active, or pending.
      • district_id string (uuid) nullable
      • district_id_2 string (uuid) nullable
      • location_category_id string (uuid) nullable
      • created_at string (date-time) nullable
      • updated_at string (date-time) nullable
      • datasource_settings object
        POS identifiers for the location. Credentials are never returned: each one is reported only as {key}_set, true when a value is stored.
        • qu object
          • location_id integer nullable
        • brink object
          • api_key_set boolean
      • district object nullable
        Present only when included.
        • id string (uuid)
        • name string
        • external_id string nullable
        • district_group_id string (uuid) nullable
        • created_at string (date-time) nullable
        • updated_at string (date-time) nullable
        • districtGroup object nullable
          Present only when included.
          • id string (uuid)
          • name string
          • index integer
          • created_at string (date-time) nullable
          • updated_at string (date-time) nullable
      • district2 object nullable
        Present only when included.
        • id string (uuid)
        • name string
        • external_id string nullable
        • district_group_id string (uuid) nullable
        • created_at string (date-time) nullable
        • updated_at string (date-time) nullable
        • districtGroup object nullable
          Present only when included.
          • id string (uuid)
          • name string
          • index integer
          • created_at string (date-time) nullable
          • updated_at string (date-time) nullable
      • locationCategory object nullable
        Present only when included.
        • id string (uuid)
        • name string
        • external_id string nullable
        • location_category_group_id string (uuid) nullable
        • sort_order integer nullable
        • created_at string (date-time) nullable
        • updated_at string (date-time) nullable
        • locationCategoryGroup object nullable
          Present only when included.
          • id string (uuid)
          • name string
          • index integer
          • created_at string (date-time) nullable
          • updated_at string (date-time) nullable
      • locationGroups array of LocationGroup
        Present only when included (and on the Sync Location Groups response).
        • id string (uuid)
        • name string
        • external_id string nullable
        • created_at string (date-time) nullable
        • updated_at string (date-time) nullable
        • locations array of Location
          Present only when included.
          • id string (uuid)
          • external_id string nullable
          • name string
          • address string nullable
          • city string nullable
          • region string nullable
          • postal_code string nullable
          • country string nullable
          • timezone string nullable
            IANA zone the location's business day runs on. Null until resolved; the tenant timezone applies meanwhile.
          • timezone_source string nullable
            Where the timezone came from. user was chosen by a person and is never overwritten by the nightly resolver; the others were detected automatically.
            user pos google state
          • is_private boolean
          • is_corporate boolean
          • is_active boolean
            True only for an active location; false for both pending and deactivated ones — see activation_status.
          • activation_status string
            pending was never activated; active collects metrics and ranks on leaderboards; deactivated was taken out of service and stays in historical network totals.
            pending active deactivated
          • deactivated_at string (date-time) nullable
            When the location was taken out of service. Null unless activation_status is deactivated.
          • is_deletable boolean
            Whether DELETE will succeed: true for a pending location, a deactivated one that never loaded any sales, labor or custom-metric data, or a deactivated one whose daily history has aged out of reporting retention.
          • deletable_on string (date) nullable
            For a deactivated location still inside retention, the date it becomes deletable (always a Jan 1). Null when it is already deletable, active, or pending.
          • district_id string (uuid) nullable
          • district_id_2 string (uuid) nullable
          • location_category_id string (uuid) nullable
          • created_at string (date-time) nullable
          • updated_at string (date-time) nullable
          • datasource_settings object
            POS identifiers for the location. Credentials are never returned: each one is reported only as {key}_set, true when a value is stored.
          • district object nullable
            Present only when included.
          • district2 object nullable
            Present only when included.
          • locationCategory object nullable
            Present only when included.
          • locationGroups array of any
            Present only when included (and on the Sync Location Groups response).
    • message string
    • message string
    • message string
    • message string
    • errors object
curl -X PATCH "https://app.franchisesee.com/api/v1/locations/9d3f6b2e-5a41-4c7e-9a0b-2f1c8e7d4a63" \
  -H "Authorization: Bearer $FRANCHISESEE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Downtown Austin",
    "address": "401 Congress Ave",
    "city": "Austin",
    "region": "TX",
    "postal_code": "78701",
    "country": "US",
    "timezone": "America/Chicago",
    "district_id": "3f2a1b0c-9d8e-4f7a-b6c5-d4e3f2a1b0c9",
    "district_id_2": "c7e9a2d4-1b3f-4e8a-9c6d-5f2e8b1a7d30",
    "location_category_id": "5d8e2f1a-6c4b-4a9e-8f3d-2b7c1e9a4d60",
    "is_active": true,
    "external_id": "STR-1042",
    "datasource_settings": {
        "qu": {
            "location_id": 12345
        },
        "brink": {
            "brink_api_key": "brk_live_8f2c4a1e9d7b"
        }
    }
}'
Response
{
    "data": {
        "id": "9b1c8f3e-7a2d-4c5b-8e1a-2f3d4c5b6a7e",
        "external_id": "STR-1042",
        "name": "Downtown Austin",
        "address": "401 Congress Ave",
        "city": "Austin",
        "region": "TX",
        "postal_code": "78701",
        "country": "US",
        "timezone": "America/Chicago",
        "timezone_source": "pos",
        "is_private": false,
        "is_corporate": false,
        "is_active": true,
        "activation_status": "active",
        "deactivated_at": null,
        "is_deletable": false,
        "deletable_on": null,
        "district_id": "3f2a1b0c-9d8e-4f7a-b6c5-d4e3f2a1b0c9",
        "district_id_2": "c7e9a2d4-1b3f-4e8a-9c6d-5f2e8b1a7d30",
        "location_category_id": "5d8e2f1a-6c4b-4a9e-8f3d-2b7c1e9a4d60",
        "created_at": "2025-03-14T15:22:08.000000Z",
        "updated_at": "2026-10-02T09:41:55.000000Z",
        "datasource_settings": {
            "qu": {
                "location_id": 12345
            },
            "brink": {
                "api_key_set": true
            }
        },
        "district": {
            "id": "3f2a1b0c-9d8e-4f7a-b6c5-d4e3f2a1b0c9",
            "name": "Central Texas",
            "external_id": "CTX",
            "district_group_id": "e1a4c8b2-7d3f-4b6e-9a2c-8f5d1e3b7a90",
            "created_at": "2025-03-14T15:22:08.000000Z",
            "updated_at": "2026-10-02T09:41:55.000000Z",
            "districtGroup": {
                "id": "e1a4c8b2-7d3f-4b6e-9a2c-8f5d1e3b7a90",
                "name": "Region",
                "index": 1,
                "created_at": "2025-03-14T15:22:08.000000Z",
                "updated_at": "2026-10-02T09:41:55.000000Z"
            }
        },
        "district2": {
            "id": "3f2a1b0c-9d8e-4f7a-b6c5-d4e3f2a1b0c9",
            "name": "Central Texas",
            "external_id": "CTX",
            "district_group_id": "e1a4c8b2-7d3f-4b6e-9a2c-8f5d1e3b7a90",
            "created_at": "2025-03-14T15:22:08.000000Z",
            "updated_at": "2026-10-02T09:41:55.000000Z",
            "districtGroup": {
                "id": "e1a4c8b2-7d3f-4b6e-9a2c-8f5d1e3b7a90",
                "name": "Region",
                "index": 1,
                "created_at": "2025-03-14T15:22:08.000000Z",
                "updated_at": "2026-10-02T09:41:55.000000Z"
            }
        },
        "locationCategory": {
            "id": "5d8e2f1a-6c4b-4a9e-8f3d-2b7c1e9a4d60",
            "name": "Inline",
            "external_id": "INLINE",
            "location_category_group_id": "f2b6d8a1-4c3e-4e7b-a5d9-1c8e3f6b2a40",
            "sort_order": 1,
            "created_at": "2025-03-14T15:22:08.000000Z",
            "updated_at": "2026-10-02T09:41:55.000000Z",
            "locationCategoryGroup": {
                "id": "e1a4c8b2-7d3f-4b6e-9a2c-8f5d1e3b7a90",
                "name": "Region",
                "index": 1,
                "created_at": "2025-03-14T15:22:08.000000Z",
                "updated_at": "2026-10-02T09:41:55.000000Z"
            }
        },
        "locationGroups": [
            {
                "id": "a3c5e7f9-2b4d-4f6a-8c1e-3d5f7a9b1c20",
                "name": "Austin Metro",
                "external_id": "AUS-METRO",
                "created_at": "2025-03-14T15:22:08.000000Z",
                "updated_at": "2026-10-02T09:41:55.000000Z",
                "locations": [
                    {
                        "id": "9b1c8f3e-7a2d-4c5b-8e1a-2f3d4c5b6a7e",
                        "external_id": "STR-1042",
                        "name": "Downtown Austin",
                        "address": "401 Congress Ave",
                        "city": "Austin",
                        "region": "TX",
                        "postal_code": "78701",
                        "country": "US",
                        "timezone": "America/Chicago",
                        "timezone_source": "pos",
                        "is_private": false,
                        "is_corporate": false,
                        "is_active": true,
                        "activation_status": "active",
                        "deactivated_at": null,
                        "is_deletable": false,
                        "deletable_on": null,
                        "district_id": "3f2a1b0c-9d8e-4f7a-b6c5-d4e3f2a1b0c9",
                        "district_id_2": "c7e9a2d4-1b3f-4e8a-9c6d-5f2e8b1a7d30",
                        "location_category_id": "5d8e2f1a-6c4b-4a9e-8f3d-2b7c1e9a4d60",
                        "created_at": "2025-03-14T15:22:08.000000Z",
                        "updated_at": "2026-10-02T09:41:55.000000Z",
                        "datasource_settings": {
                            "qu": {
                                "location_id": 12345
                            },
                            "brink": {
                                "api_key_set": true
                            }
                        },
                        "district": {},
                        "district2": {},
                        "locationCategory": {},
                        "locationGroups": []
                    }
                ]
            }
        ]
    }
}