---
title: "Update a user credential"
method: PATCH
path: "/orgs/{orgId}/users/{userId}/credentials/{credentialId}"
tags: ["orgs/users"]
---

# Update a user credential

`PATCH /orgs/{orgId}/users/{userId}/credentials/{credentialId}`

__JWT is required for this endpoint with at least one of the following scopes__: o{params.orgId}-user:w,o:w,s-o:w<br/><br/>__Endpoint name__: updateCredential

## Path parameters

- `orgId` integer, required
- `userId` integer, required
- `credentialId` integer, required

## Request body

- object
  - `startDate` string, date, nullable
  - `endDate` string, date, nullable
  - `mobile` object
    - `name` string, nullable
  - `eventAction` object, nullable
    - `command` 'triggerLockdown' | 'revertLockdown' | 'unlockWithOverride', required
    - `targetId` number
  - `allowReassign` boolean
  - `card` object
    - `number` string
    - `cardFormatId` integer
    - `isOutputEnabled` boolean
    - `facilityCode` string, nullable
    - `cardId` string, nullable
    - `fields` object
      - `rcm` string
      - `facilityCode` string
      - `issueLevel` string
      - `cardId` string
      - `companyId` string
      - `companyCode` string
      - `siteCode` string
      - `oem` string
  - `pincode` object
    - `number` string, required
  - `cardMifareCsn` object
    - `number` string, required
  - `cardOpenpathDesfireEv1` object
    - `number` string, required
    - `isNoTour` boolean
    - `isLost` boolean
  - `cloudKey` object
    - `name` string, nullable
    - `maxDurationSeconds` integer, nullable
  - `fobAllegion` object
    - `id` integer, required
    - `csn` string
    - `isNoTour` boolean
    - `isLost` boolean
  - `badgeConfigId` number, nullable
  - `licensePlate` object
    - `plate` string
  - `wallet` object
    - `name` string, nullable

## Response `204`

No Content

---

[API](https://skmtc.dev/openpath/apis/openpath-api-documentation.md) · [All operations](https://skmtc.dev/openpath/apis/openpath-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openpath/openpath-api-documentation/revisions/d8a888c114fa/schema)
