Content
You are here:
Edit custom field List via API
Added by Danilo Petrone about 6 years ago
Hi,
I'm trying to edit the content of a custom field via API. The custom field is a List, so I try to change it to one of the possible values of the list.
/api/v3/work_packages/13511?notify=false
body:
{
"lockVersion": 2,
"customField30": {
"href": "/api/v3/string_objects?value=LOGISTICS"
}
}
As a result I get the same custom field value.
When a custom field is just text, I'm able to patch it.
Replies (4)
Hi All,
any suggestion?
Hi!
Is there solution for this requirement?
Zsombor
From what I can see you need to pass the value as the following:
[href] => '/api/v3/custom_options/XXX' where XXX is replaced by the ID of the list item in your list
I've tried this on work packages, and it's working.
But not working for projects!
I've lit typed custom fields on projects.
Any idea?