Repository Context

Get repository context

Read one context definition and its actual assignments by contextId.

post/api/v2/contexts/get

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

Organization ID. Resolved from authentication when omitted.

contextIdstring required

Response

Successful response

idstring required
titlestring nullable required
contextstring required
globPatternstring required
applicableSourceTypesstring[] required

Source types to target. An empty array applies to all source types.

scanPhasesstring[] required

Scan phases to target. Omission preserves phases on update; creation uses the documented default phase set.

allRepositoriesboolean required

True when linked to organization-wide scanner settings.

repositoryIdsstring[] required

Only direct repository assignments; organization scope is not expanded into this array.

Changes

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