---
title: "PUT /v1/site-credentials"
method: PUT
path: "/v1/site-credentials"
tags: ["Credential requests"]
---

# PUT /v1/site-credentials

`PUT /v1/site-credentials`

## Request

- Base URL: `https://api.shardflux.dev`
- URL: `https://api.shardflux.dev/v1/site-credentials`
- Auth: HTTP bearer

## Request body

- object
  - `workspace_id` string, uuid, required: UUIDv7, lowercase canonical form.
  - `site` string, required
  - `credential` object, required
    - `username` string
    - `password` string
    - `totp_seed` string
  - `scope` union
    - 'conversation'
    - 'project'
    - 'machine'

## Response `200`

Default Response

- object
  - `site` string, required
  - `kind` 'site_credential', required

## Other responses

- `4XX`: Default Response
- `5XX`: Default Response

---

[API](https://skmtc.dev/shardflux/apis/shardflux-api.md) · [All operations](https://skmtc.dev/shardflux/apis/shardflux-api/llms.txt) · [OpenAPI document](https://skmtc.dev/shardflux/apis/shardflux-api/revisions/ea685f7b39c4?raw)
