My Project
  1. Devices
My Project
  • Untitled Doc
  • Sample APIs
    • Add a new pet to the store
      POST
    • Update an existing pet
      PUT
    • Finds Pets by status
      GET
    • Find pet by ID
      GET
    • Deletes a pet
      DELETE
  • pet
    • uploads an image
      POST
    • Finds Pets by tags
      GET
    • Updates a pet in the store with form data
      POST
  • store
    • Returns pet inventories by status
      GET
    • Place an order for a pet
      POST
    • Find purchase order by ID
      GET
    • Delete purchase order by ID
      DELETE
  • user
    • Creates list of users with given input array
      POST
    • Get user by user name
      GET
    • Updated user
      PUT
    • Delete user
      DELETE
    • Logs user into the system
      GET
    • Logs out current logged in user session
      GET
    • Creates list of users with given input array
      POST
    • Create user
      POST
  • 👀 A_接口状态_看效果
    • 1_开发中_全参数测试-接口文档默认mock
  • User
    • Authentication
      • refresh_token_create
      • logoutAllDevices
      • logoutDevice
      • sendOTP
    • Customer
      • AuthenticateCustomer
      • GetCustomerDetails
      • UpdateCustomer
      • DeleteCustomer
  • Location
    • Country
      • ListCountries
    • Region
      • GetRegionByPoint
    • Address
      • ListAddresses
      • CreateAddress
      • UpdateAddress
      • DeleteAddress
  • Wallet
    • listWalletDetails
    • updateWallet
  • FCM
    • Devices
      • devices_list
        GET
      • devices_create
        POST
      • devices_retrieve
        GET
      • devices_update
        PUT
      • devices_destroy
        DELETE
      • devices_partial_update
        PATCH
    • Notification
      • listNotifications
      • deleteNotification
      • bulkDeleteNotifications
  • AppInfo
    • getSocialAccounts
    • getAppInfo
    • listFaqs
  1. Devices

devices_partial_update

PATCH
/api/devices/{registration_id}/
FCM/Devices
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/api/devices//'
Response Response Example
200 - Example 1
{
    "id": 0,
    "name": "string",
    "registration_id": "string",
    "device_id": "string",
    "active": true,
    "date_created": "2019-08-24T14:15:22Z",
    "type": "ios"
}

Request

Path Params
registration_id
string 
Registration token
required
Body Params application/x-www-form-urlencoded
name
string  | null 
optional
<= 255 characters
registration_id
string 
Registration token
optional
>= 1 characters
device_id
string  | null 
optional
Unique device identifier
<= 255 characters
active
boolean 
Is active
optional
Inactive devices will not be sent notifications
Default:
true
Example:
true
type
enum<string> 
optional
ios - ios
android - android
web - web
Allowed values:
iosandroidweb

Responses

🟢200OK
application/json
Body
id
integer 
read-onlyrequired
name
string  | null 
optional
<= 255 characters
registration_id
string 
Registration token
required
device_id
string  | null 
optional
Unique device identifier
<= 255 characters
active
boolean 
Is active
optional
Inactive devices will not be sent notifications
Default:
true
date_created
string <date-time> | null 
Creation date
read-onlyrequired
type
enum<string> 
required
ios - ios
android - android
web - web
Allowed values:
iosandroidweb
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🟠405405
🟠406406
🟠415415
🟠429429
🔴500Server Error
Previous
devices_destroy
Next
listNotifications
Built with