ProReport - Preview report permissions

API Url

Used for preview permission for a specific report.

POST
http://localhost:16010/ProMarkREST/rest/ProReport/reports/{id}/permission-results

Permissions: user

Parameter

FieldTypeDescription
idString

Report id.

requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    userProfilesString[]

List of selected user Profiles.

    usersString[]

List of selected users.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    usersObject[]

Collection of users that have access to this report.

      idString

User id

      nameString

User Name

  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": {
"users": [
{
"id": "MGI",
"name": "Matei Iancu"
},
{
"id": "ATO",
"name": "Andre Tores"
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.