292 lines
55 KiB
JSON
292 lines
55 KiB
JSON
{
|
|
"name": "AddCustomFieldSettingToProject",
|
|
"fully_qualified_name": "AsanaApi.AddCustomFieldSettingToProject@0.1.0",
|
|
"description": "Add a custom field setting to a project in Asana.\n\nUse this tool to associate a custom field with a specific project in Asana. This operation requires the 'projects:write' scope.",
|
|
"toolkit": {
|
|
"name": "AsanaApi",
|
|
"description": null,
|
|
"version": "0.1.0"
|
|
},
|
|
"input": {
|
|
"parameters": [
|
|
{
|
|
"name": "project_global_id",
|
|
"required": true,
|
|
"description": "Globally unique identifier for the project in Asana.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Globally unique identifier for the project."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "project_gid"
|
|
},
|
|
{
|
|
"name": "custom_field_setting_info",
|
|
"required": true,
|
|
"description": "JSON object with details about the custom field setting, including 'custom_field', 'is_important' (boolean), 'insert_before' (string), and 'insert_after' (string). At least one field, 'insert_before' or 'insert_after', can be specified to position the field. 'is_important' indicates significance in the container's list view.",
|
|
"value_schema": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"data": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"custom_field": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": null
|
|
},
|
|
"is_important": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Whether this field should be considered important to this container (for instance, to display in the list view of items in the container)."
|
|
},
|
|
"insert_before": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A gid of a Custom Field Setting on this container, before which the new Custom Field Setting will be added. `insert_before` and `insert_after` parameters cannot both be specified."
|
|
},
|
|
"insert_after": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A gid of a Custom Field Setting on this container, after which the new Custom Field Setting will be added. `insert_before` and `insert_after` parameters cannot both be specified."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": null
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Information about the custom field setting."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "requestBody"
|
|
},
|
|
{
|
|
"name": "include_optional_properties",
|
|
"required": false,
|
|
"description": "Comma-separated list of properties to include in the response, typically those excluded by default.",
|
|
"value_schema": {
|
|
"val_type": "array",
|
|
"inner_val_type": "string",
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "opt_fields"
|
|
},
|
|
{
|
|
"name": "enable_pretty_output",
|
|
"required": false,
|
|
"description": "Set to true for a readable output format with line breaks and indentation. Increases response time and size, so use it mainly for debugging.",
|
|
"value_schema": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Provides \u201cpretty\u201d output.\nProvides the response in a \u201cpretty\u201d format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "opt_pretty"
|
|
}
|
|
]
|
|
},
|
|
"output": {
|
|
"description": "Response from the API endpoint 'addCustomFieldSettingForProject'.",
|
|
"available_modes": [
|
|
"value",
|
|
"error",
|
|
"null"
|
|
],
|
|
"value_schema": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": null
|
|
}
|
|
},
|
|
"requirements": {
|
|
"authorization": {
|
|
"provider_id": "arcade-asana",
|
|
"provider_type": "oauth2",
|
|
"id": null,
|
|
"oauth2": {
|
|
"scopes": [
|
|
"projects:write"
|
|
]
|
|
}
|
|
},
|
|
"secrets": null,
|
|
"metadata": null
|
|
},
|
|
"deprecation_message": null,
|
|
"metadata": {
|
|
"object_type": "api_wrapper_tool",
|
|
"version": "1.1.0",
|
|
"description": "Tools that enable LLMs to interact directly with the asana API."
|
|
},
|
|
"http_endpoint": {
|
|
"metadata": {
|
|
"object_type": "http_endpoint",
|
|
"version": "1.2.0",
|
|
"description": ""
|
|
},
|
|
"url": "https://app.asana.com/api/1.0/projects/{project_gid}/addCustomFieldSetting",
|
|
"http_method": "POST",
|
|
"headers": {},
|
|
"parameters": [
|
|
{
|
|
"name": "opt_pretty",
|
|
"tool_parameter_name": "enable_pretty_output",
|
|
"description": "Provides \u201cpretty\u201d output.\nProvides the response in a \u201cpretty\u201d format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging.",
|
|
"value_schema": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Provides \u201cpretty\u201d output.\nProvides the response in a \u201cpretty\u201d format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging."
|
|
},
|
|
"accepted_as": "query",
|
|
"required": false,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "opt_fields",
|
|
"tool_parameter_name": "include_optional_properties",
|
|
"description": "This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.",
|
|
"value_schema": {
|
|
"val_type": "array",
|
|
"inner_val_type": "string",
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include."
|
|
},
|
|
"accepted_as": "query",
|
|
"required": false,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "project_gid",
|
|
"tool_parameter_name": "project_global_id",
|
|
"description": "Globally unique identifier for the project.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Globally unique identifier for the project."
|
|
},
|
|
"accepted_as": "path",
|
|
"required": true,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "requestBody",
|
|
"tool_parameter_name": "custom_field_setting_info",
|
|
"description": "Information about the custom field setting.",
|
|
"value_schema": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"data": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"custom_field": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": null
|
|
},
|
|
"is_important": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Whether this field should be considered important to this container (for instance, to display in the list view of items in the container)."
|
|
},
|
|
"insert_before": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A gid of a Custom Field Setting on this container, before which the new Custom Field Setting will be added. `insert_before` and `insert_after` parameters cannot both be specified."
|
|
},
|
|
"insert_after": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A gid of a Custom Field Setting on this container, after which the new Custom Field Setting will be added. `insert_before` and `insert_after` parameters cannot both be specified."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": null
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Information about the custom field setting."
|
|
},
|
|
"accepted_as": "body",
|
|
"required": true,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
}
|
|
],
|
|
"documentation_urls": [],
|
|
"secrets": [
|
|
{
|
|
"arcade_key": "auth_token",
|
|
"parameter_name": "Authorization",
|
|
"accepted_as": "header",
|
|
"formatted_value": "Bearer {authorization}",
|
|
"description": "The OAuth token to use for authentication.",
|
|
"is_auth_token": true
|
|
}
|
|
],
|
|
"request_body_spec": "{\n \"description\": \"Information about the custom field setting.\",\n \"required\": true,\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"data\": {\n \"type\": \"object\",\n \"required\": [\n \"custom_field\"\n ],\n \"properties\": {\n \"custom_field\": {\n \"oneOf\": [\n {\n \"type\": \"string\",\n \"description\": \"The custom field to associate with this container.\",\n \"example\": \"14916\"\n },\n {\n \"allOf\": [\n {\n \"allOf\": [\n {\n \"allOf\": [\n {\n \"description\": \"Custom Fields store the metadata that is used in order to add user-specified information to tasks in Asana. Be sure to reference the [custom fields](/reference/custom-fields) developer documentation for more information about how custom fields relate to various resources in Asana.\\n\\nUsers in Asana can [lock custom fields](https://asana.com/guide/help/premium/custom-fields#gl-lock-fields), which will make them read-only when accessed by other users. Attempting to edit a locked custom field will return HTTP error code `403 Forbidden`.\",\n \"type\": \"object\",\n \"properties\": {\n \"gid\": {\n \"description\": \"Globally unique identifier of the resource, as a string.\",\n \"type\": \"string\",\n \"readOnly\": true,\n \"example\": \"12345\",\n \"x-insert-after\": false\n },\n \"resource_type\": {\n \"description\": \"The base type of this resource.\",\n \"type\": \"string\",\n \"readOnly\": true,\n \"example\": \"custom_field\",\n \"x-insert-after\": \"gid\"\n },\n \"name\": {\n \"description\": \"The name of the custom field.\",\n \"type\": \"string\",\n \"example\": \"Status\"\n },\n \"type\": {\n \"description\": \"*Deprecated: new integrations should prefer the resource_subtype field.* The type of the custom field. Must be one of the given values.\\n\",\n \"type\": \"string\",\n \"readOnly\": true,\n \"enum\": [\n \"text\",\n \"enum\",\n \"multi_enum\",\n \"number\",\n \"date\",\n \"people\"\n ]\n },\n \"enum_options\": {\n \"description\": \"*Conditional*. Only relevant for custom fields of type `enum` or `multi_enum`. This array specifies the possible values which an `enum` custom field can adopt. To modify the enum options, refer to [working with enum options](/reference/createenumoptionforcustomfield).\",\n \"type\": \"array\",\n \"items\": {\n \"description\": \"Enum options are the possible values which an enum custom field can adopt. An enum custom field must contain at least 1 enum option but no more than 500.\\n\\nYou can add enum options to a custom field by using the `POST /custom_fields/custom_field_gid/enum_options` endpoint.\\n\\n**It is not possible to remove or delete an enum option**. Instead, enum options can be disabled by updating the `enabled` field to false with the `PUT /enum_options/enum_option_gid` endpoint. Other attributes can be updated similarly.\\n\\nOn creation of an enum option, `enabled` is always set to `true`, meaning the enum option is a selectable value for the custom field. Setting `enabled=false` is equivalent to \\u201ctrashing\\u201d the enum option in the Asana web app within the \\u201cEdit Fields\\u201d dialog. The enum option will no longer be selectable but, if the enum option value was previously set within a task, the task will retain the value.\\n\\nEnum options are an ordered list and by default new enum options are inserted at the end. Ordering in relation to existing enum options can be specified on creation by using `insert_before` or `insert_after` to reference an existing enum option. Only one of `insert_before` and `insert_after` can be provided when creating a new enum option.\\n\\nAn enum options list can be reordered with the `POST /custom_fields/custom_field_gid/enum_options/insert` endpoint.\",\n \"type\": \"object\",\n \"properties\": {\n \"gid\": {\n \"description\": \"Globally unique identifier of the resource, as a string.\",\n \"type\": \"string\",\n \"readOnly\": true,\n \"example\": \"12345\",\n \"x-insert-after\": false\n },\n \"resource_type\": {\n \"description\": \"The base type of this resource.\",\n \"type\": \"string\",\n \"readOnly\": true,\n \"example\": \"enum_option\",\n \"x-insert-after\": \"gid\"\n },\n \"name\": {\n \"description\": \"The name of the enum option.\",\n \"type\": \"string\",\n \"example\": \"Low\"\n },\n \"enabled\": {\n \"description\": \"Whether or not the enum option is a selectable value for the custom field.\",\n \"type\": \"boolean\",\n \"example\": true\n },\n \"color\": {\n \"description\": \"The color of the enum option. Defaults to `none`.\",\n \"type\": \"string\",\n \"example\": \"blue\"\n }\n }\n }\n },\n \"enabled\": {\n \"description\": \"*Conditional*. This field applies only to [custom field values](/docs/custom-fields-guide#/accessing-custom-field-values-on-tasks-or-projects) and is not available for [custom field definitions](/docs/custom-fields-guide#/accessing-custom-field-definitions).\\nDetermines if the custom field is enabled or not. For more details, see the [Custom Fields documentation](/docs/custom-fields-guide#/enabled-and-disabled-values).\",\n \"type\": \"boolean\",\n \"readOnly\": true,\n \"example\": true\n },\n \"representation_type\": {\n \"description\": \"This field tells the type of the custom field.\",\n \"type\": \"string\",\n \"example\": \"number\",\n \"readOnly\": true,\n \"enum\": [\n \"text\",\n \"enum\",\n \"multi_enum\",\n \"number\",\n \"date\",\n \"people\",\n \"formula\",\n \"custom_id\"\n ]\n },\n \"id_prefix\": {\n \"description\": \"This field is the unique custom ID string for the custom field.\",\n \"type\": \"string\",\n \"nullable\": true,\n \"example\": \"ID\"\n },\n \"input_restrictions\": {\n \"description\": \"*Conditional*. Only relevant for custom fields of type `reference`. This array of strings reflects the allowed types of objects that can be written to a `reference` custom field value.\",\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"example\": \"task\"\n },\n \"is_formula_field\": {\n \"description\": \"*Conditional*. This flag describes whether a custom field is a formula custom field.\",\n \"type\": \"boolean\",\n \"example\": false\n },\n \"date_value\": {\n \"description\": \"*Conditional*. Only relevant for custom fields of type `date`. This object reflects the chosen date (and optionally, time) value of a `date` custom field. If no date is selected, the value of `date_value` will be `null`.\",\n \"type\": \"object\",\n \"nullable\": true,\n \"properties\": {\n \"date\": {\n \"type\": \"string\",\n \"description\": \"A string representing the date in YYYY-MM-DD format.\",\n \"example\": \"2024-08-23\"\n },\n \"date_time\": {\n \"type\": \"string\",\n \"description\": \"A string representing the date in ISO 8601 format. If no time value is selected, the value of `date-time` will be `null`.\",\n \"example\": \"2024-08-23T22:00:00.000Z\"\n }\n }\n },\n \"enum_value\": {\n \"allOf\": [\n {\n \"description\": \"Enum options are the possible values which an enum custom field can adopt. An enum custom field must contain at least 1 enum option but no more than 500.\\n\\nYou can add enum options to a custom field by using the `POST /custom_fields/custom_field_gid/enum_options` endpoint.\\n\\n**It is not possible to remove or delete an enum option**. Instead, enum options can be disabled by updating the `enabled` field to false with the `PUT /enum_options/enum_option_gid` endpoint. Other attributes can be updated similarly.\\n\\nOn creation of an enum option, `enabled` is always set to `true`, meaning the enum option is a selectable value for the custom field. Setting `enabled=false` is equivalent to \\u201ctrashing\\u201d the enum option in the Asana web app within the \\u201cEdit Fields\\u201d dialog. The enum option will no longer be selectable but, if the enum option value was previously set within a task, the task will retain the value.\\n\\nEnum options are an ordered list and by default new enum options are inserted at the end. Ordering in relation to existing enum options can be specified on creation by using `insert_before` or `insert_after` to reference an existing enum option. Only one of `insert_before` and `insert_after` can be provided when creating a new enum option.\\n\\nAn enum options list can be reordered with the `POST /custom_fields/custom_field_gid/enum_options/insert` endpoint.\",\n \"type\": \"object\",\n \"properties\": {\n \"gid\": {\n \"description\": \"Globally unique identifier of the resource, as a string.\",\n \"type\": \"string\",\n \"readOnly\": true,\n \"example\": \"12345\",\n \"x-insert-after\": false\n },\n \"resource_type\": {\n \"description\": \"The base type of this resource.\",\n \"type\": \"string\",\n \"readOnly\": true,\n \"example\": \"enum_option\",\n \"x-insert-after\": \"gid\"\n },\n \"name\": {\n \"description\": \"The name of the enum option.\",\n \"type\": \"string\",\n \"example\": \"Low\"\n },\n \"enabled\": {\n \"description\": \"Whether or not the enum option is a selectable value for the custom field.\",\n \"type\": \"boolean\",\n \"example\": true\n },\n \"color\": {\n \"description\": \"The color of the enum option. Defaults to `none`.\",\n \"type\": \"string\",\n \"example\": \"blue\"\n }\n }\n },\n {\n \"type\": \"object\",\n \"nullable\": true,\n \"description\": \"*Conditional*. Only relevant for custom fields of type `enum`. This object is the chosen value of an `enum` custom field.\"\n }\n ]\n },\n \"multi_enum_values\": {\n \"description\": \"*Conditional*. Only relevant for custom fields of type `multi_enum`. This object is the chosen values of a `multi_enum` custom field.\",\n \"type\": \"array\",\n \"items\": {\n \"description\": \"Enum options are the possible values which an enum custom field can adopt. An enum custom field must contain at least 1 enum option but no more than 500.\\n\\nYou can add enum options to a custom field by using the `POST /custom_fields/custom_field_gid/enum_options` endpoint.\\n\\n**It is not possible to remove or delete an enum option**. Instead, enum options can be disabled by updating the `enabled` field to false with the `PUT /enum_options/enum_option_gid` endpoint. Other attributes can be updated similarly.\\n\\nOn creation of an enum option, `enabled` is always set to `true`, meaning the enum option is a selectable value for the custom field. Setting `enabled=false` is equivalent to \\u201ctrashing\\u201d the enum option in the Asana web app within the \\u201cEdit Fields\\u201d dialog. The enum option will no longer be selectable but, if the enum option value was previously set within a task, the task will retain the value.\\n\\nEnum options are an ordered list and by default new enum options are inserted at the end. Ordering in relation to existing enum options can be specified on creation by using `insert_before` or `insert_after` to reference an existing enum option. Only one of `insert_before` and `insert_after` can be provided when creating a new enum option.\\n\\nAn enum options list can be reordered with the `POST /custom_fields/custom_field_gid/enum_options/insert` endpoint.\",\n \"type\": \"object\",\n \"properties\": {\n \"gid\": {\n \"description\": \"Globally unique identifier of the resource, as a string.\",\n \"type\": \"string\",\n \"readOnly\": true,\n \"example\": \"12345\",\n \"x-insert-after\": false\n },\n \"resource_type\": {\n \"description\": \"The base type of this resource.\",\n \"type\": \"string\",\n \"readOnly\": true,\n \"example\": \"enum_option\",\n \"x-insert-after\": \"gid\"\n },\n \"name\": {\n \"description\": \"The name of the enum option.\",\n \"type\": \"string\",\n \"example\": \"Low\"\n },\n \"enabled\": {\n \"description\": \"Whether or not the enum option is a selectable value for the custom field.\",\n \"type\": \"boolean\",\n \"example\": true\n },\n \"color\": {\n \"description\": \"The color of the enum option. Defaults to `none`.\",\n \"type\": \"string\",\n \"example\": \"blue\"\n }\n }\n }\n },\n \"number_value\": {\n \"description\": \"*Conditional*. This number is the value of a `number` custom field.\",\n \"type\": \"number\",\n \"nullable\": true,\n \"example\": 5.2\n },\n \"text_value\": {\n \"description\": \"*Conditional*. This string is the value of a `text` custom field.\",\n \"type\": \"string\",\n \"nullable\": true,\n \"example\": \"Some Value\"\n },\n \"display_value\": {\n \"description\": \"A string representation for the value of the custom field. Integrations that don't require the underlying type should use this field to read values. Using this field will future-proof an app against new custom field types.\",\n \"type\": \"string\",\n \"readOnly\": true,\n \"example\": \"blue\",\n \"nullable\": true\n }\n }\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"description\": {\n \"description\": \"[Opt In](/docs/inputoutput-options). The description of the custom field.\",\n \"type\": \"string\",\n \"example\": \"Development team priority\"\n },\n \"enum_options\": {\n \"description\": \"*Conditional*. Only relevant for custom fields of type `enum` or `multi_enum`. This array specifies the possible values which an `enum` custom field can adopt. To modify the enum options, refer to [working with enum options](/reference/createenumoptionforcustomfield).\",\n \"type\": \"array\",\n \"items\": {\n \"description\": \"Enum options are the possible values which an enum custom field can adopt. An enum custom field must contain at least 1 enum option but no more than 500.\\n\\nYou can add enum options to a custom field by using the `POST /custom_fields/custom_field_gid/enum_options` endpoint.\\n\\n**It is not possible to remove or delete an enum option**. Instead, enum options can be disabled by updating the `enabled` field to false with the `PUT /enum_options/enum_option_gid` endpoint. Other attributes can be updated similarly.\\n\\nOn creation of an enum option, `enabled` is always set to `true`, meaning the enum option is a selectable value for the custom field. Setting `enabled=false` is equivalent to \\u201ctrashing\\u201d the enum option in the Asana web app within the \\u201cEdit Fields\\u201d dialog. The enum option will no longer be selectable but, if the enum option value was previously set within a task, the task will retain the value.\\n\\nEnum options are an ordered list and by default new enum options are inserted at the end. Ordering in relation to existing enum options can be specified on creation by using `insert_before` or `insert_after` to reference an existing enum option. Only one of `insert_before` and `insert_after` can be provided when creating a new enum option.\\n\\nAn enum options list can be reordered with the `POST /custom_fields/custom_field_gid/enum_options/insert` endpoint.\",\n \"type\": \"object\",\n \"properties\": {\n \"gid\": {\n \"description\": \"Globally unique identifier of the resource, as a string.\",\n \"type\": \"string\",\n \"readOnly\": true,\n \"example\": \"12345\",\n \"x-insert-after\": false\n },\n \"resource_type\": {\n \"description\": \"The base type of this resource.\",\n \"type\": \"string\",\n \"readOnly\": true,\n \"example\": \"enum_option\",\n \"x-insert-after\": \"gid\"\n },\n \"name\": {\n \"description\": \"The name of the enum option.\",\n \"type\": \"string\",\n \"example\": \"Low\"\n },\n \"enabled\": {\n \"description\": \"Whether or not the enum option is a selectable value for the custom field.\",\n \"type\": \"boolean\",\n \"example\": true\n },\n \"color\": {\n \"description\": \"The color of the enum option. Defaults to `none`.\",\n \"type\": \"string\",\n \"example\": \"blue\"\n }\n }\n }\n },\n \"precision\": {\n \"description\": \"Only relevant for custom fields of type `Number`. This field dictates the number of places after the decimal to round to, i.e. 0 is integer values, 1 rounds to the nearest tenth, and so on. Must be between 0 and 6, inclusive.\\nFor percentage format, this may be unintuitive, as a value of 0.25 has a precision of 0, while a value of 0.251 has a precision of 1. This is due to 0.25 being displayed as 25%.\\nThe identifier format will always have a precision of 0.\",\n \"type\": \"integer\",\n \"example\": 2\n },\n \"format\": {\n \"description\": \"The format of this custom field.\",\n \"type\": \"string\",\n \"enum\": [\n \"currency\",\n \"identifier\",\n \"percentage\",\n \"custom\",\n \"duration\",\n \"none\"\n ],\n \"example\": \"custom\"\n },\n \"currency_code\": {\n \"description\": \"ISO 4217 currency code to format this custom field. This will be null if the `format` is not `currency`.\",\n \"type\": \"string\",\n \"nullable\": true,\n \"example\": \"EUR\"\n },\n \"custom_label\": {\n \"description\": \"This is the string that appears next to the custom field value. This will be null if the `format` is not `custom`.\",\n \"type\": \"string\",\n \"nullable\": true,\n \"example\": \"gold pieces\"\n },\n \"custom_label_position\": {\n \"description\": \"Only relevant for custom fields with `custom` format. This depicts where to place the custom label. This will be null if the `format` is not `custom`.\",\n \"type\": \"string\",\n \"nullable\": true,\n \"enum\": [\n \"prefix\",\n \"suffix\",\n null\n ],\n \"example\": \"suffix\"\n },\n \"is_global_to_workspace\": {\n \"description\": \"This flag describes whether this custom field is available to every container in the workspace. Before project-specific custom fields, this field was always true.\",\n \"type\": \"boolean\",\n \"example\": true,\n \"readOnly\": true\n },\n \"has_notifications_enabled\": {\n \"description\": \"*Conditional*. This flag describes whether a follower of a task with this field should receive inbox notifications from changes to this field.\",\n \"type\": \"boolean\",\n \"example\": true\n },\n \"asana_created_field\": {\n \"description\": \"*Conditional*. A unique identifier to associate this field with the template source of truth.\",\n \"type\": \"string\",\n \"readOnly\": true,\n \"nullable\": true,\n \"enum\": [\n \"a_v_requirements\",\n \"account_name\",\n \"actionable\",\n \"align_shipping_link\",\n \"align_status\",\n \"allotted_time\",\n \"appointment\",\n \"approval_stage\",\n \"approved\",\n \"article_series\",\n \"board_committee\",\n \"browser\",\n \"campaign_audience\",\n \"campaign_project_status\",\n \"campaign_regions\",\n \"channel_primary\",\n \"client_topic_type\",\n \"complete_by\",\n \"contact\",\n \"contact_email_address\",\n \"content_channels\",\n \"content_channels_needed\",\n \"content_stage\",\n \"content_type\",\n \"contract\",\n \"contract_status\",\n \"cost\",\n \"creation_stage\",\n \"creative_channel\",\n \"creative_needed\",\n \"creative_needs\",\n \"data_sensitivity\",\n \"deal_size\",\n \"delivery_appt\",\n \"delivery_appt_date\",\n \"department\",\n \"department_responsible\",\n \"design_request_needed\",\n \"design_request_type\",\n \"discussion_category\",\n \"do_this_task\",\n \"editorial_content_status\",\n \"editorial_content_tag\",\n \"editorial_content_type\",\n \"effort\",\n \"effort_level\",\n \"est_completion_date\",\n \"estimated_time\",\n \"estimated_value\",\n \"expected_cost\",\n \"external_steps_needed\",\n \"favorite_idea\",\n \"feedback_type\",\n \"financial\",\n \"funding_amount\",\n \"grant_application_process\",\n \"hiring_candidate_status\",\n \"idea_status\",\n \"ids_link\",\n \"ids_patient_link\",\n \"implementation_stage\",\n \"insurance\",\n \"interview_area\",\n \"interview_question_score\",\n \"itero_scan_link\",\n \"job_s_applied_to\",\n \"lab\",\n \"launch_status\",\n \"lead_status\",\n \"localization_language\",\n \"localization_market_team\",\n \"localization_status\",\n \"meeting_minutes\",\n \"meeting_needed\",\n \"minutes\",\n \"mrr\",\n \"must_localize\",\n \"name_of_foundation\",\n \"need_to_follow_up\",\n \"next_appointment\",\n \"next_steps_sales\",\n \"num_people\",\n \"number_of_user_reports\",\n \"office_location\",\n \"onboarding_activity\",\n \"owner\",\n \"participants_needed\",\n \"patient_date_of_birth\",\n \"patient_email\",\n \"patient_phone\",\n \"patient_status\",\n \"phone_number\",\n \"planning_category\",\n \"point_of_contact\",\n \"position\",\n \"post_format\",\n \"prescription\",\n \"priority\",\n \"priority_level\",\n \"product\",\n \"product_stage\",\n \"progress\",\n \"project_size\",\n \"project_status\",\n \"proposed_budget\",\n \"publish_status\",\n \"reason_for_scan\",\n \"referral\",\n \"request_type\",\n \"research_status\",\n \"responsible_department\",\n \"responsible_team\",\n \"risk_assessment_status\",\n \"room_name\",\n \"sales_counterpart\",\n \"sentiment\",\n \"shipping_link\",\n \"social_channels\",\n \"stage\",\n \"status\",\n \"status_design\",\n \"status_of_initiative\",\n \"system_setup\",\n \"task_progress\",\n \"team\",\n \"team_marketing\",\n \"team_responsible\",\n \"time_it_takes_to_complete_tasks\",\n \"timeframe\",\n \"treatment_type\",\n \"type_work_requests_it\",\n \"use_agency\",\n \"user_name\",\n \"vendor_category\",\n \"vendor_type\",\n \"word_count\",\n null\n ],\n \"example\": \"priority\"\n }\n }\n }\n ]\n },\n {\n \"type\": \"object\",\n \"required\": [\n \"workspace\"\n ],\n \"properties\": {\n \"workspace\": {\n \"type\": \"string\",\n \"description\": \"*Create-Only* The workspace to create a custom field in.\",\n \"example\": \"1331\"\n },\n \"owned_by_app\": {\n \"type\": \"boolean\",\n \"description\": \"*Allow-listed*. Instructs the API that this Custom Field is app-owned. This parameter is allow-listed to specific apps at this point in time. For apps that are not allow-listed, providing this parameter will result in a `403 Forbidden`.\"\n },\n \"people_value\": {\n \"description\": \"*Conditional*. Only relevant for custom fields of type `people`. This array of user GIDs reflects the users to be written to a `people` custom field. Note that *write* operations will replace existing users (if any) in the custom field with the users specified in this array.\",\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"description\": \"The GID of a user.\"\n },\n \"example\": [\n \"12345\"\n ]\n },\n \"reference_value\": {\n \"description\": \"*Conditional*. Only relevant for custom fields of type `reference`. This array of GIDs reflects the objects to be written to a `reference` custom field. Note that *write* operations will replace existing objects (if any) in the custom field with the objects specified in this array.\",\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"description\": \"The GID of an object.\"\n },\n \"example\": [\n \"12345\"\n ]\n }\n }\n }\n ]\n },\n {\n \"type\": \"object\",\n \"required\": [\n \"resource_subtype\"\n ],\n \"properties\": {\n \"resource_subtype\": {\n \"description\": \"The type of the custom field. Must be one of the given values.\",\n \"type\": \"string\",\n \"example\": \"text\",\n \"enum\": [\n \"text\",\n \"enum\",\n \"multi_enum\",\n \"number\",\n \"date\",\n \"people\",\n \"reference\"\n ]\n }\n }\n }\n ]\n }\n ]\n },\n \"is_important\": {\n \"description\": \"Whether this field should be considered important to this container (for instance, to display in the list view of items in the container).\",\n \"type\": \"boolean\",\n \"example\": true\n },\n \"insert_before\": {\n \"description\": \"A gid of a Custom Field Setting on this container, before which the new Custom Field Setting will be added. `insert_before` and `insert_after` parameters cannot both be specified.\",\n \"type\": \"string\",\n \"example\": \"1331\"\n },\n \"insert_after\": {\n \"description\": \"A gid of a Custom Field Setting on this container, after which the new Custom Field Setting will be added. `insert_before` and `insert_after` parameters cannot both be specified.\",\n \"type\": \"string\",\n \"example\": \"1331\"\n }\n }\n }\n }\n }\n }\n }\n}",
|
|
"use_request_body_schema_mode": true,
|
|
"validate_request_body_schema": true
|
|
}
|
|
}
|