---
title: "Link credential to workspace"
method: PUT
path: "/workspaces/{id}/credential"
tags: ["Workspaces"]
---

# Link credential to workspace

`PUT /workspaces/{id}/credential`

Associates a managed credential with a workspace for storage path resolution

## Path parameters

- `id` string, required

## Request body

- GithubComActiveloopaiDeeplakeApiInternalWorkspacesLinkCredentialRequest
  - `credential_id` string

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

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