Source_Code_Content

Create or update a file

Upserts a file at the specified path in the specified environment. Accepts multipart/form-data content type.

put/cms/v3/source-code/{environment}/content/{path}

Path parameters

environmentstring required

The environment of the file ("draft" or "published").

pathstring required

The file system location of the file.

Response

successful operation

archivedAtinteger

Timestamp of when the object was archived (deleted).

childrenstring[]

If the object is a folder, contains the filenames of the files within the folder.

createdAtinteger required

Timestamp of when the object was first created.

folderboolean required

Determines whether or not this path points to a folder.

hashstring
idstring required

The path of the file in the CMS Developer File System.

namestring required

The name of the file.

updatedAtinteger required

Timestamp of when the object was last updated.

Changes