---
title: "PATCH /api/v1/cert-manager/applications/{applicationId}/users/{userId}"
method: PATCH
path: "/api/v1/cert-manager/applications/{applicationId}/users/{userId}"
tags: ["PKI Applications"]
---

# PATCH /api/v1/cert-manager/applications/{applicationId}/users/{userId}

`PATCH /api/v1/cert-manager/applications/{applicationId}/users/{userId}`

Update the role of a user member on an application.

## Path parameters

- `applicationId` string, uuid, required
- `userId` string, uuid, required

## Request body

- object
  - `role` string, required

## Response `200`

Default Response

- object
  - `membership` object, required
    - `membershipId` string, uuid, required
    - `applicationId` string, uuid, required
    - `actorUserId` string, uuid, nullable
    - `actorIdentityId` string, uuid, nullable
    - `actorGroupId` string, uuid, nullable
    - `role` string, required
    - `customRoleId` string, uuid, nullable
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `details` object, nullable
      - `name` string, nullable, required
      - `email` string, nullable
      - `username` string, nullable
      - `authMethod` string, nullable
      - `slug` string, nullable

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

---

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