---
title: "Create Code Scan Prop Ignore"
method: POST
path: "/v1/projects/{project_id}/code-scan/prop-ignores"
tags: ["code-scan"]
---

# Create Code Scan Prop Ignore

`POST /v1/projects/{project_id}/code-scan/prop-ignores`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/projects/{project_id}/code-scan/prop-ignores`
- Auth: none declared

Ignore a whole component (`prop` omitted) or one (component, prop) (Developer+).

IDEMPOTENT: a re-POST of the same triple returns the EXISTING rule with a 200 —
never a duplicate, never a 409. A null-prop rule and a string-prop rule coexist
on the same component (distinct triples).

## Path parameters

- `project_id` string, required

## Request body

- CodeScanIgnoreIn
  - `component` string, required: Component/tag name, as it appears in the inventory.
  - `prop` string, nullable: Prop to ignore. OMIT (null) to ignore the WHOLE component (every prop); a string ignores just that (component, prop).

## Response `200`

Successful Response

- CodeScanIgnoreOut
  - `uuid` string, required
  - `component` string, required
  - `prop` string, nullable: null = the whole component is ignored; a string = that single prop.
  - `created_at` string, date-time, required
  - `created_by` CodeScanRunActor: Display-ready attribution — the dashboard renders the `label`, never the raw `uuid` (which stays for an audit join). `label` is a human name resolved at BOUNDED per-page cost (a user's name/email, or a key's `name · prefix…last4`). A uuid that no longer resolves keeps its `type`/`uuid` and gets an explicit label (`unknown user` / `revoked or deleted key`) rather than vanishing — the attribution stays true, only the human name is gone.
    - `type` string, required: `user` or `api_key`.
    - `uuid` string, required
    - `label` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonenta/apis/sonenta-api.md) · [All operations](https://skmtc.dev/sonenta/apis/sonenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonenta/apis/sonenta-api/revisions/f853ea49fb05?raw)
