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