Create Stylesheet
POST {{protocol}}://{{instance_zuid}}.{{instances_api_url}}/{{api_version}}/web/stylesheets
| name | description |
|---|---|
| code | [string] Required. Mixed string of html, parsley, inline css, js etc. |
| filename | [string] Required. Unique. No spaces or special chars allowed. |
| type | [string] Required. text/sass, text/scss, text/less, text/css |
Request Body
{"code"=>nil, "filename"=>"test09812341.scss", "type"=>"text/scss"}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"_meta":{"timestamp":"2019-09-05T18:56:26.6323238Z","totalResults":1,"start":0,"offset":0,"limit":1},"data":{"ZUID":"10-8091c9aec4-pwrrrj","status":"live","type":"text/css","fileName":"another.css","code":"body{margin:25px;background-color:#f0f0f0;font-family:arial,sans-serif;font-size:14px}h1{font-size:35px;font-weight:normal;margin-top:5px}.someclass{color:red}#someid{color:green}","lastEditedID":21474570,"template":1,"module":0,"plugin":0,"version":1,"createdAt":"2019-09-05T18:56:25.6528675Z","updatedAt":"2019-09-05T18:56:25.6529051Z"}}