---
title: "Updates credentials"
method: PUT
path: "/v1/credentials"
tags: ["Credentials"]
---

# Updates credentials

`PUT /v1/credentials`

Encrypts and updates credentials for an origin

## Request body

- CredentialUpdate
  - `label` string — Label for the credential
  - `namespace` string — The namespace the credential is stored against. Defaults to "default".
  - `origin` string — Website origin the credential is for
  - `projectId` string, uuid — Project to update the credential in.
  - `value` object — Value for the credential

## Response `200`

Default Response

- CredentialMetadata
  - `createdAt` string, date-time, required — Date and time the credential was created
  - `label` string — Label for the credential
  - `namespace` string — The namespace the credential is stored against. Defaults to "default".
  - `origin` string — Website origin the credential is for
  - `updatedAt` string, date-time, required — Date and time the credential was last updated

## Other responses

- `400` — An error response from the API
- `404` — An error response from the API
- `500` — An error response from the API

## Changes

- **2026-06-23** `2248d956188a` — 1 info
  - request body became optional
- **2026-06-16** `7b73b0d57792` — 1 breaking
  - request body became required
- **2026-06-07** `4985d7bcd32f` — 4 info
  - added the new optional request property `projectId`
  - added the optional property `linkToDocs` to the response with the `400` status
  - added the optional property `linkToDocs` to the response with the `404` status
  - added the optional property `linkToDocs` to the response with the `500` status
- **2026-01-08** `97dcad9b050e` — 5 info
  - the response property `context/items/params` became required for the status `400`
  - the response property `context/items/params` became required for the status `404`
  - the response property `context/items/params` became required for the status `500`
  - the `createdAt` response's property pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` was added for the status `200`
  - …1 more
- **2025-08-11** `15ffd3fc04f3` — 1 info
  - added the non-success response with the status `404`

[Full history](https://skmtc.dev/steel-dev/apis/steel-api/changes/v1/credentials/put.md)

---

[API](https://skmtc.dev/steel-dev/apis/steel-api.md) · [All operations](https://skmtc.dev/steel-dev/apis/steel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/steel-dev/steel-api/revisions/2248d956188a/schema)
