Stylesheet-POST
Overview
This method is used to add a stylesheet to an account.
| 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. |
| Name | Type | Constraints | Description |
|---|---|---|---|
| accountId | string | required | The account used to associate to the request. |
Sample
Request:
"stylesheetName": "Test",
"stylesheetVersion": "1",
"contents": <base64encodeddata>| Code | Description |
|---|---|
| 201 | Successful
response Example: |
| 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 |