# Operations with Specific OwnedBundle

This resource provides operations with owned field bundles.
|  Resource  |     ```GENERIC /api/admin/customFieldSettings/bundles/ownedField/{bundleID} ```    |
| --- | --- |
|  Returned entity  |  [OwnedBundle](api-entity-OwnedBundle.html). For the description of the entity attributes, see [Supported Fields](#OwnedBundle-supported-fields) section.  |
|  Supported methods  |      * `GET`: [Read a Specific OwnedBundle](#get-OwnedBundle-method).    * `POST`: [Update a Specific OwnedBundle](#update-OwnedBundle-method).    * `DELETE`: [Delete a Specific OwnedBundle](#delete-OwnedBundle-method).    |

## OwnedBundle attributes

Represents a set of owned values in YouTrack.

### Related Resources

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

* [Owned Bundles](resource-api-admin-customFieldSettings-bundles-ownedField.html)

Extends [BaseBundle](api-entity-BaseBundle.html)

### Attributes

This table describes attributes of the `OwnedBundle` 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 set of owned values. `Read-only`.  |
|  values  |  [Array of OwnedBundleElements](api-entity-OwnedBundleElement.html)  |  Collection of owned field values in the bundle.  |
|  isUpdateable  |  Boolean  |  If `true`, then the currently logged-in user can update this bundle. Otherwise, `false`. `Read-only`.  |

## Read a Specific OwnedBundle

Get a specific bundle of owned values.

### Required permissions

Requires read or update access to one of the fields that use the bundle. If the bundle is not used in any field, Update Project permission is required in at least one project.

### Request syntax

```GENERIC
GET /api/admin/customFieldSettings/bundles/ownedField/{bundleID}?{fields}
```

|  {bundleID}  |  The database ID of the bundle.  |
| --- | --- |

### Request parameters

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

### Sample

#### Sample request

```CURL
https://example.youtrack.cloud/api/admin/customFieldSettings/bundles/ownedField/93-2?fields=id,name,values(owner(name,login,id),name,description)
```

#### Sample response body

```JSON
{
  "values": [
    {
      "owner": {
        "login": "jane.doe",
        "name": "Jane Doe",
        "id": "1-3",
        "$type": "User"
      },
      "description": null,
      "name": "Documentation",
      "$type": "OwnedBundleElement"
    },
    {
      "owner": {
        "login": "Jane_Smith",
        "name": "Jane Smith",
        "id": "1-4",
        "$type": "User"
      },
      "description": null,
      "name": "Tests",
      "$type": "OwnedBundleElement"
    },
    {
      "owner": {
        "login": "john.doe",
        "name": "John Doe",
        "id": "1-2",
        "$type": "User"
      },
      "description": null,
      "name": "Core",
      "$type": "OwnedBundleElement"
    }
  ],
  "name": "Rest Api Project: Subsystems",
  "id": "93-2",
  "$type": "OwnedBundle"
}
```

## Update a Specific OwnedBundle

Update a specific bundle of owned values.

### 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

```GENERIC
POST /api/admin/customFieldSettings/bundles/ownedField/{bundleID}?{fields}
```

|  {bundleID}  |  The database ID of the bundle.  |
| --- | --- |

### Request parameters

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

### Sample

#### Sample request

```CURL
https://example.youtrack.cloud/api/admin/customFieldSettings/bundles/ownedField/93-2?fields=id,name,values(owner(name,login,id),name,description)
```

#### Sample request body

```JSON
{
  "values": [
    {
      "owner": {
        "id": "1-4",
        "$type": "User"
      },
      "description": "Questions from users",
      "name": "Support"
    }
  ]
}
```

#### Sample response body

```JSON
{
  "values": [
    {
      "owner": {
        "login": "Jane_Smith",
        "name": "Jane Smith",
        "id": "1-4",
        "$type": "User"
      },
      "description": "Questions from users",
      "name": "Support",
      "$type": "OwnedBundleElement"
    }
  ],
  "name": "Rest Api Project: Subsystems",
  "id": "93-2",
  "$type": "OwnedBundle"
}
```

## Delete a Specific OwnedBundle

Delete a specific bundle of owned values.

### 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

```GENERIC
DELETE /api/admin/customFieldSettings/bundles/ownedField/{bundleID}
```

|  {bundleID}  |  The database ID of the bundle.  |
| --- | --- |

### Request parameters

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

### Sample

#### Sample request

```CURL
https://example.youtrack.cloud/api/admin/customFieldSettings/bundles/ownedField/93-13
```

