Updating Tasks custom_fields failing

Hello,

i am trying to update the custom field Data of a Task through the API.

My Data looking like this:

/** WORKING **/
[
‘name’ => ‘UPDATED NAME’
]

/** FAILING 400 BAD REQUEST **/
[
‘custom_fields’ => [
$field_gid => ‘NEW VALUE’’
]
]

any ideas what im doing wrong?

1 Like

since i cant edit posts? i add here that im using the Asana Endpoint

[
‘custom_fields’ => json_encode([
‘1199512807263958’ => ‘1199512807263960’
])
]

fixed it :partying_face:

2 Likes

Great :slight_smile: