Updating a Style

Updates a style of a Web Intelligence document.

Request

PUT <webiURL>/documents/{documentId}/styles/{styleId}

Where:
  • {documentId} is the document identifier retrieved from the list of documents
  • {styleId} is the style identifier from the list of styles of the document

Request body:

<style>
    <id>
    <parentId>
    <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

PUT <webiURL>/documents/5022/styles/24

Request body in an XML file:
<style>    
   <id>3</id>
   <parentId>58</parentId>
     <border>
         <top thickness="thin" rgb="#cacad9" style="plain"/>  
         <bottom thickness="thin" rgb="#cacad9" style="plain"/>
         <left thickness="thin" rgb="#cacad9" style="plain"/>
         <right thickness="thin" rgb="#cacad9" style="plain"/>
     </border>
     <background>
         <color rgb="#5175b9"/>
     </background>
     <font size="9" face="Arial" italic="false" bold="true" strikethrough="false"
         underline="false" rgb="#ffffff"/>
     <alignment horizontal="left" vertical="bottom"/>
</style>

Response:

<success>
    <message>The resource of type 'Style' with identifier '24' has been successfully updated.</message>
    <id>24</id>
</success>