POST /api/templates/import
Initiate Import

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

prefix
選填

The string all imported templates should begin with.

Validations:

  • Must be a String

associate
選填

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

Validations:

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

force
選填

Update templates that are locked

Validations:

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

lock
選填

Lock imported templates

Validations:

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

verbose
選填

Show template diff in response

Validations:

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

branch
選填

Branch in Git repo.

Validations:

  • Must be a String

repo
選填

Override the default repo from settings.

Validations:

  • Must be a String

filter
選填

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

Validations:

  • Must be a String

negate
選填

Negate the prefix (for purging).

Validations:

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

dirname
選填

The directory within Git repo containing the templates

Validations:

  • Must be a String

location_ids
選填

將位置取代為特定 ID

Validations:

  • Must be an array of any type

organization_ids
選填

將組織取代為特定 ID。

Validations:

  • Must be an array of any type


POST /api/templates/export
Initiate Export

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

metadata_export_mode
選填

Specify how to handle metadata

Validations:

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

branch
選填

Branch in Git repo.

Validations:

  • Must be a String

repo
選填

Override the default repo from settings.

Validations:

  • Must be a String

filter
選填

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

Validations:

  • Must be a String

negate
選填

Negate the prefix (for purging).

Validations:

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

dirname
選填

The directory within Git repo containing the templates

Validations:

  • Must be a String

location_ids
選填

將位置取代為特定 ID

Validations:

  • Must be an array of any type

organization_ids
選填

將組織取代為特定 ID。

Validations:

  • Must be an array of any type