---
title: "Assign Label to Screenshots"
method: POST
path: "/projects/{projectId}/labels/{labelId}/screenshots"
tags: ["Labels"]
---

# Assign Label to Screenshots

`POST /projects/{projectId}/labels/{labelId}/screenshots`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/projects/{projectId}/labels/{labelId}/screenshots`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-api-v2/docs/projects/:projectId/labels/:labelId/screenshots/post.ts> (a function with typed inputs; its response is checked against the schema)

**Required scopes:** `project.source.file` (Read and Write).

## Path parameters

- `projectId` integer, required
- `labelId` integer, required

## Request body

- LabelScreenshotAssignForm
  - `screenshotIds` integer[], required: Screenshot Identifiers. Get via [List Screenshots](#operation/api.projects.screenshots.getMany) __Note:__ You can assign up to 500 screenshots at a time.

## Response `200`

Label was successfully assigned to Screenshots

- ScreenshotCollectionResource: Base schema of resource container. Container is a wrapper object that contains payload in required `data` property and provides space for adding any other metadata.
  - `data` ScreenshotResource[], required
    - `data` Screenshot, required
      - `id` integer
      - `userId` integer
      - `url` string
      - `webUrl` string
      - `name` string
      - `size` object
        - `width` integer
        - `height` integer
      - `tagsCount` integer
      - `tags` ScreenshotTag[]
        - `id` integer
        - `screenshotId` integer
        - `stringId` integer
        - `position` ScreenshotTagPosition: Position Response Model
          - `x` integer
          - `y` integer
          - `width` integer
          - `height` integer
        - `createdAt` string, date-time
      - `labels` integer[]: [DEPRECATED]. Use field `labelIds` instead.
      - `labelIds` integer[]
      - `createdAt` string, date-time
      - `updatedAt` string, date-time
  - `pagination` Pagination: Pagination Response Model
    - `offset` integer
    - `limit` integer

## Other responses

- `400`: Invalid Request Parameters
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Project or label with specified id was not found
- `405`: Method Not Allowed
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crowdin/apis/crowdin-api-v2.md) - [All operations](https://skmtc.dev/crowdin/apis/crowdin-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/crowdin/apis/crowdin-api-v2/revisions/27aae7751699?raw)
