---
title: "Create Or Update Push Notification"
method: POST
path: "/push-notification/create-update/{user_id}/"
tags: ["push-notification"]
---

# Create Or Update Push Notification

`POST /push-notification/create-update/{user_id}/`

Create or update a device token for push notifications.
If device_id already exists for the user_id, it will update the existing record.
Otherwise, it will create a new record.

## Path parameters

- `user_id` integer, required

## Request body

- PushNotificationCreate
  - `device_id` string, nullable
  - `fcm_token` string, nullable
  - `platform` string, nullable
  - `version` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `404` — Not found
- `422` — Validation Error

---

[API](https://skmtc.dev/myticketpartner/apis/fastapi.md) · [All operations](https://skmtc.dev/myticketpartner/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/myticketpartner/fastapi/revisions/b574a0cabefe/schema)
