Messages
add message
POST
https://ushahididocs.api.ushahidi.io/api/v3/messages
Request Body
Name | Type | Description |
---|---|---|
parent_id | String | The parent identifier |
datetime | String | Date and time |
user_id | String | user ID |
title | String | Massage title |
data_source_message_id | String | Data source message identifier |
message | String | The main message you would like to add |
contact_id | Integer | The post contact identifier |
data_source | String | Data source |
post_id | String | post ID |
notification_post_id | String | Notification post identifier |
additional_data | String | Additional information |
direction | String | Message direction e.g. "outgoing" |
status | String | Message status |
type | String | Message type e.g. "sms" |
contact_type | String | Contact type |
contact | String | Message contact |
edit message
PUT
https://ushahididocs.api.ushahidi.io/api/v3/messages/18
Request Body
Name | Type | Description |
---|---|---|
parent_id | String | The parent identifier |
datetime | String | Date and time |
user_id | String | user ID |
title | String | Massage title |
data_source_message_id | String | Data source message identifier |
message | String | The main message you would like to add |
contact_id | Integer | The post contact identifier |
data_source | String | Data source |
post_id | String | post ID |
notification_post_id | String | Notification post identifier |
additional_data | String | Additional information |
direction | String | Message direction e.g. "outgoing" |
status | String | Message status |
type | String | Message type e.g. "sms" |
contact_type | String | Contact type |
contact | String | Message contact |