Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
  "id": "8608863f-e39a-4129-83be-c7cfd2701aee",
  "message": "This is a test message from create",
  "municipalityName": "INFOLAND",
  "municipalityNumber": 9999,
  "dateCreated": "14-01-2021",
  "type": "CUSTOMER"
}

JSON body:

Property

Description

Type:

message

The message content that is going to be sent.

String

municipalityName

The organization name of who sent the push message.

String

type

The type of message: CUSTOMER or DISTRIBUTOR.

String

municipalityNumber

The municipality number of the sender.

Integer

dateCreated

The date when the push message was created.

String

The actual push message that will be sent, will look something like this:

Code Block
{
 "content": {
    "body": {
      "id": "8608863f-e39a-4129-83be-c7cfd2701aee",
      "message": "This is a test message from create",
      "municipalityName": "INFOLAND",
      "municipalityNumber": 9999,
      "dateCreated": "14-01-2021",
      "type": "CUSTOMER"
    }
  },
  "eventAction": "Created",
  "eventType": "DistributorMessages"
}

...

Code Block
[
  {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "message": "Dette er et eksempel",
    "municipalityName": "INFOLAND",
    "municipalityNumber": 9999,
    "dateCreated": "14-01-2021",
    "type": "CUSTOMER"
  },
  {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "message": "Dette er et eksempel2",
    "municipalityName": "INFOLAND",
    "municipalityNumber": 9999,
    "dateCreated": "14-01-2021",
    "type": "CUSTOMER"
  }
]