---
title: "POST /api/app/push-notification"
method: POST
path: "/api/app/push-notification"
tags: ["PushNotification"]
---

# POST /api/app/push-notification

`POST /api/app/push-notification`

## Request

- Base URL: `https://api.khaasfood.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.khaasfood.com/api/app/push-notification`
- Auth: OAuth 2
  - Authorization code: `https://api.khaasfood.com/connect/authorize`
  - Token URL: `https://api.khaasfood.com/connect/token`

## Request body

- KhaasFoodNotificationsDTOsCreatePushNotificationDto
  - `title` string, required
  - `body` string, required
  - `imageUrl` string, nullable
  - `schedule` string, date-time, required
  - `status` 0 | 1 | 2 | 3
  - `isSendToAllCustomers` boolean
  - `customerIds` string[], nullable

## Response `200`

Success

- KhaasFoodNotificationsDTOsPushNotificationDto
  - `id` string, uuid
  - `creationTime` string, date-time
  - `creatorId` string, uuid, nullable
  - `lastModificationTime` string, date-time, nullable
  - `lastModifierId` string, uuid, nullable
  - `title` string, nullable
  - `body` string, nullable
  - `imageUrl` string, nullable
  - `schedule` string, date-time
  - `isSendToAllCustomers` boolean
  - `status` 0 | 1 | 2 | 3
  - `successCount` integer
  - `failedCount` integer

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Server Error
- `501`: Server Error

---

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