POST /api/template/import
Initiate Import

Параметры

Имя параметра Описание
verbose
необязательно

Set verbosity of import

Validations:

  • Must be 'true' or 'false' or '1' or '0'

repo
необязательно

Override the default repo from settings.

Validations:

  • Must be String

branch
необязательно

Branch in Git repo.

Validations:

  • Must be String

prefix
необязательно

The string all imported templates should begin with.

Validations:

  • Must be String

dirname
необязательно

The directory within the git tree containing the templates.

Validations:

  • Must be String

filter
необязательно

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

Validations:

  • Must be String

negate
необязательно

Negate the prefix (for purging).

Validations:

  • Must be 'true' or 'false' or '1' or '0'

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 'true' or 'false' or '1' or '0'


POST /api/template/export
Initiate Export

Параметры

Имя параметра Описание
verbose
необязательно

Set verbosity of export

Validations:

  • Must be 'true' or 'false' or '1' or '0'

repo
необязательно

Override the default repo from settings

Validations:

  • Must be String

branch
необязательно

Branch in Git repo.

Validations:

  • Must be String

filter
необязательно

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

Validations:

  • Must be String

negate
необязательно

Negate the prefix (for purging).

Validations:

  • Must be 'true' or 'false' or '1' or '0'

metadata_export_mode
необязательно

Specify how to handle metadata

Validations:

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

dir
необязательно

The directory within Git repo

Validations:

  • Must be String