---
title: "POST /agentcc/gateways/{id}/update-provider/"
method: POST
path: "/agentcc/gateways/{id}/update-provider/"
tags: ["agentcc"]
---

# POST /agentcc/gateways/{id}/update-provider/

`POST /agentcc/gateways/{id}/update-provider/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/agentcc/gateways/{id}/update-provider/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Add or update a provider credential for the org, then push config.

## Request body

- GatewayProviderUpdateRequest
  - `name` string, required
  - `config` object, required

## Response `200`

OK

- GatewayMutationResponse
  - `status` boolean, required
  - `result` GatewayMutationResult, required
    - `status` boolean
    - `version` integer
    - `gateway_synced` boolean
    - `gateway_warning` string
    - `action` string
    - `provider` string
    - `guardrail` string
    - `budget` string
    - `server` string
    - `enabled` boolean

## Other responses

- `400`: Bad Request
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
