Updates the CSS attached to a Web Intelligence document.
PUT <webiURL>/documents/{documentId}/css
Request type: text/css
Request body: a CSS file
Response type: application/xml or application/json
The response is a message stating the success or failure of the request.
curl -i -X "PUT" -H "accept:application/xml" -H "content-type:text/css" -H X-SAP-LogonToken:"""%tokenValue%""" -d "@css2.xml" "http://localhost:6405/biprws/raylight/v1/documents/5022/css"
Request body described in file css2.xml:
FORM CELL.ia-form-header { /* Settings for header cells in a form */ background-fill:color; font-size:9pt; color:#1D7DB3; background-color:#f8fbfc; font-weight-bold:yes; never-alternate:yes; } CELL.ia-form-separator { /* Settings for cells separating two form instances */ background-fill:none; /* Invisible cell making the separation */ border-top-style:none; border-right-style:none; border-bottom-style:none; border-left-style:none; border-top-width:0; border-right-width:0; border-bottom-width:0; border-left-width:0; }
Response:
<success> <message>The resource of type 'Document' with identifier '5022' has been successfully updated.</message> <id>5022</id> </success>