> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Update Location

> Updates a [location](https://developer.squareup.com/docs/locations-api).

`square.updateLocation` updates a [location](https://developer.squareup.com/docs/locations-api).

## Example

```ts automations/square-update-location.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { square } from "automate.ax/square"

export default automation("Update Square Location", () => {
  onDashboardRun({ title: "Update Square Location" })

  square.updateLocation({
    locationId: "location_id",
    location: {
      businessHours: {
        periods: [
          {
            dayOfWeek: "FRI",
            startLocalTime: "07:00",
            endLocalTime: "18:00",
          },
          {
            dayOfWeek: "SAT",
            startLocalTime: "07:00",
            endLocalTime: "18:00",
          },
          {
            dayOfWeek: "SUN",
            startLocalTime: "09:00",
            endLocalTime: "15:00",
          },
        ],
      },
      description: "Midtown Atlanta store - Open weekends",
    },
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires `MERCHANT_PROFILE_WRITE`.

| Field        | Type              | Required | Default | Description                                           |
| ------------ | ----------------- | -------- | ------- | ----------------------------------------------------- |
| `locationId` | `string`          | Yes      | —       | The ID of the location to update.                     |
| `location`   | `Square.Location` | No       | —       | The `Location` object with only the fields to update. |

Use the official [UpdateLocation reference](https://developer.squareup.com/reference/square/locations-api/update-location) for provider field semantics and limits.

## Output

Returns the official `Square.UpdateLocationResponse` response as a codec-safe object. Square integer money amounts remain `bigint` values.
