---
title: "Update an authorization"
method: PUT
path: "/builder/authorization"
tags: ["Builder authorizations"]
---

# Update an authorization

`PUT /builder/authorization`

Update an authorization with the provided data, overwriting any existing data.

## Request body

- PersonalMerchandisingAuthorizationUpdateModel — Personal merchandising authorization update model
  - `AuthorizationId` integer — Id of the authorization
  - `AuthorizationType` 'Basic' | 'BearerToken' | 'CustomHeaders' — Type of the authorization
  - `Token` string — Token for the authorization for Bearer authorization type
  - `UserName` string — Username for the authorization for Basic authorization type
  - `Password` string — Password for the authorization for Basic authorization type
  - `Headers` object — Headers for the authorization

## Response `200`

The id of the updated authorization

- integer

## Other responses

- `400` — BadRequest

---

[API](https://skmtc.net/tweakwise/apis/frontend-api.md) · [All operations](https://skmtc.net/tweakwise/apis/frontend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tweakwise/frontend-api/revisions/9bd1e2b3633f/schema)
