POST /api/templates/import
Initiate Import

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

prefix
optional

The string all imported templates should begin with.

Validations:

  • Must be a String

associate
optional

Associate to OS's, Locations & Organizations. Options are: always, new or never.

Validations:

  • Must be one of: always, new, never.

force
optional

Update templates that are locked

Validations:

  • Must be one of: true, false, 1, 0.

lock
optional

Lock imported templates

Validations:

  • Must be one of: true, false, 1, 0.

verbose
optional

Show template diff in response

Validations:

  • Must be one of: true, false, 1, 0.

branch
optional

Branch in Git repo.

Validations:

  • Must be a String

repo
optional

Override the default repo from settings.

Validations:

  • Must be a String

filter
optional

Export templates with names matching this regex (case-insensitive; snippets are not filtered).

Validations:

  • Must be a String

negate
optional

Negate the prefix (for purging).

Validations:

  • Must be one of: true, false, 1, 0.

dirname
optional

The directory within Git repo containing the templates

Validations:

  • Must be a String

location_ids
optional

REPLACE locations with given ids

Validations:

  • Must be an array of any type

organization_ids
optional

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type


POST /api/templates/export
Initiate Export

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

metadata_export_mode
optional

Specify how to handle metadata

Validations:

  • Must be one of: refresh, keep, remove.

branch
optional

Branch in Git repo.

Validations:

  • Must be a String

repo
optional

Override the default repo from settings.

Validations:

  • Must be a String

filter
optional

Export templates with names matching this regex (case-insensitive; snippets are not filtered).

Validations:

  • Must be a String

negate
optional

Negate the prefix (for purging).

Validations:

  • Must be one of: true, false, 1, 0.

dirname
optional

The directory within Git repo containing the templates

Validations:

  • Must be a String

location_ids
optional

REPLACE locations with given ids

Validations:

  • Must be an array of any type

organization_ids
optional

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type