This request will update a given status message.
| URL | https://api.telecomx.dk/iptv/statusmessage/STATUSMESSAGE_ID | ||
|---|---|---|---|
| Method | POST | ||
| Access level | ADMIN. | ||
| Param | STATUSMESSAGE_ID | Id of the status message (24 hex-char string) | |
| Body | _id | Id | Unique document id. |
| name | String | Name/subject of the status message | |
| description | String | Description of the status message | |
| solved | Boolean | If true, the status message has been solved. If false, it is still ongoing | |
| date | Date | Date and time when the status message was added. | |
| author | String | The author shown to the customer, defaults to 'PlayMaker Teamet' | |
| employee | Id | Id of employee who created the status message (ADMIN only) | |
| employeeName | String | Name of employee who created the status message (ADMIN only) | |
https://api.telecomx.dk/iptv/statusmessage/12384658ABCDF
| Document object (JSON) | ||
|---|---|---|
| _id | Id | Unique document id. |
| name | String | Name/subject of the status message |
| description | String | Description of the status message |
| solved | Boolean | If true, the status message has been solved. If false, it is still ongoing |
| date | Date | Date and time when the status message was added. |
| employee | Id | Id of employee who created the status message (ADMIN only) |
| employeeName | String | Name of employee who created the status message. If the requester is not ADMIN, it will show “PlayMaker Teamet” |
| lastUpdated | Date | Date and time when the status message was last updated. |
Note that properties holding no value may be omitted from the object.
{ "_id": "123456789ADBCDEFG", "name": "Alle DR kanaler er nede", "description": "Vi arbejder på sagen", "solved": false, "date": "2020-02-20T08:49:19.626Z", "lastUpdated": "2020-02-20T08:49:19.626Z", "employeeName": "PlayMaker Teamet", }
| Error code | Message | Description |
|---|---|---|
| 404 | not_found | Status message not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |