User Tools

Site Tools


api:iptv:statusmessages:create

API : Status messages Create

Introduction

This request will create a given status message.

Request

URL https://api.telecomx.dk/iptv/statusmessage
Method POST
Access level ADMIN.
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

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.
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)

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",
   "author": "PlayMaker Teamet",
   "employee": "123456ABCD",
   "employeeName": "Sven Svendsen"
}

Errors

Error code Message Description
400 bad_request Status message not found in body of request
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/iptv/statusmessages/create.txt · Last modified: 2020/02/21 12:38 by Joakim Andersen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki