Security Compass

Remove a project-to-repository mapping

Detach a mapping and its queued sync work. Generated natural-language rules are deleted only when this was the last mapping targeting the repository; otherwise they are kept for the remaining mappings and the response reports deletedRuleCount 0.

post/api/v2/securityCompass/removeProjectMapping

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

Organization that owns the integration.

mappingIdstring required

cuid of the project mapping to remove. Obtainable via securityCompass.getIntegration.

Response

Removal result

successboolean required
deletedRuleCountinteger required

Number of generated rules deleted. Non-zero only when the removed mapping was the last one targeting its repository; otherwise the rules are kept for the remaining mappings.

Changes

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