---
title: "Add a Shield entry to a project"
method: POST
path: "/projects/{project_id}/shield/entries"
tags: ["Shield"]
---

# Add a Shield entry to a project

`POST /projects/{project_id}/shield/entries`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/shield/entries`
- Auth: HTTP bearer

One address, CIDR range or JA4 fingerprint, with the verdict it gets. It
applies from the next snapshot, within minutes.

## Path parameters

- `project_id` integer, required

## Request body

- CreateShieldEntryRequest
  - `expires_at` string, date-time, nullable: When the entry stops applying; omit for never.
  - `ja4` string, nullable: A JA4 fingerprint; exactly one of `network` and `ja4`.
  - `network` string, nullable: An address or CIDR range; exactly one of `network` and `ja4`.
  - `note` string, nullable
  - `verdict` 'allow' | 'log' | 'challenge' | 'block', required: The verdict an operator entry gives what it matches.

## Response `201`

Entry added

- ShieldEntryResponse
  - `created_at` string, date-time, required
  - `created_by` integer, nullable
  - `expires_at` string, date-time, nullable: After this the entry no longer applies; `null` for never.
  - `id` integer, required
  - `ja4` string, nullable: The fingerprint, when the entry names one.
  - `network` string, nullable: The address range, when the entry names one.
  - `note` string, nullable
  - `project_id` integer, nullable
  - `scope` 'platform' | 'project', required: Whose entries: the platform's, or one project's.
  - `verdict` 'allow' | 'log' | 'challenge' | 'block', required: The verdict an operator entry gives what it matches.

## Other responses

- `400`: Invalid network, fingerprint, note or expiry
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Project not found
- `409`: The project has the most entries it may hold
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 6 breaking
  - removed the required property `extensions` from the response with the `400` status
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
  - …2 more
- **2026-10-28** `10fa9e6c6f35`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/shield/entries/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
