---
title: "Assigned Shared Credential Enablement"
method: PUT
path: "/api/3/sites/{id}/shared_credentials/{credentialId}/enabled"
tags: ["Site"]
---

# Assigned Shared Credential Enablement

`PUT /api/3/sites/{id}/shared_credentials/{credentialId}/enabled`

Enable or disable the shared credential for the site's scans.

## Path parameters

- `credentialId` integer, required — The identifier of the credential.
- `id` integer, required — The identifier of the site.

## Request body

- boolean — Flag indicating whether the shared credential is enabled for the site's scans.

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error
- `503` — Service Unavailable

---

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