post https://app.asana.com/api/1.0/projects//addCustomFieldSetting
Custom fields are associated with projects by way of custom field settings. This method creates a setting for the project.
Responses
Custom fields are associated with projects by way of custom field settings. This method creates a setting for the project.
xxxxxxxxxx
curl --request POST \
--url https://app.asana.com/api/1.0/projects/project_gid/addCustomFieldSetting \
--header 'accept: application/json' \
--header 'content-type: application/json'
xxxxxxxxxx
84}
{
"data": {
"gid": "12345",
"resource_type": "custom_field_setting",
"project": {
"gid": "12345",
"resource_type": "project",
"name": "Stuff to buy"
},
"is_important": false,
"parent": {
"gid": "12345",
"resource_type": "project",
"name": "Stuff to buy"
},
"custom_field": {
"gid": "12345",
"resource_type": "custom_field",
"name": "Status",
"type": "text",
"enum_options": [
{
"gid": "12345",
"resource_type": "enum_option",
"name": "Low",
"enabled": true,
"color": "blue"
}
],
"enabled": true,
"representation_type": "number",
"id_prefix": "ID",