---
title: "Set auth credentials"
method: PUT
path: "/auth/{providerID}"
---

# Set auth credentials

`PUT /auth/{providerID}`

Set authentication credentials

## Path parameters

- `providerID` string, required

## Request body

- union
  - OAuth
    - `type` 'oauth', required
    - `refresh` string, required
    - `access` string, required
    - `expires` number, required
    - `accountId` string
    - `enterpriseUrl` string
  - ApiAuth
    - `type` 'api', required
    - `key` string, required
  - WellKnownAuth
    - `type` 'wellknown', required
    - `key` string, required
    - `token` string, required

## Response `200`

Successfully set authentication credentials

- boolean

## Other responses

- `400` — Bad request

---

[API](https://skmtc.net/cyberstrikeus/apis/cyberstrike.md) · [All operations](https://skmtc.net/cyberstrikeus/apis/cyberstrike/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cyberstrikeus/cyberstrike/versions/4e11f1aed2fd/schema)
