Creating a Custom Palette

Adds a custom palette to the current Web Intelligence document.

Request

POST <webiURL>/documents/{documentId}/palettes

Where:

  • {documentId} is the document identifier retrieved from the list of documents

Request body:

<palette>
    <name>
    <colors>
        <color>
Response

Response type: application/xml or application/json

The response is a message stating the success or failure of the request. An ID is assigned to the new custom palette.

Example

POST <webiURL>/documents/1234/palettes

Request body:

<palette>
  <name>custom palette 2</name>
  <colors>
    <color rgb="#00ff00" alpha="50"/>
    <color rgb="#00fa00" alpha="50"/>
  </colors>
</palette>

Response:

<success> 
    <message>The resource of type "Palette" with identifier "ff6079a2-df7f-4df6-8278-9c5dd6246b2e" has been successfully created.</message>  
    <id>ff6079a2-df7f-4df6-8278-9c5dd6246b2e</id> 
</success>