Bulletins - Get all bulletins.

API Url

Use it for returning the bulletins.

GET
http://localhost:16010/ProMarkREST/rest/Bulletins/bulletins

Permissions: user

Query parameters

FieldTypeDescription
dateoptionalDate

Date of the bulletin. Defaul = TODAY.

deptIdoptionalString

List of departments (separated by ',').

expandoptionalLogical

TRUE = show the body of the bulletin(HTML).

fieldsoptionalString

Fields to show.

groupIdoptionalString

List of groups (separated by ',').

includeInactiveoptionalLogical

TRUE = include also the inactive bulletins.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    bulletinsObject[]

Collection of bulletins.

      bodyString

The content of the bulletin.

      changedDate

The date when the bulletin was last time changed.

      changedByString

The id of the user who last changed the bulletin.

      contextObject[]

Collection of data about departments/groups.

        descString

Description of department/group.

        idString

The id of department/group.

      draftLogical

True = the bulletin is just a draft.

      fromDate

From when the bulletin is active.

      idInteger

The id of the bulletin.

      previewString

A part of the bulletin.

      titleString

The title of the bulletin

      toDate

End date

      typeInteger

To whom the bulletin is addressed(0=Default, 1=Company, 2=Department, 3=Group).

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"bulletins": [{
"id": 2163334059,
"title": " Bulletin 1",
"type": 2,
"from": "2019-01-01",
"to": "2019-05-12",
"draft": false,
"preview": "The...",
"changed": "2019-02-14",
"changedBy": "MVE",
"context": [{
"id": "MFA_AND",
"desc": "Warehouse Transport & Spedition"
}]
},
{
"id": 2163333857,
"title": " test 1/28 48 ",
"type": 1,
"from": "2019-01-01",
"to": "2019-04-12",
"draft": false,
"preview": "test ghjjkjkljhgfd dfsafds fds fds fdsafdsa",
"changed": "2019-02-14",
"changedBy": "TSA"
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  errorCodeNumber

Error code.

  errorMessageString

Error description.