# Update Vendor Account

`PUT https://api.torbox.app/v1/api/vendors/updateaccount`

- Operation ID: `update_vendor_account`
- Group: Vendors
- Auth: API key, `Authorization: Bearer <api key>` (Sign in with TorBox gives the same key)

### Overview

Updates the name, the URL, or both, of your vendor account. Send at least one of `vendor_name` and `vendor_url`. The one that is not sent is left as it is.

The `vendor_url` follows the same rule as on the Register Vendor endpoint: it must start with `http://` or `https://` and be a domain with an optional path. A URL with a port, a query string or a fragment is rejected, and the request then changes nothing.

The response is the updated vendor account, in the same shape and with the same `detail` as the Get Vendor Account endpoint.

### Rate Limits

This endpoint is rate limited to **15 requests per hour** per API token.

### Authorization

Requires an API key using the Authorization Bearer Header. Works with an API key from any plan, including the free plan.

## Request body (`application/x-www-form-urlencoded`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `vendor_name` | string | no | New name of the vendor. Optional, but at least one of vendor_name and vendor_url must be sent. |
| `vendor_url` | string | no | New website of the vendor. Must start with http:// or https:// and cannot contain a port, a query string or a fragment. Optional, but at least one of vendor_name and vendor_url must be sent. |

## Responses

- `200` Successful Response
- `400` Bad Request
- `401` Unauthorized
- `403` Forbidden
- `404` Not Found
- `422` Validation Error
- `429` Too Many Requests
- `500` Internal Server Error
- `503` Service Unavailable
