Adding a Style to a Document

Usage

Adds a style to a Web Intelligence document referenced by its ID.

Request

POST /documents/<documentID>/styles?unit=<unit>

Where:
  • <unit> is an optional parameter of type string that defines the unit of measurement used for all dimensional values such as background width and height. Values are metric (default) , inch and centimeter.

Request body:

<style>
    <border>
    <background>
    <font>
    <alignment>
Response

Response type: application/xml or application/json

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

Example

POST /documents/3422/styles?unit=inch

Request body:

<style>
    <background width="2.3" height="1.6"/>
</style>

Response:

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