# Update a gateway (/api/gateways/update-gateway)

`POST https://api.comecero.com/api/v1/gateways/{gateway_id}`

Changes a gateway's currencies, card brands, settings, weight, notes, or switches it on or off. Only the fields you send change. Fires the `gateway:modified` event. Some gateways cannot be changed this way. Gateways that Comecero set up for you keep their settings, currencies and card brands (`400`), and may stay off while their set-up finishes or payments are on hold (`422`). Secret and trusted tokens may call this with the `gateways` update permission.

Request body: the `gateway_update_request` schema.

Responses: 200, 400, 401, 403, 404, 422, 500.

Full schemas: operation `update_gateway` in /openapi.json.