Node.js add custom fields to project

custom-fields
api

#1

Hi,

Is it possible to add more than one custom field to a project through the api? Im successfully adding a custom field to a new project by doing a http post by using request for node.js.

So im sending the data with {custom_field: ‘462624742742727’} to https://app.asana.com/api/1.0/projects/1331/addCustomFieldSetting wich adds one custom field nicely. But i need to add 3 - 8 custom fields and it feels like an unnecessary amount of requests to send one for each field. Is it possible to wrap them in an array? I tested some random ways to put them but all gives me errors. Does anyone have any hints?

Thanks
Jonas


#2

Hello Jonas,

Take a look at Batch API


#3

Awesome! Completely missed that! Will check it out! thanks!