---
title: "Add Labels (POST)"
method: POST
path: "/v1/fileinfo/files/{fileId}/labels"
tags: ["Attributes"]
---

# Add Labels (POST)

`POST /v1/fileinfo/files/{fileId}/labels`

## Request

- Base URL: `api.tetrascience.com` (relative, and the document’s source URL is not known)
- URL: `api.tetrascience.com/v1/fileinfo/files/{fileId}/labels`
- Auth: API key in header `ts-auth-token` and API key in header `x-org-slug`

Add custom labels to a file for categorization, organization, and enhanced searchability within the Data Lake. Use this endpoint when you need to tag files for better organization and filtering.

## Path parameters

- `fileId` string, uuid, required

## Query parameters

- `noPropagate` boolean

## Headers

- `x-org-slug` string, required

## Request body

- object[]
  - `name` string, required
  - `value` string, required

## Response `200`

200

- object[]
  - `name` string
  - `value` string

## Other responses

- `401`: 401
- `404`: 404
- `500`: 500

---

[API](https://skmtc.dev/tetrascience/apis/tetra-data-lake.md) - [All operations](https://skmtc.dev/tetrascience/apis/tetra-data-lake/llms.txt) - [OpenAPI document](https://skmtc.dev/tetrascience/apis/tetra-data-lake/revisions/e1f7bbe716ed?raw)
