Contents

Update List Item for List Type Custom Field

Updates list item for list type custom field. Calling API fails if specified custom field’s type is not a list.

Role

Administrator
Project Administrator

Method

PATCH

URL

/api/v2/projects/:projectIdOrKey/customFields/:id/items/:itemId

URL parameters

Parameter NameTypeDescription
projectIdOrKeyStringProject ID or Project Key
idNumberCustom field ID
itemIdNumberList item ID

Form parameters

Content-Type:application/x-www-form-urlencoded
Parameter NameTypeDescription
nameStringName of list item

Response example

Status Line / Response Header

HTTP/1.1 200 OK
Content-Type:application/json;charset=utf-8

Response Body

{
    "id": 8,
    "projectId": 5,
    "typeId": 5,
    "name": "language",
    "description": "",
    "required": false,
    "applicableIssueTypes": [ ],
    "allowAddItem": true,
    "items": [
        {
            "id": 1,
            "name": "java",
            "displayOrder": 0
        },
        // ...
    ]
}