---
search:
  tags:
    - Storage
    - POST
seo:
  description: >-
    Each file id is granted once. Send the returned headers… Reference for the
    POST /api/admin/storage/upload-url endpoint in the Athena Attack/Defence
    Admin API.
sidebar:
  label: Reserve quota and presign a create-only upload
  badge: POST
title: Reserve quota and presign a create-only upload
type: openapi-operation
---
Each file id is granted once. Send the returned headers with the PUT; the URL signs the exact length and `If-None-Match: *`, so it can never replace stored bytes. Upload again under a new id.

`POST /api/admin/storage/upload-url`

**Request body** (`application/json`, required)

- `fileId` (string, required)
- `prefix` (string, required)
- `contentLength` (integer, required)

Request body example:

```json
{
  "fileId": "string",
  "prefix": "services",
  "contentLength": 1
}
```

**Responses**

- `200` — Success
- `401` — Unauthorized
- `409` — Response for status 409
- `413` — Response for status 413
- `422` — Validation failed
- `500` — Unhandled server error

Response example, 200:

```json
{
  "uploadUrl": "string",
  "headers": {
    "property1": "string",
    "property2": "string"
  }
}
```
