---
title: "Creates a storage limit exclusion for a Namespace"
method: POST
path: "/api/v4/namespaces/{id}/storage/limit_exclusion"
tags: ["namespaces"]
---

# Creates a storage limit exclusion for a Namespace

`POST /api/v4/namespaces/{id}/storage/limit_exclusion`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/namespaces/{id}/storage/limit_exclusion`
- Auth: none declared

Creates a Namespaces::Storage::LimitExclusion

## Path parameters

- `id` integer, required

## Request body

- PostApiV4NamespacesIdStorageLimitExclusion: Creates a storage limit exclusion for a Namespace
  - `reason` string, required: The reason the Namespace is being excluded

## Response `201`

Creates a storage limit exclusion for a Namespace

- APIEntitiesNamespacesStorageLimitExclusion: API_Entities_Namespaces_Storage_LimitExclusion model
  - `id` integer, required
  - `namespace_id` integer, required
  - `namespace_name` string, required
  - `reason` string, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found

---

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