Add a custom field to a project
POST
/projects/{project_gid}/addCustomFieldSetting
Projects
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.asana.com/api/1.0/projects//addCustomFieldSetting' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
200 - Example 1
{
"data": {
"gid": "12345",
"resource_type": "task",
"custom_field": {
"gid": "12345",
"resource_type": "task",
"display_value": "blue",
"enabled": true,
"enum_options": [
{
"gid": "12345",
"resource_type": "task",
"color": "blue",
"enabled": true,
"name": "Low"
}
],
"name": "Status",
"number_value": 5.2,
"resource_subtype": "text",
"text_value": "Some Value",
"type": "text",
"currency_code": "EUR",
"custom_label": "gold pieces",
"custom_label_position": "suffix",
"description": "Development team priority",
"format": "custom",
"has_notifications_enabled": true,
"is_global_to_workspace": true,
"precision": 2,
"created_by": {
"gid": "12345",
"resource_type": "task",
"name": "Greg Sanchez"
},
"enum_value": {
"gid": "12345",
"resource_type": "task",
"color": "blue",
"enabled": true,
"name": "Low"
},
"multi_enum_values": [
{
"gid": "12345",
"resource_type": "task",
"color": "blue",
"enabled": true,
"name": "Low"
}
]
},
"is_important": false,
"parent": {
"gid": "12345",
"resource_type": "task",
"name": "Stuff to buy"
},
"project": {
"gid": "12345",
"resource_type": "task",
"name": "Stuff to buy"
}
}
}
Request
Path Params
project_gid
string
required
Body Params application/json
Responses
Modified at 2022-09-13 02:00:31