Adding a Style to a Document

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

Request

POST <webiURL>/documents/{documentId}/styles?unit={unit}

Where:
  • {documentId} is the document identifier retrieved from the list of documents
  • {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>
</style>
Response

Response type: application/xml or application/json

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

Example

POST <webiURL>/documents/3422/styles?unit=inch

Request body in an XML file:

<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>