> ## 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.

# Bulk Upsert Booking Custom Attributes

> Bulk upserts bookings custom attributes.

`square.bulkUpsertBookingCustomAttributes` bulk upserts bookings custom attributes.

## Example

```ts automations/square-bulk-upsert-booking-custom-attributes.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { square } from "automate.ax/square"

export default automation(
  "Bulk Square Upsert Booking Custom Attributes",
  () => {
    onDashboardRun({ title: "Bulk Square Upsert Booking Custom Attributes" })

    square.bulkUpsertBookingCustomAttributes({
      values: {
        key: {
          bookingId: "booking_id",
          customAttribute: {},
        },
      },
    })
  },
)
```

## Inputs

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

| Field    | Type                                                           | Required | Default | Description                                                                                                                                                                                                                           |
| -------- | -------------------------------------------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `values` | `Record\<string, Square.BookingCustomAttributeUpsertRequest\>` | Yes      | —       | A map containing 1 to 25 individual upsert requests. For each request, provide an arbitrary ID that is unique for this `BulkUpsertBookingCustomAttributes` request and the information needed to create or update a custom attribute. |

Use the official [BulkUpsertBookingCustomAttributes reference](https://developer.squareup.com/reference/square/booking-custom-attributes-api/bulk-upsert-booking-custom-attributes) for provider field semantics and limits.

## Output

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