Stylesheet-POST

Overview

This method is used to add a stylesheet to an account.

Table 1. Method
Method URL Description
POST /api/v1/account/{accountId}/stylesheet The POST method submits the accountId as part of the Stylesheet call to transform the XML file. The content value must be base64 encoded.
Table 2. Parameters
Name Type Constraints Description
accountId string required The account used to associate to the request.
Sample Request:
"stylesheetName": "Test",
  "stylesheetVersion": "1",
  "contents": <base64encodeddata>
Table 3. Responses
Code Description
201 Successful response
Example:
"contents": <base64encodeddata>
"stylesheetName": "Test",
"stylesheetVersion": "1"
400 Bad request
401 Not Authorized
403 Forbidden
404 Not Found
409 Stylesheet name and version combination already has a stylesheet stored in the database
500 Server error