---
title: "Update fee configuration"
method: PATCH
path: "/fees/configurations/{account_id}"
tags: ["Fees Configurations"]
---

# Update fee configuration

`PATCH /fees/configurations/{account_id}`

## Request

- Base URL: `https://sandbox.upvest.co`
- URL: `https://sandbox.upvest.co/fees/configurations/{account_id}`
- Auth: OAuth 2 (client credentials, token URL `https://sandbox.upvest.co/auth/token`, scopes: `fees:admin`)

Updates the fee configuration of the account identified by `account_id`.

Only the last fee configuration submitted on a given day is used to calculate that day's fees.

See the Fee model and configuration guide ([TOL](https://docs.upvest.co/products/tol/guides/fees/fees_model_configuration) / [BYOL](https://docs.upvest.co/products/byol/guides/fees/fees_model_configuration)) for implementation details.

## Request body

- object: Request body for changing the fee model assigned to an account.
  - `fee_model_id` string, uuid, required: The unique identifier of the fee model, as a UUID. Upvest provides this value when a fee model is set up.

## Response `200`

OK

- object: The assignment of a fee model to an account. An account must have a fee configuration before fees are calculated for it.
  - `created_at` string, date-time, required: Date and time when the resource was created. [RFC 3339-5](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6), [ISO8601 UTC](https://www.iso.org/iso-8601-date-and-time-format.html)
  - `updated_at` string, date-time, required: Date and time when the resource was last updated. [RFC 3339-5](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6), [ISO8601 UTC](https://www.iso.org/iso-8601-date-and-time-format.html)
  - `account_id` string, uuid, required: Universally Unique Identifier (UUID) of the account.
  - `fee_model_id` string, uuid, required: The unique identifier of the fee model, as a UUID. Upvest provides this value when a fee model is set up.

## Other responses

- `400`: Bad Request. The incoming request had a malformed parameter/object.
- `401`: Unauthorized. The caller has not been authenticated.
- `403`: Forbidden. The caller has been authenticated but is not allowed to take the requested action.
- `404`: Not Found. The requested resource could not be found.
- `406`: Not Acceptable. The resource does not have a current representation that would be acceptable to the user agent. "Accept" header defined unsupported value.
- `429`: Too Many Requests. The caller has exceeded their quota for the time period and has been throttled.
- `500`: Internal Server Error. The service encountered an unexpected error.
- `503`: Service Unavailable. The service handling for this request cannot be reached at this time.
- `504`: Gateway Timeout. The service gateway has reached its internal timeout.

---

[API](https://skmtc.dev/upvest/apis/upvest-investment-api.md) · [All operations](https://skmtc.dev/upvest/apis/upvest-investment-api/llms.txt) · [OpenAPI document](https://skmtc.dev/upvest/apis/upvest-investment-api/revisions/ca69534b631d?raw)
