Custom Sources

Update custom source declaration

Update an existing custom source declaration. Only declarationId is required. If description is changed, the LLM guard re-validates it. Pass repositoryIds as an empty array to make it org-wide.

post/api/v2/customSources/update

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
declarationIdstring required
namestring
descriptionstring

Natural language description. If changed, the LLM guard re-validates it.

globPatternstring
repositoryIdsstring[]

Repository IDs to restrict this source to; an empty array makes it org-wide. Omit to keep the current scope.

scope'allRepositories' | 'repositories' | 'tags'

Optional explicit scope. Use tags with tagIds to switch the source to tag-only scope.

tagIdsstring[]

Tag IDs to associate with this source

Response

Source declaration updated successfully

idstring required
namestring required
descriptionstring required
globPatternstring required
enabledboolean required
repositoryIdsstring[] required
scope'allRepositories' | 'repositories' | 'tags' required

Where the declaration applies: every repository, the listed repositories, or repositories carrying its tags.

createdAtstring date-time required
updatedAtstring date-time required

Changes

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