> ## Documentation Index
> Fetch the complete documentation index at: https://composio-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Siteleaf

> A friendly CMS for static sites. Powered by Jekyll, with GitHub sync, and a complete API.

![Siteleaf logo](https://mintcdn.com/composio-preview/B09iGux45A5cYDuO/images/toolkits/siteleaf.svg?fit=max\&auto=format\&n=B09iGux45A5cYDuO\&q=85\&s=fb729b153fe8af4aba184f0b7d5430e1)

* **Category:** developer tools
* **Auth:** API\_KEY, BASIC
* **Composio-managed OAuth available?** N/A
* **Tools:** 35
* **Triggers:** 0
* **Slug:** `SITELEAF`
* **Version:** 20261030\_00

## Tools

> [accordion] Cancel Job
>
> **Slug:** `SITELEAF_CANCEL_JOB`
>
> Cancel an active Siteleaf job by job ID. This irreversibly requests that the job stop.
>
> #### Input Parameters
>
> **job\_id** `string` *required*
>
> Active Siteleaf job ID, such as one returned by publishing.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Collection
>
> **Slug:** `SITELEAF_CREATE_COLLECTION`
>
> Create a content collection in a Siteleaf site.
>
> #### Input Parameters
>
> **path** `string`
>
> Collection path; Siteleaf derives one from the title when omitted.
>
> **title** `string` *required*
>
> Collection title.
>
> **output** `boolean`
>
> Whether Siteleaf should generate output pages for this collection.
>
> **site\_id** `string` *required*
>
> Site that will contain the collection.
>
> **metadata** `object`
>
> Collection custom metadata.
>
> **permalink** `string`
>
> Collection permalink template.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Collection File
>
> **Slug:** `SITELEAF_CREATE_COLLECTION_FILE`
>
> Upload one static file to a Siteleaf collection identified by its path. This action cannot create collection documents or content files with YAML front matter.
>
> #### Input Parameters
>
> **file** `object` *required*
>
> One static file to upload. This endpoint is only for static files and cannot create collection documents or content files with YAML front matter.
>
> **site\_id** `string` *required*
>
> Site containing the collection.
>
> **collection\_path** `string` *required*
>
> Path identifying the collection where the static file will be uploaded.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Document
>
> **Slug:** `SITELEAF_CREATE_DOCUMENT`
>
> Create a document in a Siteleaf collection with content, taxonomy, metadata, and visibility.
>
> #### Input Parameters
>
> **body** `string`
>
> Document body content.
>
> **date** `string`
>
> Document date in ISO 8601 format.
>
> **path** `string`
>
> Document path relative to the collection.
>
> **tags** `array`
>
> Tags assigned to the document.
>
> **title** `string` *required*
>
> Document title.
>
> **site\_id** `string` *required*
>
> Site containing the collection.
>
> **metadata** `object`
>
> Document custom metadata.
>
> **permalink** `string`
>
> Custom document permalink.
>
> **categories** `array`
>
> Categories assigned to the document.
>
> **visibility** `string ("visible" | "hidden")`
>
> Initial document visibility; provider docs list visible|hidden for writes, draft is a read-only state.
>
> **collection\_path** `string` *required*
>
> Collection that will contain the document.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Page
>
> **Slug:** `SITELEAF_CREATE_PAGE`
>
> Create a page in a Siteleaf site.
>
> #### Input Parameters
>
> **body** `string`
>
> Page body content.
>
> **date** `string`
>
> Page date in ISO 8601 format.
>
> **path** `string`
>
> Page path within the site.
>
> **title** `string` *required*
>
> Page title.
>
> **site\_id** `string` *required*
>
> Site that will contain the page.
>
> **metadata** `object`
>
> Page custom metadata.
>
> **permalink** `string`
>
> Custom permalink.
>
> **visibility** `string ("visible" | "hidden")`
>
> Initial page visibility.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Role
>
> **Slug:** `SITELEAF_CREATE_ROLE`
>
> Grant a Siteleaf user an admin, publisher, or writer role on a site.
>
> #### Input Parameters
>
> **kind** `string ("admin" | "publisher" | "writer")` *required*
>
> Role level to grant: admin, publisher, or writer.
>
> **site\_id** `string` *required*
>
> Site on which access is granted.
>
> **user\_id** `string` *required*
>
> Siteleaf user receiving access.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Site
>
> **Slug:** `SITELEAF_CREATE_SITE`
>
> Create a Siteleaf site with its domain, timezone, metadata, and defaults.
>
> #### Input Parameters
>
> **empty** `boolean`
>
> Create the site without Siteleaf starter content when true.
>
> **title** `string` *required*
>
> Human-readable site title.
>
> **domain** `string` *required*
>
> Domain assigned to the site.
>
> **defaults** `array`
>
> Jekyll default value definitions applied to scoped content.
>
> **metadata** `object`
>
> Arbitrary site-level custom metadata.
>
> **timezone** `string`
>
> Site timezone name; defaults to UTC.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Collection
>
> **Slug:** `SITELEAF_DELETE_COLLECTION`
>
> Permanently delete a Siteleaf collection by site ID and collection path. This cannot be undone.
>
> #### Input Parameters
>
> **site\_id** `string` *required*
>
> ID of the Siteleaf site containing the collection.
>
> **collection\_path** `string` *required*
>
> Path of the collection to permanently delete.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Document
>
> **Slug:** `SITELEAF_DELETE_DOCUMENT`
>
> Permanently delete a Siteleaf document by ID. This cannot be undone.
>
> #### Input Parameters
>
> **document\_id** `string` *required*
>
> ID of the document to permanently delete.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Page
>
> **Slug:** `SITELEAF_DELETE_PAGE`
>
> Permanently delete a Siteleaf page by ID. This cannot be undone.
>
> #### Input Parameters
>
> **page\_id** `string` *required*
>
> ID of the Siteleaf page to permanently delete.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Role
>
> **Slug:** `SITELEAF_DELETE_ROLE`
>
> Delete a Siteleaf role by ID, removing the user's access to its site.
>
> #### Input Parameters
>
> **role\_id** `string` *required*
>
> ID of the Siteleaf role to delete, removing the user's site access.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Site
>
> **Slug:** `SITELEAF_DELETE_SITE`
>
> Permanently delete a Siteleaf site by ID. This cannot be undone.
>
> #### Input Parameters
>
> **site\_id** `string` *required*
>
> ID of the Siteleaf site to permanently delete.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Source File
>
> **Slug:** `SITELEAF_DELETE_SOURCE`
>
> Permanently delete one raw source file from a Siteleaf site. Directories and \_config.yml are protected and cannot be deleted.
>
> #### Input Parameters
>
> **site\_id** `string` *required*
>
> ID of the Siteleaf site containing the source file.
>
> **source\_name** `string` *required*
>
> Relative source filename or nested file path to permanently delete. Directories and \_config.yml cannot be deleted.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Collection
>
> **Slug:** `SITELEAF_GET_COLLECTION`
>
> Get a collection by site ID and collection path.
>
> #### Input Parameters
>
> **site\_id** `string` *required*
>
> Site containing the collection.
>
> **collection\_path** `string` *required*
>
> Existing collection path.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Current User
>
> **Slug:** `SITELEAF_GET_CURRENT_USER`
>
> Return the Siteleaf user authenticated by the connected API key.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Document
>
> **Slug:** `SITELEAF_GET_DOCUMENT`
>
> Get a Siteleaf document by ID.
>
> #### Input Parameters
>
> **document\_id** `string` *required*
>
> Siteleaf document ID.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Job
>
> **Slug:** `SITELEAF_GET_JOB`
>
> Get the complete buffered status stream for a Siteleaf job, including all status events and the latest status details. The call waits until Siteleaf closes the event stream.
>
> #### Input Parameters
>
> **job\_id** `string` *required*
>
> Siteleaf job ID, such as one returned by publishing a site.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Page
>
> **Slug:** `SITELEAF_GET_PAGE`
>
> Get a Siteleaf page by ID.
>
> #### Input Parameters
>
> **page\_id** `string` *required*
>
> Siteleaf page ID.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Role
>
> **Slug:** `SITELEAF_GET_ROLE`
>
> Get a Siteleaf site-access role by ID.
>
> #### Input Parameters
>
> **role\_id** `string` *required*
>
> Siteleaf role ID.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Site
>
> **Slug:** `SITELEAF_GET_SITE`
>
> Get one Siteleaf site by ID, including its settings and current or most recent preview, publish, and synchronization job states.
>
> #### Input Parameters
>
> **site\_id** `string` *required*
>
> Siteleaf site ID.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Site Taxonomy
>
> **Slug:** `SITELEAF_GET_SITE_TAXONOMY`
>
> Return the unique post tags and categories used by a Siteleaf site.
>
> #### Input Parameters
>
> **site\_id** `string` *required*
>
> Site whose post taxonomy should be read.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Source
>
> **Slug:** `SITELEAF_GET_SOURCE`
>
> Get raw source-file metadata or list a source directory for a Siteleaf site.
>
> #### Input Parameters
>
> **site\_id** `string` *required*
>
> Site whose source tree should be read.
>
> **source\_name** `string`
>
> File or directory path; omit to list the source root.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Collection Files
>
> **Slug:** `SITELEAF_LIST_COLLECTION_FILES`
>
> Search and list static files in a Siteleaf collection with sorting and agent-controlled pagination.
>
> #### Input Parameters
>
> **sort** `string`
>
> Sort as field-asc or field-desc, such as filename-asc or created\_at-desc.
>
> **query** `string`
>
> Search files by filename.
>
> **site\_id** `string` *required*
>
> Site containing the collection.
>
> **per\_page** `integer`
>
> Number of files to request in this page; Siteleaf documents no maximum.
>
> **next\_cursor** `string`
>
> Opaque continuation cursor returned by a previous call; omit for the first page.
>
> **collection\_path** `string` *required*
>
> Collection path.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Collections
>
> **Slug:** `SITELEAF_LIST_COLLECTIONS`
>
> List content collections in a Siteleaf site with agent-controlled pagination.
>
> #### Input Parameters
>
> **site\_id** `string` *required*
>
> Site whose collections should be listed.
>
> **per\_page** `integer`
>
> Number of collections to request in this page; Siteleaf documents no maximum.
>
> **next\_cursor** `string`
>
> Opaque continuation cursor returned by a previous call; omit for the first page.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Documents
>
> **Slug:** `SITELEAF_LIST_DOCUMENTS`
>
> Search and list documents in a Siteleaf collection with visibility, extension, sorting, and pagination filters.
>
> #### Input Parameters
>
> **sort** `string`
>
> Sort as field-asc or field-desc, such as title-asc or created\_at-desc.
>
> **query** `string`
>
> Search document titles and paths.
>
> **site\_id** `string` *required*
>
> Site containing the collection.
>
> **per\_page** `integer`
>
> Number of documents to request in this page; Siteleaf documents no maximum.
>
> **extensions** `string`
>
> Comma-separated filename extensions.
>
> **visibility** `string ("visible" | "hidden" | "draft")`
>
> Filter documents by visibility.
>
> **next\_cursor** `string`
>
> Opaque continuation cursor returned by a previous call; omit for the first page.
>
> **collection\_path** `string` *required*
>
> Collection whose documents should be listed.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Pages
>
> **Slug:** `SITELEAF_LIST_PAGES`
>
> Search and list pages in a Siteleaf site with visibility, extension, sorting, and pagination filters.
>
> #### Input Parameters
>
> **sort** `string`
>
> Sort as field-asc or field-desc, such as title-asc or created\_at-desc.
>
> **query** `string`
>
> Search page titles and paths.
>
> **site\_id** `string` *required*
>
> Site whose pages should be listed.
>
> **per\_page** `integer`
>
> Number of pages to request in this page; Siteleaf documents no maximum.
>
> **extensions** `string`
>
> Comma-separated filename extensions; Siteleaf supports markdown aliases.
>
> **visibility** `string ("visible" | "hidden")`
>
> Filter pages by visibility.
>
> **next\_cursor** `string`
>
> Opaque continuation cursor returned by a previous call; omit for the first page.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Sites
>
> **Slug:** `SITELEAF_LIST_SITES`
>
> List sites accessible to the connected Siteleaf account, with optional sorting and agent-controlled pagination.
>
> #### Input Parameters
>
> **sort** `string`
>
> Sort expression in field-asc or field-desc form.
>
> **per\_page** `integer`
>
> Number of sites to request in this page; Siteleaf documents no maximum.
>
> **next\_cursor** `string`
>
> Opaque continuation cursor returned by a previous call; omit for the first page.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Site Users
>
> **Slug:** `SITELEAF_LIST_SITE_USERS`
>
> List users who have access to a Siteleaf site with agent-controlled pagination.
>
> #### Input Parameters
>
> **site\_id** `string` *required*
>
> Site whose users should be listed.
>
> **per\_page** `integer`
>
> Number of users to request in this page; Siteleaf documents no maximum.
>
> **next\_cursor** `string`
>
> Opaque continuation cursor returned by a previous call; omit for the first page.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Publish Site
>
> **Slug:** `SITELEAF_PUBLISH_SITE`
>
> Start an asynchronous compile-and-publish job for a Siteleaf site and return its job ID. This publishes externally visible site content and does not wait for job completion.
>
> #### Input Parameters
>
> **site\_id** `string` *required*
>
> ID of the Siteleaf site to publish.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Collection
>
> **Slug:** `SITELEAF_UPDATE_COLLECTION`
>
> Update at least one of a collection's title, path, permalink, output behavior, or metadata.
>
> #### Input Parameters
>
> **title** `string`
>
> Replacement collection title.
>
> **output** `boolean`
>
> Whether collection documents generate output.
>
> **site\_id** `string` *required*
>
> Site containing the collection.
>
> **metadata** `object`
>
> Replacement collection custom metadata object.
>
> **new\_path** `string`
>
> Replacement collection path.
>
> **permalink** `string`
>
> Replacement permalink template.
>
> **collection\_path** `string` *required*
>
> Current collection path used to locate it.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Document
>
> **Slug:** `SITELEAF_UPDATE_DOCUMENT`
>
> Update at least one of a document's content, path, taxonomy, visibility, metadata, or date.
>
> #### Input Parameters
>
> **body** `string`
>
> Replacement document body content.
>
> **date** `string`
>
> Replacement document date in ISO 8601 format.
>
> **path** `string`
>
> Replacement document path.
>
> **tags** `array`
>
> Replacement tags assigned to the document.
>
> **title** `string`
>
> Replacement document title.
>
> **metadata** `object`
>
> Replacement document custom metadata object.
>
> **permalink** `string`
>
> Replacement custom permalink.
>
> **categories** `array`
>
> Replacement categories assigned to the document.
>
> **visibility** `string ("visible" | "hidden")`
>
> Replacement document visibility; provider docs list visible|hidden for writes, draft is a read-only state.
>
> **document\_id** `string` *required*
>
> Document to update.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Page
>
> **Slug:** `SITELEAF_UPDATE_PAGE`
>
> Update at least one of a page's content, path, visibility, metadata, or publication date.
>
> #### Input Parameters
>
> **body** `string`
>
> Replacement page body content.
>
> **date** `string`
>
> Replacement page date in ISO 8601 format.
>
> **path** `string`
>
> Replacement page path.
>
> **title** `string`
>
> Replacement page title.
>
> **page\_id** `string` *required*
>
> Page to update.
>
> **metadata** `object`
>
> Replacement page custom metadata object.
>
> **permalink** `string`
>
> Replacement custom permalink.
>
> **visibility** `string ("visible" | "hidden")`
>
> Replacement page visibility.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Role
>
> **Slug:** `SITELEAF_UPDATE_ROLE`
>
> Change an existing Siteleaf role to admin, publisher, or writer.
>
> #### Input Parameters
>
> **kind** `string ("admin" | "publisher" | "writer")` *required*
>
> Replacement role level: admin, publisher, or writer.
>
> **role\_id** `string` *required*
>
> Role to change.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Site
>
> **Slug:** `SITELEAF_UPDATE_SITE`
>
> Update at least one of a site's title, domain, timezone, metadata, or Jekyll content defaults. Hosting credentials and repository sync are intentionally not accepted as agent inputs.
>
> #### Input Parameters
>
> **title** `string`
>
> Replacement site title.
>
> **domain** `string`
>
> Replacement site domain.
>
> **site\_id** `string` *required*
>
> Siteleaf site ID.
>
> **defaults** `array`
>
> Replacement Jekyll content default definitions.
>
> **metadata** `object`
>
> Replacement site-level custom metadata object.
>
> **timezone** `string`
>
> Replacement site timezone.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create or Replace Source File
>
> **Slug:** `SITELEAF_UPSERT_SOURCE`
>
> Create or replace one raw source file in a Siteleaf site.
>
> #### Input Parameters
>
> **file** `object` *required*
>
> File content to upload as the new contents of the source file.
>
> **site\_id** `string` *required*
>
> ID of the Siteleaf site where the source file will be stored.
>
> **source\_name** `string` *required*
>
> Relative filename or nested path for the source file to create or replace.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not
