---
schema: rendered-html/v1
title: "Operations with Specific Values in the State Bundle | Developer Portal for YouTrack and Hub Documentation"
source_url: https://www.jetbrains.com/help/youtrack/devportal/operations-api-admin-customFieldSettings-bundles-state-bundleID-values.html
generated_at: 2026-06-11T15:03:41.710504+00:00
---

Feedback

Thanks for your feedback!

Was this page helpful?

YesNo

Developer Portal for YouTrack and Hub

- Developer Portal
- Apps
- MCP Tools
- YouTrack Workflows
- YouTrack Import Scripts
- YouTrack Form API
- YouTrack REST API
- Get Started with REST API
- REST API Reference
- Entities
- Resources
- Activity Items
- Issue Activities Page
- Build Bundles
- Enum Bundles
- Owned Bundles
- State Bundles
- [Operations with Specific StateBundle](jetbrains__com__help__youtrack__devportal__operations-api-admin-customfieldsettings-bundles-state.md)
- Sub-resources
- Values in the State Bundle
- [Operations with Specific Values in the State Bundle](operations-api-admin-customFieldSettings-bundles-state-bundleID-values.html)
- User Bundles
- Version Bundles
- Custom Fields
- Field Types
- Backup Files
- Database Backup Settings
- Global Settings
- Organizations
- Projects
- Telemetry data
- Global Time Tracking Settings
- Agiles
- Articles
- Assigned Roles
- Commands
- Command Suggestions
- User Groups
- Issue Link Types
- Issue Tag
- Issues
- Issue Count
- Permissions
- Roles
- Saved Queries
- Search Suggestions
- Tags
- Users
- My User Profile
- Issue Work Items
- REST API Use Cases
- REST API Troubleshooting
- Color Indices List
- Hub REST API

1. YouTrack REST API
2. REST API Reference
3. Resources
4. State Bundles
5. [Sub-resources](#0)
6. Values in the State Bundle
7. [Operations with Specific Values in the State Bundle](#0)

# Operations with Specific Values in the State Bundle﻿

Last modified: 31 March 2025

This resource lets you work with the values in a specific set of states (state bundle).

| Resource | ``` /api/admin/customFieldSettings/bundles/state/{bundleID}/values/{elementID} ``` |
| --- | --- |
| Returned entity | StateBundleElement. For the description of the entity attributes, see [Supported Fields](/help/youtrack/devportal/operations-api-admin-customFieldSettings-bundles-state-bundleID-values.html#StateBundleElement-supported-fields) section. |
| Supported methods | - `GET`: [Values in the State Bundle](/help/youtrack/devportal/operations-api-admin-customFieldSettings-bundles-state-bundleID-values.html#get-StateBundleElement-method). - `POST`: [Values in the State Bundle](/help/youtrack/devportal/operations-api-admin-customFieldSettings-bundles-state-bundleID-values.html#update-StateBundleElement-method). - `DELETE`: [Values in the State Bundle](/help/youtrack/devportal/operations-api-admin-customFieldSettings-bundles-state-bundleID-values.html#delete-StateBundleElement-method). |

## StateBundleElement attributes﻿

Represents the state of an issue in YouTrack.

### Related Resources﻿

Below you can find the list of resources that let you work with this entity.

- Values in the State Bundle

Extends LocalizableBundleElement

### Attributes﻿

This table describes attributes of the `StateBundleElement` entity.

- To receive an attribute in the response from the server, specify it explicitly in the `fields` request parameter.
- To update an attribute, provide it in the body of a POST request.

| Field | Type | Description |
| --- | --- | --- |
| id | String | The ID of the state value. `Read-only`. |
| isResolved | Boolean | If `true`, then issues in this state are considered to be resolved. |
| localizedName | String | The localized name of the field value. `Can be null`. |
| name | String | The name of the value. |
| bundle | Bundle | The reference to the bundle that contains this value. `Read-only`. `Can be null`. |
| description | String | The description of the value. `Can be null`. |
| archived | Boolean | When `true`, this value is archived. |
| ordinal | Int | The position of the value in the set of values for the custom field. |
| color | FieldStyle | The color that is assigned to the value in the custom field. |
| hasRunningJob | Boolean | If true, there are some jobs running in the background for this bundle element. Otherwise, false. `Read-only`. |

## Read a Specific StateBundleElement﻿

Get a specific state from the bundle.

### Required permissions﻿

Requires read access to the bundle.

### Request syntax﻿

GET /api/admin/customFieldSettings/bundles/state/{bundleID}/values/{elementID}?{fields}

| {elementID} | Database ID of the state value. |
| --- | --- |

### Request parameters﻿

| Parameter | Type | Description |
| --- | --- | --- |
| fields | String | A list of StateBundleElement attributes that should be returned in the response. If no field is specified, only the `entityID` is returned. |

### Sample﻿

#### Sample request﻿

https://example.youtrack.cloud/api/admin/customFieldSettings/bundles/state/56-0/values/57-1?fields=id,name,isResolved,localizedName,description

#### Sample response body﻿

  "isResolved": false,
  "localizedName": null,
  "description": null,
  "name": "Open",
  "id": "57-1",
  "$type": "StateBundleElement"

## Update a Specific StateBundleElement﻿

Update a specific state value in the bundle.

### Required permissions﻿

Requires Update Project permission in all projects where the bundle is used. If the bundle is not used in any field, Update Project permission is required in at least one project.

### Request syntax﻿

POST /api/admin/customFieldSettings/bundles/state/{bundleID}/values/{elementID}?{fields}

| {elementID} | Database ID of the state value. |
| --- | --- |

### Request parameters﻿

| Parameter | Type | Description |
| --- | --- | --- |
| fields | String | A list of StateBundleElement attributes that should be returned in the response. If no field is specified, only the `entityID` is returned. |

### Sample﻿

#### Sample request﻿

https://example.youtrack.cloud/api/admin/customFieldSettings/bundles/state/56-0/values/57-1?fields=id,name,isResolved,localizedName,description

#### Sample request body﻿

  "isResolved": true

#### Sample response body﻿

  "isResolved": true,
  "localizedName": null,
  "description": null,
  "name": "Open",
  "id": "57-1",
  "$type": "StateBundleElement"

## Delete a Specific StateBundleElement﻿

Remove a specific state from the bundle.

### Required permissions﻿

Requires Update project permission in all projects where the bundle is used. If the bundle is not used in any field, Update Project permission is required in at least one project.

### Request syntax﻿

DELETE /api/admin/customFieldSettings/bundles/state/{bundleID}/values/{elementID}

| {elementID} | Database ID of the state value. |
| --- | --- |

### Request parameters﻿

| Parameter | Type | Description |
| --- | --- | --- |
| fields | String | A list of StateBundleElement attributes that should be returned in the response. If no field is specified, only the `entityID` is returned. |

### Sample﻿

#### Sample request﻿

https://example.youtrack.cloud/api/admin/customFieldSettings/bundles/state/56-0/values/57-328

- [Operations with Specific Values in the State Bundle](/help/youtrack/devportal/operations-api-admin-customFieldSettings-bundles-state-bundleID-values.html)
- [StateBundleElement attributes](/help/youtrack/devportal/operations-api-admin-customFieldSettings-bundles-state-bundleID-values.html#StateBundleElement-supported-fields)
- [Read a Specific StateBundleElement](/help/youtrack/devportal/operations-api-admin-customFieldSettings-bundles-state-bundleID-values.html#get-StateBundleElement-method)
- [Update a Specific StateBundleElement](/help/youtrack/devportal/operations-api-admin-customFieldSettings-bundles-state-bundleID-values.html#update-StateBundleElement-method)
- [Delete a Specific StateBundleElement](/help/youtrack/devportal/operations-api-admin-customFieldSettings-bundles-state-bundleID-values.html#delete-StateBundleElement-method)

Values in the State BundleUser Bundles

- Privacy & Security
- Terms Of Use
- Trademarks
- Legal

Copyright © 2000–2026 JetBrains s.r.o.
