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

# updateBusinessHoursOverride

> Update an override's name, dates or slots. Omitted fields are left unchanged. Requires the `businessHours:edit` permission.



**mutation** `updateBusinessHoursOverride(input: UpdateBusinessHoursOverrideInput!): UpdateBusinessHoursOverrideOutput!`

## Arguments

**`input`**: `UpdateBusinessHoursOverrideInput!` (required)

## Returns

`UpdateBusinessHoursOverrideOutput!`

**`businessHoursOverride`**: `BusinessHoursOverride`

---

**`error`**: `MutationError`

## Examples

```graphql Mutation
mutation UpdateBusinessHoursOverride($input: UpdateBusinessHoursOverrideInput!) {
  updateBusinessHoursOverride(input: $input) {
    businessHoursOverride {
      id
      businessHoursScheduleId
      name
      startsOn
      endsOn
      slots {
        date
        opensAt
        closesAt
      }
    }
    error {
      message
      type
      code
      fields {
        field
        message
        type
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "businessHoursOverrideId": "id"
  }
}
```

```json Response
{
  "data": {
    "updateBusinessHoursOverride": {
      "businessHoursOverride": {
        "id": "id",
        "businessHoursScheduleId": "id",
        "name": "string",
        "startsOn": "string",
        "endsOn": "string",
        "slots": [
          {
            "date": "string",
            "opensAt": "string",
            "closesAt": "string"
          }
        ]
      },
      "error": {
        "message": "string",
        "type": "VALIDATION",
        "code": "string",
        "fields": [
          {
            "field": "string",
            "message": "string",
            "type": "VALIDATION"
          }
        ]
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.