Create a file
POST {{baseUrl}}/cms/v3/source-code/:environment/content/:path
Creates a file at the specified path in the specified environment. Accepts multipart/form-data content type. Throws an error if a file already exists at the specified path.
Request Body
[{"name"=>"file", "value"=>"<string>", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"createdAt":"\u003cinteger\u003e","folder":"\u003cboolean\u003e","id":"\u003cstring\u003e","name":"\u003cstring\u003e","updatedAt":"\u003cinteger\u003e","archivedAt":"\u003clong\u003e","children":["\u003cstring\u003e","\u003cstring\u003e"],"hash":"\u003cstring\u003e"}