---
title: "Upload a file to a group"
method: POST
path: "/api/v4/groups/{id}/uploads"
tags: ["groups"]
---

# Upload a file to a group

`POST /api/v4/groups/{id}/uploads`

## Request

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

Uploads a file to the specified group. Returns a markdown-formatted link to the file.

## Path parameters

- `id` string, required

## Request body

- PostApiV4GroupsIdUploads: Upload a file to a group
  - `file` string, binary, required: The file to upload

## Response `201`

Upload a file to a group

- APIEntitiesGroupUpload: API_Entities_GroupUpload model
  - `id` integer, required: The ID of the file
  - `alt` string, required: The name of the file
  - `url` string, required: The URL to access the file
  - `full_path` string, required: The full path to the file
  - `markdown` string, required: A markdown-formatted link to the file.

## Other responses

- `400`: Bad request
- `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)
