Create or update a file
PUT {{baseUrl}}/cms/v3/source-code/:environment/content/:path
Upserts a file at the specified path in the specified environment. Accepts multipart/form-data content type.
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"}