maas-schemas

request Schema

http://maasglobal.com/maas-backend/push-notification/request.json

MaaS push notification request schema.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated No Develop No Forbidden Forbidden maas-backend/push-notification/request.json

Schema Hierarchy

request Properties

Property Type Required Nullable Defined by
badge integer Required No request (this schema)
data complex Optional No request (this schema)
identityId complex Required No request (this schema)
message string Optional No request (this schema)
severity enum Required No request (this schema)
sound string Optional No request (this schema)
title string Optional No request (this schema)
type enum Required No request (this schema)

badge

badge

badge Type

integer

data

data

data Type

One of the following conditions need to be fulfilled.

Condition 1

object with following properties:

Property Type Required
ids array Required
objectType   Required

ids

ids

ids Type

Array type: uuid

All items must be of the type:

objectType

objectType

The value of this property must be equal to one of the known values below.

objectType Known Values
Value Description
Itinerary  
Booking  

Condition 2

Condition 3

object with following properties:

Property Type Required
ids array Required
objectType   Required

ids

ids

ids Type

Array type: identityId

All items must be of the type:

objectType

objectType

The value of this property must be equal to one of the known values below.

objectType Known Values
Value Description
Profile  
Subscription  

Condition 4

object with following properties:

Property Type Required
authUrl   Required
objectType   Required

authUrl

authUrl

authUrl Type

objectType

objectType

The value of this property must be equal to one of the known values below.

objectType Known Values
Value Description
Reminder  

identityId

identityId

identityId Type

Any following options needs to be fulfilled.

Option 1

string

All instances must conform to this regular expression

^[aepus]{2}-[\w]{4}-\d:[a-f\d]{8}(-[a-f\d]{4}){3}-[a-f\d]{12}$

Option 2

string

All instances must conform to this regular expression

^[A-Fa-f0-9]{8}(-[A-Fa-f0-9]{4}){3}-[A-Fa-f0-9]{12}$

identityId Examples

"eu-west-1:4828507e-683f-41bf-9d87-689808fbf958"
"4828507e-683f-41bf-9d87-689808fbf958"

message

message

message Type

string

severity

severity

The value of this property must be equal to one of the known values below.

severity Known Values

Value Description
Alert  
Warning  
Information  

sound

sound

sound Type

string

title

title

title Type

string

type

type

The value of this property must be equal to one of the known values below.

type Known Values

Value Description
ObjectChange  
TripActivate  
InfoMessage  
ZendeskReply  
VerificationUpdate  
AuthRequired