Custom Source Packs

Enable a source template

Enable a single source template from a pack. Interpolates parameter placeholders, creates a CustomSourceDeclaration, and records the activation.

post/api/v2/customSourcePacks/enableTemplate

Request

  • Base URL
    https://zeropath.com
  • Auth
    API key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret

Request body

organizationIdstring required
templateIdstring required

The template to enable

parameterValuesobject

Values for template parameter placeholders

globPatternstring

Glob pattern for files this source applies to

sourceTypesstring[]

Source types this declaration applies to

repositoryIdsstring[]

Repository IDs to restrict this source to. When empty, applies org-wide.

Response

Template enabled successfully

instanceIdstring required
declarationIdstring required

Changes

No recorded changes to this operation across all 1 revision of this API.