ProReport - Update report instance

API Url

Used for updating a report instance: either temporary state (save to repository) or other attributes.

PUT
http://localhost:16010/ProMarkREST/rest/ProReport/repository/{id}

Permissions: user

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    savedReportsObject[]

Object with report instances.

      descString

Description of the report instance.

      expiryDate

Date when report will stop being available in the repository.

      fileIdString

Unique identifier of the report files (not updatable). Needed when opening reports.

      idString

Unique identifier of the report instance (not updatable).

      parentIdString

Unique identifier of the report used when running this instance (not updatable).

      recurrentBoolean

true=Report is part of a recurrence series (not updatable).

      reportTypeString

Report type (0=Classic report, 1=Excel report, 2=Host report).

      runTimeDatetime

Date and time when report was executed (not updatable). If 'null', the report was not yet executed (delayed execution).

      privateBoolean

true=Report is visible only by Owner, Administrator and shared list of users.

      sharedWithoptionalString

A list of users ids of users that have access to the report.

Path parameters

FieldTypeDescription
idString

Unique identifier of the report instance.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  errorCodeNumber

Error code.

  errorMessageString

Error description.

Error example:

HTTP/1.1 404 Not found
{
"response": {
"errorCode": 285,
"errorMessage": "The report was not found. Maybe it was deleted by another user."
}
}