---
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

---

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