---
title: "Changes to Create or replace a secret (idempotent)"
method: PUT
path: "/secrets/{name}"
---

# Changes to Create or replace a secret (idempotent)

`PUT /secrets/{name}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 4 of 30 revisions.

- **2026-11-04** `6b505ebcf3f7`: 8 info
- **2026-10-28** `4ebf07931311`: 6 info
- **2026-10-15** `f6e53eeef5b3`: 2 info
- **2026-10-02** `05f875e6b817`: 8 info

## Changes

- **2026-11-04** `6b505ebcf3f7`: 8 info
  - added the optional property `availableWei` to the response with the `400` status
  - added the optional property `availableWei` to the response with the `401` status
  - added the optional property `neededWei` to the response with the `400` status
  - added the optional property `neededWei` to the response with the `401` status
  - added the optional property `spender` to the response with the `400` status
  - added the optional property `spender` to the response with the `401` status
  - added the optional property `token` to the response with the `400` status
  - added the optional property `token` to the response with the `401` status
- **2026-10-28** `4ebf07931311`: 6 info
  - added the optional property `acknowledgedDelegate` to the response with the `400` status
  - added the optional property `acknowledgedDelegate` to the response with the `401` status
  - added the optional property `delegate` to the response with the `400` status
  - added the optional property `delegate` to the response with the `401` status
  - added the optional property `recipient` to the response with the `400` status
  - added the optional property `recipient` to the response with the `401` status
- **2026-10-15** `f6e53eeef5b3`: 2 info
  - added the optional property `required/nativeGasWei` to the response with the `400` status
  - added the optional property `required/nativeGasWei` to the response with the `401` status
- **2026-10-02** `05f875e6b817`: 8 info
  - added the optional property `affectedTaskIds` to the response with the `400` status
  - added the optional property `affectedTaskIds` to the response with the `401` status
  - added the optional property `missingActions` to the response with the `400` status
  - added the optional property `missingActions` to the response with the `401` status
  - added the optional property `policyId` to the response with the `400` status
  - added the optional property `policyId` to the response with the `401` status
  - added the optional property `required` to the response with the `400` status
  - added the optional property `required` to the response with the `401` status

---

[Operation](https://skmtc.dev/avaprotocol/apis/ava-protocol-avs-api/docs/secrets/:name/put.md) - [API](https://skmtc.dev/avaprotocol/apis/ava-protocol-avs-api.md) - [Page](https://skmtc.dev/avaprotocol/apis/ava-protocol-avs-api/changes/secrets/:name/put)
