---
title: "Update provider by its id"
method: PUT
path: "/providers/{providerId}"
tags: ["Provider"]
---

# Update provider by its id

`PUT /providers/{providerId}`

Update provider by its id

## Path parameters

- `providerId` integer, required

## Request body

- AddProvider
  - `name` string
  - `secret_key` string
  - `api_key` string
  - `is_active` integer

## Response `200`

Provider updated

- Provider
  - `id` integer
  - `created_at` string
  - `updated_at` string
  - `name` string
  - `slug` string
  - `secret_key` string
  - `api_key` string
  - `icon_class` string
  - `button_class` string
  - `is_active` integer
  - `position` integer

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.net/agriya/apis/ofos-api-endpoints.md) · [All operations](https://skmtc.net/agriya/apis/ofos-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agriya/ofos-api-endpoints/revisions/8db13a44d758/schema)
