Skip to main content
POST
/
devicetoken
/
addorupdate
Add or Update Device Token
curl --request POST \
  --url https://apigw.bienport.com/api/devicetoken/addorupdate \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'OrganizationId: <organizationid>' \
  --data '
{
  "userId": 20199,
  "requestToken": "/*token*/",
  "appId": "/*device id*/"
}
'
{
  "message": "<string>",
  "success": true
}

Headers

Authorization
string
required

Access Token

OrganizationId
string
required

Organization ID

Body

application/json

request

Add Device Token Request

userId
integer<int64>

The id of the user whose token information will be added or edited.

Example:

20199

requestToken
string

Token data of the device.

Example:

"/*token*/"

appId
string

The unique id of the device.

Example:

"/*device id*/"

Response

SuccessResult with message

SuccessResult Api Model

message
string
success
boolean