---
title: "PATCH /{tenantID}/servicePrincipals/{objectId}/keyCredentials"
method: PATCH
path: "/{tenantID}/servicePrincipals/{objectId}/keyCredentials"
tags: ["ServicePrincipalKeyCredentials"]
---

# PATCH /{tenantID}/servicePrincipals/{objectId}/keyCredentials

`PATCH /{tenantID}/servicePrincipals/{objectId}/keyCredentials`

Update the keyCredentials associated with a service principal.

## Path parameters

- `objectId` string, required
- `tenantID` string, required

## Query parameters

- `api-version` string, required

## Request body

- KeyCredentialsUpdateParameters — Request parameters for a KeyCredentials update operation
  - `value` KeyCredential[], required — A collection of KeyCredentials.
    - `startDate` string, date-time — Start date.
    - `endDate` string, date-time — End date.
    - `value` string — Key value.
    - `keyId` string — Key ID.
    - `usage` string — Usage. Acceptable values are 'Verify' and 'Sign'.
    - `type` string — Type. Acceptable values are 'AsymmetricX509Cert' and 'Symmetric'.
    - `customKeyIdentifier` string — Custom Key Identifier

## Response `204`

No Content

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.net/azure/apis/graphrbacmanagementclient.md) · [All operations](https://skmtc.net/azure/apis/graphrbacmanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/graphrbacmanagementclient/versions/71d95005600e/schema)
