User Tools

Site Tools


api:iptv:statusmessages:update

API : Status messages Update

Introduction

This request will update a given status message.

Request

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)

Query examples

https://api.telecomx.dk/iptv/statusmessage/12384658ABCDF

Response

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.

Example - normal

{
   "_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",
}

Errors

Error code Message Description
404 not_found Status message not found
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/iptv/statusmessages/update.txt · Last modified: 2020/07/17 10:40 by Joakim Andersen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki