---
title: "Start a task to recalculate repository size for a project"
method: POST
path: "/api/v4/projects/{id}/repository_size"
tags: ["projects"]
---

# Start a task to recalculate repository size for a project

`POST /api/v4/projects/{id}/repository_size`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/repository_size`
- Auth: none declared

This feature was introduced in GitLab 15.0.

## Path parameters

- `id` string, required

## Response `201`

Start a task to recalculate repository size for a project

## Other responses

- `401`: Unauthorized
- `403`: Unauthenticated

---

[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)
