Перейти к основному содержанию
POST
/
v1
/
notifications
/
mobile
cURL
curl --request POST \
  --url https://api.example.com/v1/notifications/mobile/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>",
  "device_id": "<string>",
  "device_type": "ios"
}
'
{
  "id": 123,
  "token": "<string>",
  "is_active": true,
  "last_used": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "device_id": "<string>",
  "device_type": "ios"
}

Тело

token
string
обязательно
Maximum string length: 255
device_id
string | null
Maximum string length: 255
device_type
enum<string>
  • ios - iOS
  • android - Android
  • web - Web
Доступные опции:
ios,
android,
web

Ответ

201 - application/json
id
integer
обязательно
token
string
обязательно
Maximum string length: 255
is_active
boolean
обязательно
last_used
string<date-time>
обязательно
created_at
string<date-time>
обязательно
updated_at
string<date-time>
обязательно
device_id
string | null
Maximum string length: 255
device_type
enum<string>
  • ios - iOS
  • android - Android
  • web - Web
Доступные опции:
ios,
android,
web