---
title: "Update multiple accessWidget licenses"
method: POST
path: "/accounts/{accountId}/access-widget-licenses/batch-update"
---

# Update multiple accessWidget licenses

`POST /accounts/{accountId}/access-widget-licenses/batch-update`

## Request

- Base URL: `https://dashboard.accessibe.com/api/v1/partners`
- URL: `https://dashboard.accessibe.com/api/v1/partners/accounts/{accountId}/access-widget-licenses/batch-update`
- Auth: API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/accessibe/apis/partners-api-license/docs/accounts/:accountId/access-widget-licenses/batch-update/post.ts> (a function with typed inputs; its response is checked against the schema)

Updates multiple existing accessWidget licenses for the specified account. The maximum number of licenses that can be updated in a single request is 150.

This endpoint requires the `x-api-key` header for authentication. The key must match the API key associated with the specified account. The account must also be a partner account.

## Path parameters

- `accountId` string, required

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `licenses` UpdateLicense[]
    - `domain` string, required: domain of an exiting license
    - `newDomain` string: New domain for the license, you can update only if you have the allowTransferByApi set to true
    - `planSKU` 1 | 2 | 3 | 5 | 21 | 22 | 23: Plan SKU for the license.
    - `contactName` string: New full name of contact for the license
    - `contactEmail` string: New contact email for the license
    - `contactPhone` string: New contact phone for the license
    - `contactCountryCode` string: New contact country code for the license
    - `discountEnabled` boolean: Set to true to enable discounts for the account. Set to false to get commissions instead of discounts. The parameter activate below must be set to true.
    - `monthly` boolean: For monthly subscription can pass it as true, else it will be yearly
    - `activate` boolean: Activate the license, need to have in the account allowActivationByApi set to true
    - `disable` boolean: Disable the license, need to have in the account allowDisableByApi set to true
    - `settings` UpdateSettings
      - `default` boolean, nullable: If true, all customization settings revert to their system defaults, regardless of other fields.
      - `leadColor` string, nullable
      - `language` 'en' | 'es' | 'fr' | 'de' | 'pl' | 'it' | 'pt' | 'nl' | 'hu' | 'no' | 'sl' | 'sk' | 'sv' | 'cs' | 'tr' | 'ja' | 'tw' | 'zh' | 'he' | 'ru' | 'ar' | 'fi' | 'uk' | 'ro' | 'ga' | 'el' | 'sr' | 'bs' | 'hr' | 'lb' | 'sq' | 'da', nullable
      - `position` 'left' | 'right', nullable
      - `triggerColor` string, nullable
      - `triggerPositionX` 'left' | 'right', nullable
      - `triggerPositionY` 'top' | 'center' | 'bottom', nullable
      - `triggerSize` 'small' | 'medium' | 'big', nullable
      - `triggerRadius` '50%' | '0' | '10px' | '5px', nullable
      - `hideTrigger` boolean, nullable
      - `triggerOffsetX` number, nullable
      - `triggerOffsetY` number, nullable
      - `triggerIcon` 'checkmark' | 'display' | 'display2' | 'display3' | 'help' | 'people' | 'people2' | 'settings' | 'settings2' | 'wheels' | 'wheels2', nullable
      - `hideMobile` boolean, nullable
      - `mobile` object, nullable
        - `triggerPositionX` 'left' | 'right', nullable
        - `triggerPositionY` 'top' | 'center' | 'bottom', nullable
        - `triggerSize` 'small' | 'medium' | 'big', nullable
        - `triggerRadius` '50%' | '0' | '10px' | '5px', nullable
        - `triggerOffsetX` number, nullable
        - `triggerOffsetY` number, nullable
      - `statementLink` string, url, nullable
      - `footerHtml` string, nullable

## Response `202`

Licenses are being updated

- object
  - `success` boolean
  - `data` object
    - `batchId` string
    - `status` 'processing' | 'completed'
    - `operation` 'create' | 'update'
    - `getBatchStatusURL` string

## Other responses

- `400`: The request is invalid. Any field could potentially be the cause.
- `401`: Missing or invalid API key
- `403`: Account does not have access to do this operation
- `404`: Account not found

---

[API](https://skmtc.dev/accessibe/apis/partners-api-license.md) - [All operations](https://skmtc.dev/accessibe/apis/partners-api-license/llms.txt) - [OpenAPI document](https://skmtc.dev/accessibe/apis/partners-api-license/revisions/b7f155181cf7?raw)
