Creating a Report

Usage

Creates a report in the given Web Intelligence document.

Request

POST /documents/<documentID>/reports

Request body (optional):

<report>
    <name>

Where:

  • <name> is a string that specifies the name of the report to be created. If not specified, the service assigns a name to the report automatically.
Response

Response type: application/xml or application/json

The response is a message stating the success or failure of the request.

Example

XML

POST /documents/12782/reports

Response:

<success>
    <message>The resource of type "Report" with identifier "2" has been successfully created.</message>
    <id>2</id>
</success>

The name "Report 2" and the ID "2" have been assigned automatically.

Example

JSON

POST /documents/5152/reports

Request:

{"report":
    {"name":"Chart Report"}
}

Response:

{"success":
    {"message":"The resource of type \"Report\" with identifier \"6\" has been successfully created.",
     "id":6}
}

The ID "6" has been assigned automatically.