---
title: "Update a push endpoint associated with a User"
method: PATCH
path: "/api/v2/users/{user_id}/pushendpoints/{push_endpoint_id}"
tags: ["Users"]
---

# Update a push endpoint associated with a User

`PATCH /api/v2/users/{user_id}/pushendpoints/{push_endpoint_id}`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/users/{user_id}/pushendpoints/{push_endpoint_id}`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/users/:user_id/pushendpoints/:push_endpoint_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint will update a push endpoint associated with a user.

## Headers

- `x-org-id` string

## Request body

- object
  - `name` string
  - `state` 'active' | 'inactive'

## Response `200`

OK

- PushEndpointResponse: A push endpoint response from the auth service.
  - `id` string
  - `state` string
  - `name` string
  - `device` object
    - `make` string
    - `model` string
    - `os` string
    - `appVersion` string
    - `osVersion` string
    - `uvEnabled` boolean
  - `enrollmentDate` string, date-time
  - `lastUsedDate` string, date-time, nullable

## Other responses

- `400`: Bad Request
- `401`: Unauthenticated
- `403`: Unauthorized
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
