---
title: "Add service to namespace (idempotent)"
method: PUT
path: "/api/v1alpha/namespaces/{namespace}/services/{service}"
tags: ["Namespaces"]
---

# Add service to namespace (idempotent)

`PUT /api/v1alpha/namespaces/{namespace}/services/{service}`

Ensures the service is registered under the namespace. Creates it and returns 201 if new; returns 200 if it already existed.

## Path parameters

- `namespace` string, required
- `service` string, required

## Response `200`

Service already existed

## Other responses

- `201` — Service registered
- `401` — Unauthorized
- `403` — Forbidden - requires MANAGE_CI

---

[API](https://skmtc.net/hail-is/apis/hail-ci-service.md) · [All operations](https://skmtc.net/hail-is/apis/hail-ci-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hail-is/hail-ci-service/versions/37d6dddb7b5a/schema)
