How can I write to a custom field API endpoint

I am pulling the custom field gid from the project I would like to patch my custom field data into. My JSON format is
{
“data”: {
“custom_fields”: {
“1200605579259945”: “Fulcrum
}
}
}
and I’m trying to put it to this API endpoint URL https://app.asana.com/api/1.0/tasks/{api.data custom_field gid}

I’ve tried a number of configurations but can’t seem to get it to work.

Hi @Katherine_Gorey,

The last part of the endpoint should be the gid of the task you’re wanting to update, not the custom field gid.

The custom field gid should be the number that you show in your example starting with 1200

1 Like