POST /api/template/import
Initiate Import

參數

參數名字 描述
repo
選填

Import templates from a different repo.

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 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 String