---
title: "PUT /network-policy/subjects/{subject_kind}/{subject_id}/profile"
method: PUT
path: "/network-policy/subjects/{subject_kind}/{subject_id}/profile"
tags: ["Network Policy"]
---

# PUT /network-policy/subjects/{subject_kind}/{subject_id}/profile

`PUT /network-policy/subjects/{subject_kind}/{subject_id}/profile`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/network-policy/subjects/{subject_kind}/{subject_id}/profile`
- Auth: HTTP bearer

## Path parameters

- `subject_kind` string, required
- `subject_id` integer, required

## Request body

- SetProfileRequest
  - `egress` string, nullable: `open`, `restricted`, `none`, or omitted for the kind's default.
  - `ingress` string, nullable

## Response `200`

The profile now in effect

- ProfileResponse
  - `egress` string, required
  - `egress_source` string, required: `default` (the kind's) or `override`.
  - `ingress` string, required
  - `ingress_source` string, required

## Other responses

- `400`: Invalid profile or missing workload
- `401`: Unauthorized
- `403`: Instance administrators only
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 4 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 `500` status
- **2026-10-28** `b8d51a990805`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/network-policy/subjects/:subject_kind/:subject_id/profile/put.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)
