...
Code Block |
---|
curl -X POST "http://beta-api-ambita.com/kode/v1/distributormessages/distributor/messages" -H "accept: */*" -H "Authorization: Bearer <access token>" -H "Content-Type: application/json" -d "{ \"message\": \"Meldingen din her\", \"organizationCodemunicipalityNumber\": \"integer\", \"municipalityName\": \"string\", \"type\": \"string\"}" |
Example response:
Code Block |
---|
{ "id": "3fa85f648608863f-5717e39a-45624129-b3fc83be-2c963f66afa6c7cfd2701aee", "message": "Dette er et eksempelThis is a test message from create", "organizationCodemunicipalityName": "INFOLAND", "municipalityNumber": 9999 "type": "CUSTOMER" } |
JSON body:
Property | Description | Type: |
---|---|---|
message | The message content that is going to be sent. | String |
organizationNamemunicipalityName | 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 |
...
Code Block |
---|
{ "content": { "body": { "id": "8608863f-e39a-4129-83be-c7cfd2701aee", "message": "This is a test message from create", "organizationCodemunicipalityName": "K9999INFOLANDINFOLAND", "municipalityNumber": 9999 "type": "CUSTOMER" } }, "eventAction": "Created", "eventType": "DistributorMessages" } |
...
Code Block |
---|
[ { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "message": "Dette er et eksempel", "organizationCodemunicipalityName": "INFOLAND", "municipalityNumber": 9999 "type": "CUSTOMER" }, { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "message": "Dette er et eksempel2", "organizationCodemunicipalityName": "INFOLAND", "municipalityNumber": 9999 "type": "CUSTOMER" } ] |