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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;createdAt&quot;:&quot;\u003cinteger\u003e&quot;,&quot;folder&quot;:&quot;\u003cboolean\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;updatedAt&quot;:&quot;\u003cinteger\u003e&quot;,&quot;archivedAt&quot;:&quot;\u003clong\u003e&quot;,&quot;children&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;hash&quot;:&quot;\u003cstring\u003e&quot;}