GET
/
settings
Get templates
curl --request GET \
  --url https://{FUSION_HOST.com}/api/templating/settings
{
  "app": "your-app-name",
  "entityDirty": true,
  "hierarchyFields": [
    {
      "field": "product_description",
      "fieldName": "product_description",
      "separator": ";"
    }
  ],
  "id": "<string>"
}

Query Parameters

allRequestParams
any
required

allRequestParams

context
string

The context parameter retrieves templates for the specified application. The parameter format is app:your-app-name. Only the first application listed in the context is displayed even if a comma-delimited list is entered in the parameter.

Example:

"app:your-app-name"

hideStaging
boolean
default:false

This field indicates if the request is set to retrieve published or unpublished (staging) templates. The default of false retrieves published templates. If set to true, the request retrieves unpublished (staging) templates.

showDirtyOnly
boolean
default:false

This field indicates if the request is set to retrieve published or unpublished (staging) templates. The default of false retrieves published templates. If set to true, the request retrieves unpublished (staging) templates.

showPublished
boolean

This field indicates if the request is set to retrieve published or unpublished (staging) templates. If set to true, only published templates are retrieved. If set to false, the request retrieves unpublished (staging) templates.

Response

OK

app
string

The Fusion application name.

Example:

"your-app-name"

entityDirty
boolean

Specifies the status of the entities requested. If false, the template is published. If true, this is the staging version of this template and it contains changes that have not yet been published.

hierarchyFields
object[]
id
string

The version of the application that is sending the results. Because the application configuration can be changed, the version used for the query is helpful information if troubleshooting or investigation is necessary. The format is: "your-app-name:version".