---
title: "Associate credentials with project"
method: PUT
path: "/credentials/deployment/{credentialId}/project/{projectId}"
tags: ["Configuration"]
---

# Associate credentials with project

`PUT /credentials/deployment/{credentialId}/project/{projectId}`

Associate cloud provider, kubernetes or vault deployment credentials to Project

## Path parameters

- `credentialId` string, required
- `projectId` string, required

## Request body

- ConfigurationApiAddDeployCredsToProjectRequestBody

## Response `200`

- ConfigurationApiAddDeployCredsToProjectResponse
  - `id` string
  - `projectId` string, required
  - `credentialId` string, required
  - `createdByUserId` string, required

---

[API](https://skmtc.net/envzero/apis/env0-api.md) · [All operations](https://skmtc.net/envzero/apis/env0-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/envzero/env0-api/versions/513441cbe9dc/schema)
