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 Name Type Description
projectIdOrKey String Project ID or Project Key
id Number Custom field ID
itemId Number List item ID

Form parameters

Content-Type:application/x-www-form-urlencoded 
Parameter Name Type Description
name String Name 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,
    "typeId": 5,
    "name": "language",
    "description": "",
    "required": false,
    "applicableIssueTypes": [ ],
    "allowAddItem": true,
    "items": [ 
        { 
            "id": 1,
            "name": "java",
            "displayOrder": 0 
        }, 
        ... 
    ] 
}