---
title: "Add API to folder"
method: POST
path: "/v1/folders/{id}/api-links"
tags: ["Folders"]
---

# Add API to folder

`POST /v1/folders/{id}/api-links`

## Request

- Base URL: `http://localhost:4000`
- URL: `http://localhost:4000/v1/folders/{id}/api-links`
- Auth: HTTP bearer

Add an API reference to a folder. The API must exist in the catalog. Duplicate links within the same folder are rejected. Returns the updated folder on success.

## Path parameters

- `id` string, uuid, required

## Request body

- AddApiLinkRequest
  - `link` string, uri, required: API URL reference
  - `apiId` string, uuid: Optional API ID for validation

## Response `200`

API added — updated folder returned

- FolderResponse
  - `id` string, uuid
  - `title` string
  - `iconCodePoint` integer
  - `sortOrder` integer
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `400`: link required
- `401`: Access token required
- `404`: Folder or API not found
- `409`: API already in folder

---

[API](https://skmtc.dev/reqistry/apis/public-apis-mobile-client-api.md) · [All operations](https://skmtc.dev/reqistry/apis/public-apis-mobile-client-api/llms.txt) · [OpenAPI document](https://skmtc.dev/reqistry/apis/public-apis-mobile-client-api/revisions/7f07b9ca718f?raw)
