Skip to content

Update a goal metric

API Reference

Updates a goal's existing metric's current_number_value if one exists, otherwise responds with a 400 status code.

Returns the complete updated goal metric record.

OpenAPI definition

json
{
  "openapi": "3.0.0",
  "info": {
    "description": "This is the interface for interacting with the Asana Platform. Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml).",
    "x-public-description": "This is the interface for interacting with the Asana Platform. Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml).",
    "title": "Asana",
    "termsOfService": "https://asana.com/terms",
    "contact": {
      "name": "Asana Support",
      "url": "https://asana.com/support"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "version": "1.0",
    "x-docs-schema-whitelist": [
      "AsanaResource",
      "AsanaNamedResource",
      "AuditLogEvent",
      "AttachmentResponse",
      "AttachmentCompact",
      "BatchResponse",
      "CustomFieldSettingResponse",
      "CustomFieldSettingCompact",
      "CustomTypeResponse",
      "CustomTypeBase",
      "CustomTypeCompact",
      "CustomTypeStatusOptionResponse",
      "CustomTypeStatusOptionBase",
      "CustomTypeStatusOptionCompact",
      "CustomFieldResponse",
      "CustomFieldCompact",
      "CustomFieldMembershipCompact",
      "CustomFieldMembershipResponse",
      "EnumOption",
      "EventResponse",
      "ErrorResponse",
      "GoalResponse",
      "GoalCompact",
      "GoalMembershipCompact",
      "GoalMembershipBase",
      "GoalMembershipResponse",
      "GoalRelationshipResponse",
      "GoalRelationshipCompact",
      "GraphExportResponse",
      "GraphExportCompact",
      "JobResponse",
      "JobCompact",
      "OrganizationExportResponse",
      "OrganizationExportCompact",
      "PortfolioMembershipResponse",
      "PortfolioMembershipCompact",
      "PortfolioResponse",
      "PortfolioCompact",
      "ProjectBriefResponse",
      "ProjectBriefCompact",
      "ProjectMembershipCompactResponse",
      "ProjectMembershipNormalResponse",
      "ProjectMembershipCompact",
      "ProjectResponse",
      "ProjectCompact",
      "ProjectStatusResponse",
      "ProjectStatusCompact",
      "ProjectTemplateCompact",
      "ProjectTemplateResponse",
      "RuleTriggerResponse",
      "ResourceExportResponse",
      "ResourceExportCompact",
      "ResourceExportCompact",
      "RbacRoleResponse",
      "RbacRoleCompact",
      "SectionResponse",
      "SectionCompact",
      "StatusUpdateResponse",
      "StatusUpdateCompact",
      "StoryResponse",
      "StoryCompact",
      "TagResponse",
      "TagCompact",
      "TaskResponse",
      "TaskCompact",
      "TaskCountResponse",
      "TeamMembershipResponse",
      "TeamMembershipCompact",
      "TeamResponse",
      "TeamCompact",
      "TimePeriodResponse",
      "TimePeriodCompact",
      "TimeTrackingCategoryResponse",
      "TimeTrackingCategoryCompact",
      "UserTaskListResponse",
      "UserTaskListCompact",
      "UserResponse",
      "UserCompact",
      "WebhookFilter",
      "WebhookResponse",
      "WebhookCompact",
      "WorkspaceMembershipResponse",
      "WorkspaceMembershipCompact",
      "WorkspaceResponse",
      "WorkspaceCompact"
    ]
  },
  "servers": [
    {
      "url": "https://app.asana.com/api/1.0",
      "description": "Main endpoint."
    }
  ],
  "security": [
    {
      "personalAccessToken": []
    },
    {
      "oauth2": []
    }
  ],
  "x-readme": {
    "proxy-enabled": false
  },
  "tags": [
    {
      "name": "Goals",
      "description": "A goal is an object in the goal-tracking system that helps your organization drive measurable results."
    }
  ],
  "components": {
    "parameters": {
      "pretty": {
        "name": "opt_pretty",
        "in": "query",
        "description": "Provides “pretty” output.\nProvides the response in a “pretty” 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.",
        "required": false,
        "allowEmptyValue": true,
        "schema": {
          "type": "boolean"
        },
        "style": "form",
        "example": true
      },
      "goal_path_gid": {
        "name": "goal_gid",
        "in": "path",
        "description": "Globally unique identifier for the goal.",
        "required": true,
        "schema": {
          "type": "string"
        },
        "example": "12345",
        "x-env-variable": "goal"
      }
    },
    "responses": {
      "BadRequest": {
        "description": "This usually occurs because of a missing or malformed parameter. Check the documentation and the syntax of your request and try again.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "A valid authentication token was not provided with the request, so the API could not associate a user with the request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "PaymentRequired": {
        "description": "The request was valid, but the queried object or object mutation specified in the request is above your current premium level.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "Forbidden": {
        "description": "The authentication and request syntax was valid but the server is refusing to complete the request. This can happen if you try to read or write to objects or properties that the user does not have access to.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "NotFound": {
        "description": "Either the request method and path supplied do not specify a known action in the API, or the object specified by the request does not exist.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "There was a problem on Asana’s end. In the event of a server error the response body should contain an error phrase. These phrases can be used by Asana support to quickly look up the incident that caused the server error. Some errors are due to server load, and will not supply an error phrase.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      }
    },
    "schemas": {
      "AsanaNamedResource": {
        "description": "A generic Asana Resource, containing a globally unique identifier.",
        "type": "object",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the resource, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345",
            "x-insert-after": false
          },
          "resource_type": {
            "description": "The base type of this resource.",
            "type": "string",
            "readOnly": true,
            "example": "task",
            "x-insert-after": "gid"
          },
          "name": {
            "description": "The name of the object.",
            "type": "string",
            "example": "Bug Task"
          }
        }
      },
      "CustomFieldBase": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CustomFieldCompact"
          },
          {
            "type": "object",
            "properties": {
              "description": {
                "description": "[Opt In](/guides/platform/inputoutput-options). The description of the custom field.",
                "type": "string",
                "example": "Development team priority"
              },
              "enum_options": {
                "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/custom-fields/createenumoptionforcustomfield).",
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/EnumOption"
                }
              },
              "precision": {
                "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.",
                "type": "integer",
                "example": 2
              },
              "format": {
                "description": "The format of this custom field.",
                "type": "string",
                "enum": [
                  "currency",
                  "identifier",
                  "percentage",
                  "custom",
                  "duration",
                  "none"
                ],
                "example": "custom"
              },
              "currency_code": {
                "description": "ISO 4217 currency code to format this custom field. This will be null if the `format` is not `currency`.",
                "type": "string",
                "nullable": true,
                "example": "EUR"
              },
              "custom_label": {
                "description": "This is the string that appears next to the custom field value. This will be null if the `format` is not `custom`.",
                "type": "string",
                "nullable": true,
                "example": "gold pieces"
              },
              "custom_label_position": {
                "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`.",
                "type": "string",
                "nullable": true,
                "enum": [
                  "prefix",
                  "suffix",
                  null
                ],
                "example": "suffix"
              },
              "is_global_to_workspace": {
                "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.",
                "type": "boolean",
                "example": true,
                "readOnly": true
              },
              "has_notifications_enabled": {
                "description": "*Conditional*. This flag describes whether a follower of a task with this field should receive inbox notifications from changes to this field.",
                "type": "boolean",
                "example": true
              },
              "asana_created_field": {
                "description": "*Conditional*. A unique identifier to associate this field with the template source of truth.",
                "type": "string",
                "readOnly": true,
                "nullable": true,
                "enum": [
                  "a_v_requirements",
                  "account_name",
                  "actionable",
                  "align_shipping_link",
                  "align_status",
                  "allotted_time",
                  "appointment",
                  "approval_stage",
                  "approved",
                  "article_series",
                  "board_committee",
                  "browser",
                  "campaign_audience",
                  "campaign_project_status",
                  "campaign_regions",
                  "channel_primary",
                  "client_topic_type",
                  "complete_by",
                  "contact",
                  "contact_email_address",
                  "content_channels",
                  "content_channels_needed",
                  "content_stage",
                  "content_type",
                  "contract",
                  "contract_status",
                  "cost",
                  "creation_stage",
                  "creative_channel",
                  "creative_needed",
                  "creative_needs",
                  "data_sensitivity",
                  "deal_size",
                  "delivery_appt",
                  "delivery_appt_date",
                  "department",
                  "department_responsible",
                  "design_request_needed",
                  "design_request_type",
                  "discussion_category",
                  "do_this_task",
                  "editorial_content_status",
                  "editorial_content_tag",
                  "editorial_content_type",
                  "effort",
                  "effort_level",
                  "est_completion_date",
                  "estimated_time",
                  "estimated_value",
                  "expected_cost",
                  "external_steps_needed",
                  "favorite_idea",
                  "feedback_type",
                  "financial",
                  "funding_amount",
                  "grant_application_process",
                  "hiring_candidate_status",
                  "idea_status",
                  "ids_link",
                  "ids_patient_link",
                  "implementation_stage",
                  "insurance",
                  "interview_area",
                  "interview_question_score",
                  "itero_scan_link",
                  "job_s_applied_to",
                  "lab",
                  "launch_status",
                  "lead_status",
                  "localization_language",
                  "localization_market_team",
                  "localization_status",
                  "meeting_minutes",
                  "meeting_needed",
                  "minutes",
                  "mrr",
                  "must_localize",
                  "name_of_foundation",
                  "need_to_follow_up",
                  "next_appointment",
                  "next_steps_sales",
                  "num_people",
                  "number_of_user_reports",
                  "office_location",
                  "onboarding_activity",
                  "owner",
                  "participants_needed",
                  "patient_date_of_birth",
                  "patient_email",
                  "patient_phone",
                  "patient_status",
                  "phone_number",
                  "planning_category",
                  "point_of_contact",
                  "position",
                  "post_format",
                  "prescription",
                  "priority",
                  "priority_level",
                  "product",
                  "product_stage",
                  "progress",
                  "project_size",
                  "project_status",
                  "proposed_budget",
                  "publish_status",
                  "reason_for_scan",
                  "referral",
                  "request_type",
                  "research_status",
                  "responsible_department",
                  "responsible_team",
                  "risk_assessment_status",
                  "room_name",
                  "sales_counterpart",
                  "sentiment",
                  "shipping_link",
                  "social_channels",
                  "stage",
                  "status",
                  "status_design",
                  "status_of_initiative",
                  "system_setup",
                  "task_progress",
                  "team",
                  "team_marketing",
                  "team_responsible",
                  "time_it_takes_to_complete_tasks",
                  "timeframe",
                  "treatment_type",
                  "type_work_requests_it",
                  "use_agency",
                  "user_name",
                  "vendor_category",
                  "vendor_type",
                  "word_count",
                  null
                ],
                "example": "priority"
              }
            }
          }
        ]
      },
      "CustomFieldCompact": {
        "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/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, 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`.",
        "type": "object",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the resource, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345",
            "x-insert-after": false
          },
          "resource_type": {
            "description": "The base type of this resource.",
            "type": "string",
            "readOnly": true,
            "example": "custom_field",
            "x-insert-after": "gid"
          },
          "name": {
            "description": "The name of the custom field.",
            "type": "string",
            "example": "Status"
          },
          "type": {
            "description": "*Deprecated: new integrations should prefer the resource_subtype field.* The type of the custom field. Must be one of the given values.\n",
            "type": "string",
            "readOnly": true,
            "enum": [
              "text",
              "enum",
              "multi_enum",
              "number",
              "date",
              "people"
            ]
          },
          "enum_options": {
            "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/custom-fields/createenumoptionforcustomfield).",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnumOption"
            }
          },
          "enabled": {
            "description": "*Conditional*. This field applies only to [custom field values](/guides/platform/custom-fields-guide#/accessing-custom-field-values-on-tasks-or-projects) and is not available for [custom field definitions](/guides/platform/custom-fields-guide#/accessing-custom-field-definitions).\nDetermines if the custom field is enabled or not. For more details, see the [Custom Fields documentation](/guides/platform/custom-fields-guide#/enabled-and-disabled-values).",
            "type": "boolean",
            "readOnly": true,
            "example": true
          },
          "representation_type": {
            "description": "This field tells the type of the custom field.",
            "type": "string",
            "example": "number",
            "readOnly": true,
            "enum": [
              "text",
              "enum",
              "multi_enum",
              "number",
              "date",
              "people",
              "formula",
              "custom_id"
            ]
          },
          "id_prefix": {
            "description": "This field is the unique custom ID string for the custom field.",
            "type": "string",
            "nullable": true,
            "example": "ID"
          },
          "input_restrictions": {
            "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.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": "task"
          },
          "is_formula_field": {
            "description": "*Conditional*. This flag describes whether a custom field is a formula custom field.",
            "type": "boolean",
            "example": false
          },
          "date_value": {
            "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`.",
            "type": "object",
            "nullable": true,
            "properties": {
              "date": {
                "type": "string",
                "description": "A string representing the date in YYYY-MM-DD format.",
                "example": "2024-08-23"
              },
              "date_time": {
                "type": "string",
                "description": "A string representing the date in ISO 8601 format. If no time value is selected, the value of `date-time` will be `null`.",
                "example": "2024-08-23T22:00:00.000Z"
              }
            }
          },
          "enum_value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EnumOption"
              },
              {
                "type": "object",
                "nullable": true,
                "description": "*Conditional*. Only relevant for custom fields of type `enum`. This object is the chosen value of an `enum` custom field."
              }
            ]
          },
          "multi_enum_values": {
            "description": "*Conditional*. Only relevant for custom fields of type `multi_enum`. This object is the chosen values of a `multi_enum` custom field.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnumOption"
            }
          },
          "number_value": {
            "description": "*Conditional*. This number is the value of a `number` custom field.",
            "type": "number",
            "nullable": true,
            "example": 5.2
          },
          "text_value": {
            "description": "*Conditional*. This string is the value of a `text` custom field.",
            "type": "string",
            "nullable": true,
            "example": "Some Value"
          },
          "display_value": {
            "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.",
            "type": "string",
            "readOnly": true,
            "example": "blue",
            "nullable": true
          }
        }
      },
      "CustomFieldResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CustomFieldBase"
          },
          {
            "type": "object",
            "properties": {
              "representation_type": {
                "description": "This field tells the type of the custom field.",
                "type": "string",
                "example": "number",
                "readOnly": true,
                "enum": [
                  "text",
                  "enum",
                  "multi_enum",
                  "number",
                  "date",
                  "people",
                  "formula",
                  "custom_id",
                  "reference"
                ]
              },
              "id_prefix": {
                "description": "This field is the unique custom ID string for the custom field.",
                "type": "string",
                "nullable": true,
                "example": "ID"
              },
              "input_restrictions": {
                "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.",
                "type": "array",
                "items": {
                  "type": "string"
                },
                "example": "task"
              },
              "is_formula_field": {
                "description": "*Conditional*. This flag describes whether a custom field is a formula custom field.",
                "type": "boolean",
                "example": false
              },
              "is_value_read_only": {
                "description": "*Conditional*. This flag describes whether a custom field is read only.",
                "type": "boolean",
                "example": false
              },
              "created_by": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UserCompact"
                  },
                  {
                    "nullable": true
                  }
                ]
              },
              "people_value": {
                "description": "*Conditional*. Only relevant for custom fields of type `people`. This array of [compact user](/reference/users/users) objects reflects the values of a `people` custom field.",
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UserCompact"
                }
              },
              "reference_value": {
                "description": "*Conditional*. Only relevant for custom fields of type `reference`. This array of objects reflects the values of a `reference` custom field.",
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AsanaNamedResource"
                }
              },
              "html_text_value": {
                "description": "*Conditional*. Only relevant for custom fields of type `text`. This is the HTML representation of the text value of a custom field, corresponding to the `text_value` plain-text field.",
                "type": "string",
                "readOnly": true,
                "nullable": true,
                "example": "<body>Some Value</body>"
              },
              "privacy_setting": {
                "description": "The privacy setting of the custom field. *Note: Administrators in your organization may restrict the values of `privacy_setting`.*",
                "type": "string",
                "enum": [
                  "public_with_guests",
                  "public",
                  "private"
                ],
                "example": "public_with_guests"
              },
              "default_access_level": {
                "description": "The default access level when inviting new members to the custom field. This isn't applied when the `privacy_setting` is `private`, or the user is a guest. For local fields in a project or portfolio, the user must additionally have permission to modify the container itself.",
                "type": "string",
                "enum": [
                  "admin",
                  "editor",
                  "user"
                ],
                "example": "user"
              },
              "resource_subtype": {
                "description": "The type of the custom field. Must be one of the given values.\n",
                "type": "string",
                "readOnly": true,
                "example": "text",
                "enum": [
                  "text",
                  "enum",
                  "multi_enum",
                  "number",
                  "date",
                  "people",
                  "reference"
                ]
              }
            }
          }
        ]
      },
      "CustomFieldSettingCompact": {
        "description": "Custom Fields Settings objects represent the many-to-many join of the Custom Field and Project as well as stores information that is relevant to that particular pairing.",
        "type": "object",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the resource, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345",
            "x-insert-after": false
          },
          "resource_type": {
            "description": "The base type of this resource.",
            "type": "string",
            "readOnly": true,
            "example": "custom_field_setting",
            "x-insert-after": "gid"
          }
        }
      },
      "CustomFieldSettingResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CustomFieldSettingCompact"
          },
          {
            "type": "object",
            "properties": {
              "project": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ProjectCompact"
                  },
                  {
                    "type": "object",
                    "description": "*Deprecated: new integrations should prefer the `parent` field.* The id of the project that this custom field settings refers to.",
                    "readOnly": true
                  }
                ]
              },
              "is_important": {
                "description": "`is_important` is used in the Asana web application to determine if this custom field is displayed in the list/grid view of a project or portfolio.",
                "type": "boolean",
                "readOnly": true,
                "example": false
              },
              "parent": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ProjectCompact"
                  },
                  {
                    "type": "object",
                    "description": "The parent to which the custom field is applied. This can be a project or portfolio and indicates that the tasks or projects that the parent contains may be given custom field values for this custom field.",
                    "readOnly": true
                  }
                ]
              },
              "custom_field": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CustomFieldResponse"
                  },
                  {
                    "type": "object",
                    "description": "The custom field that is applied to the `parent`.",
                    "readOnly": true
                  }
                ]
              }
            }
          }
        ]
      },
      "EnumOption": {
        "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 “trashing” the enum option in the Asana web app within the “Edit Fields” 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.",
        "type": "object",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the resource, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345",
            "x-insert-after": false
          },
          "resource_type": {
            "description": "The base type of this resource.",
            "type": "string",
            "readOnly": true,
            "example": "enum_option",
            "x-insert-after": "gid"
          },
          "name": {
            "description": "The name of the enum option.",
            "type": "string",
            "example": "Low"
          },
          "enabled": {
            "description": "Whether or not the enum option is a selectable value for the custom field.",
            "type": "boolean",
            "example": true
          },
          "color": {
            "description": "The color of the enum option. Defaults to `none`.",
            "type": "string",
            "example": "blue"
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "readOnly": true,
            "description": "Message providing more detail about the error that occurred, if available.",
            "example": "project: Missing input"
          },
          "help": {
            "type": "string",
            "readOnly": true,
            "description": "Additional information directing developers to resources on how to address and fix the problem, if available.",
            "example": "For more information on API status codes and how to handle them, read the docs on errors: https://asana.github.io/developer-docs/#errors'"
          },
          "phrase": {
            "type": "string",
            "readOnly": true,
            "description": "*500 errors only*. A unique error phrase which can be used when contacting developer support to help identify the exact occurrence of the problem in Asana's logs.",
            "example": "6 sad squid snuggle softly"
          }
        }
      },
      "ErrorResponse": {
        "description": "Sadly, sometimes requests to the API are not successful. Failures can\noccur for a wide range of reasons. In all cases, the API should return\nan HTTP Status Code that indicates the nature of the failure,\nwith a response body in JSON format containing additional information.\n\n\nIn the event of a server error the response body will contain an error\nphrase. These phrases are automatically generated using the\nnode-asana-phrase\nlibrary and can be used by\nAsana support to quickly look up the incident that caused the server\nerror.",
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "GoalBase": {
        "description": "A generic Asana Resource, containing a globally unique identifier.",
        "type": "object",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the resource, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345",
            "x-insert-after": false
          },
          "resource_type": {
            "description": "The base type of this resource.",
            "type": "string",
            "readOnly": true,
            "example": "goal",
            "x-insert-after": "gid"
          },
          "name": {
            "type": "string",
            "description": "The name of the goal.",
            "example": "Grow web traffic by 30%"
          },
          "html_notes": {
            "type": "string",
            "description": "The notes of the goal with formatting as HTML.",
            "example": "<body>Start building brand awareness.</body>"
          },
          "notes": {
            "type": "string",
            "description": "Free-form textual information associated with the goal (i.e. its description).",
            "example": "Start building brand awareness."
          },
          "due_on": {
            "type": "string",
            "description": "The localized day on which this goal is due. This takes a date with format `YYYY-MM-DD`.",
            "example": "2019-09-15",
            "nullable": true
          },
          "start_on": {
            "type": "string",
            "description": "The day on which work for this goal begins, or null if the goal has no start date. This takes a date with `YYYY-MM-DD` format, and cannot be set unless there is an accompanying due date.",
            "example": "2019-09-14",
            "nullable": true
          },
          "is_workspace_level": {
            "type": "boolean",
            "description": "*Conditional*. This property is only present when the `workspace` provided is an organization. Whether the goal belongs to the `workspace` (and is listed as part of the workspace’s goals) or not. If it isn’t a workspace-level goal, it is a team-level goal, and is associated with the goal’s team.",
            "example": true
          },
          "liked": {
            "type": "boolean",
            "description": "True if the goal is liked by the authorized user, false if not.",
            "example": false
          }
        }
      },
      "GoalMetricBase": {
        "description": "A generic Asana Resource, containing a globally unique identifier.",
        "type": "object",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the resource, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345",
            "x-insert-after": false
          },
          "resource_type": {
            "description": "The base type of this resource.",
            "type": "string",
            "readOnly": true,
            "example": "task",
            "x-insert-after": "gid"
          },
          "resource_subtype": {
            "description": "The subtype of this resource. Different subtypes retain many of the same fields and behavior, but may render differently in Asana or represent resources with different semantic meaning.",
            "type": "string",
            "readOnly": true,
            "example": "number",
            "enum": [
              "number"
            ]
          },
          "precision": {
            "description": "*Conditional*. Only relevant for goal metrics 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%.",
            "type": "integer",
            "example": 2
          },
          "unit": {
            "description": "A supported unit of measure for the goal metric, or none.",
            "type": "string",
            "enum": [
              "none",
              "currency",
              "percentage"
            ]
          },
          "currency_code": {
            "description": "ISO 4217 currency code to format this custom field. This will be null if the `unit` is not `currency`.",
            "type": "string",
            "nullable": true,
            "example": "EUR"
          },
          "initial_number_value": {
            "description": "This number is the start value of a goal metric of type number.",
            "type": "number",
            "example": 5.2
          },
          "target_number_value": {
            "description": "This number is the end value of a goal metric of type number. This number cannot equal `initial_number_value`.",
            "type": "number",
            "example": 10.2
          },
          "current_number_value": {
            "description": "This number is the current value of a goal metric of type number.",
            "type": "number",
            "example": 8.12
          },
          "current_display_value": {
            "description": "This string is the current value of a goal metric of type string.",
            "type": "string",
            "readOnly": true,
            "example": "8.12"
          },
          "progress_source": {
            "description": "This field defines how the progress value of a goal metric is being calculated. A goal's progress can be provided manually by the user, calculated automatically from contributing subgoals, projects, or tasks, or managed by an integration with an external data source, such as Salesforce.",
            "type": "string",
            "enum": [
              "manual",
              "subgoal_progress",
              "project_task_completion",
              "project_milestone_completion",
              "task_completion",
              "external"
            ],
            "example": "manual"
          },
          "is_custom_weight": {
            "description": "*Conditional*. Only relevant if `metric.progress_source` is one of `subgoal_progress`, `project_task_completion`, `project_milestone_completion`, or `task_completion`. If true, we use the supporting object's custom weight to calculate the goal's progress. If false, we treat all supporting objects as equally weighted",
            "type": "boolean",
            "example": false
          }
        }
      },
      "GoalMetricCurrentValueRequest": {
        "description": "A generic Asana Resource, containing a globally unique identifier.",
        "type": "object",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the resource, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345",
            "x-insert-after": false
          },
          "resource_type": {
            "description": "The base type of this resource.",
            "type": "string",
            "readOnly": true,
            "example": "task",
            "x-insert-after": "gid"
          },
          "current_number_value": {
            "description": "*Conditional*. This number is the current value of a goal metric of type number.",
            "type": "number",
            "example": 8.12
          }
        }
      },
      "GoalResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/GoalBase"
          },
          {
            "type": "object",
            "properties": {
              "likes": {
                "description": "Array of likes for users who have liked this goal.",
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Like"
                },
                "readOnly": true
              },
              "num_likes": {
                "description": "The number of users who have liked this goal.",
                "type": "integer",
                "readOnly": true,
                "example": 5
              },
              "team": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TeamCompact"
                  },
                  {
                    "type": "object",
                    "nullable": true,
                    "description": "*Conditional*. This property is only present when the `workspace` provided is an organization."
                  }
                ]
              },
              "workspace": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/WorkspaceCompact"
                  },
                  {
                    "type": "object"
                  }
                ]
              },
              "followers": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UserCompact"
                },
                "description": "Array of users who are members of this goal."
              },
              "time_period": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TimePeriodCompact"
                  },
                  {
                    "type": "object",
                    "nullable": true
                  }
                ]
              },
              "metric": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/GoalMetricBase"
                  },
                  {
                    "type": "object",
                    "nullable": true,
                    "properties": {
                      "can_manage": {
                        "description": "*Conditional*. Only relevant for `progress_source` of type `external`. This boolean indicates whether the requester has the ability to update the current value of this metric. This returns `true` if the external metric was created by the requester, `false` otherwise.",
                        "type": "boolean",
                        "readOnly": true,
                        "example": true
                      }
                    }
                  }
                ]
              },
              "owner": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UserCompact"
                  },
                  {
                    "type": "object",
                    "nullable": true
                  }
                ]
              },
              "current_status_update": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/StatusUpdateCompact"
                  },
                  {
                    "description": "The latest `status_update` posted to this goal.",
                    "nullable": true
                  }
                ]
              },
              "status": {
                "type": "string",
                "readOnly": true,
                "description": "The current status of this goal. When the goal is open, its status can be `green`, `yellow`, and `red` to reflect \"On Track\", \"At Risk\", and \"Off Track\", respectively. When the goal is closed, the value can be `missed`, `achieved`, `partial`, or `dropped`.\n*Note* you can only write to this property if `metric` is set.",
                "example": "green",
                "nullable": true
              },
              "privacy_setting": {
                "type": "string",
                "description": "The privacy setting of the goal.",
                "enum": [
                  "public_to_workspace",
                  "members_only"
                ],
                "example": "public_to_workspace"
              },
              "default_access_level": {
                "type": "string",
                "description": "The default access level when inviting new members to the goal",
                "enum": [
                  "admin",
                  "editor",
                  "commenter",
                  "viewer"
                ],
                "example": "editor"
              },
              "custom_fields": {
                "description": "Array of custom field values applied directly to the goal itself. These represent the values set on the goal, not the fields available for items in the goal.",
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CustomFieldCompact"
                }
              },
              "custom_field_settings": {
                "description": "Array of custom field definitions that are enabled for the goal. These represent which custom fields are available to be used on items within the goal, but do not include any values.",
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CustomFieldSettingResponse"
                }
              }
            }
          }
        ]
      },
      "Like": {
        "type": "object",
        "description": "An object to represent a user's like.",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the object, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345"
          },
          "user": {
            "$ref": "#/components/schemas/UserCompact"
          }
        }
      },
      "ProjectCompact": {
        "description": "A *project* represents a prioritized list of tasks in Asana or a board with columns of tasks represented as cards. It exists in a single workspace or organization and is accessible to a subset of users in that workspace or organization, depending on its permissions.",
        "type": "object",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the resource, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345",
            "x-insert-after": false
          },
          "resource_type": {
            "description": "The base type of this resource.",
            "type": "string",
            "readOnly": true,
            "example": "project",
            "x-insert-after": "gid"
          },
          "name": {
            "description": "Name of the project. This is generally a short sentence fragment that fits on a line in the UI for maximum readability. However, it can be longer.",
            "type": "string",
            "example": "Stuff to buy"
          }
        }
      },
      "StatusUpdateCompact": {
        "description": "A *status update* is an update on the progress of a particular project, portfolio, or goal, and is sent out to all of its parent's followers when created. These updates include both text describing the update and a `status_type` intended to represent the overall state of the object.",
        "type": "object",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the resource, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345",
            "x-insert-after": false
          },
          "resource_type": {
            "description": "The base type of this resource.",
            "type": "string",
            "readOnly": true,
            "example": "status_update",
            "x-insert-after": "gid"
          },
          "title": {
            "description": "The title of the status update.",
            "type": "string",
            "example": "Status Update - Jun 15"
          },
          "resource_subtype": {
            "type": "string",
            "description": "The subtype of this resource. Different subtypes retain many of the same fields and behavior, but may render differently in Asana or represent resources with different semantic meaning.\nThe `resource_subtype`s for `status` objects represent the type of their parent.",
            "enum": [
              "project_status_update",
              "portfolio_status_update",
              "goal_status_update"
            ],
            "example": "project_status_update",
            "readOnly": true
          }
        }
      },
      "TeamCompact": {
        "description": "<p><strong}>Full object requires scope: </strong>teams:read</p>\n\nA *team* is used to group related projects and people together within an organization. Each project in an organization is associated with a team.",
        "type": "object",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the resource, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345",
            "x-insert-after": false
          },
          "resource_type": {
            "description": "The base type of this resource.",
            "type": "string",
            "readOnly": true,
            "example": "team",
            "x-insert-after": "gid"
          },
          "name": {
            "description": "The name of the team.",
            "type": "string",
            "example": "Marketing"
          }
        }
      },
      "TimePeriodCompact": {
        "description": "<p><strong}>Full object requires scope: </strong>time_periods:read</p>\n\nA generic Asana Resource, containing a globally unique identifier.",
        "type": "object",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the resource, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345",
            "x-insert-after": false
          },
          "resource_type": {
            "description": "The base type of this resource.",
            "type": "string",
            "readOnly": true,
            "example": "time_period",
            "x-insert-after": "gid"
          },
          "end_on": {
            "type": "string",
            "description": "The localized end date of the time period in `YYYY-MM-DD` format.",
            "example": "2019-09-14"
          },
          "start_on": {
            "type": "string",
            "description": "The localized start date of the time period in `YYYY-MM-DD` format.",
            "example": "2019-09-13"
          },
          "period": {
            "type": "string",
            "description": "The cadence and index of the time period.",
            "enum": [
              "FY",
              "H1",
              "H2",
              "Q1",
              "Q2",
              "Q3",
              "Q4"
            ],
            "example": "Q1"
          },
          "display_name": {
            "type": "string",
            "description": "A string representing the cadence code and the fiscal year.",
            "example": "Q1 FY22"
          }
        }
      },
      "UserCompact": {
        "description": "A *user* object represents an account in Asana that can be given access to various workspaces, projects, and tasks.",
        "type": "object",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the resource, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345",
            "x-insert-after": false
          },
          "resource_type": {
            "description": "The base type of this resource.",
            "type": "string",
            "readOnly": true,
            "example": "user",
            "x-insert-after": "gid"
          },
          "name": {
            "type": "string",
            "description": "*Read-only except when same user as requester*. The user's name.",
            "example": "Greg Sanchez"
          }
        }
      },
      "WorkspaceCompact": {
        "description": "A *workspace* is the highest-level organizational unit in Asana. All projects and tasks have an associated workspace.",
        "type": "object",
        "properties": {
          "gid": {
            "description": "Globally unique identifier of the resource, as a string.",
            "type": "string",
            "readOnly": true,
            "example": "12345",
            "x-insert-after": false
          },
          "resource_type": {
            "description": "The base type of this resource.",
            "type": "string",
            "readOnly": true,
            "example": "workspace",
            "x-insert-after": "gid"
          },
          "name": {
            "description": "The name of the workspace.",
            "type": "string",
            "example": "My Company Workspace"
          }
        }
      }
    },
    "securitySchemes": {
      "personalAccessToken": {
        "type": "http",
        "description": "A personal access token allows access to the api for the user who created it. This should be kept a secret and be treated like a password.",
        "scheme": "bearer"
      },
      "oauth2": {
        "type": "oauth2",
        "description": "We require that applications designed to access the Asana API on behalf of multiple users implement OAuth 2.0.\nAsana supports the Authorization Code Grant flow.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://app.asana.com/-/oauth_authorize",
            "tokenUrl": "https://app.asana.com/-/oauth_token",
            "refreshUrl": "https://app.asana.com/-/oauth_token",
            "scopes": {
              "default": "Provides access to all endpoints documented in our API reference. If no scopes are requested, this scope is assumed by default.",
              "openid": "Provides access to OpenID Connect ID tokens and the OpenID Connect user info endpoint.",
              "email": "Provides access to the user’s email through the OpenID Connect user info endpoint.",
              "profile": "Provides access to the user’s name and profile photo through the OpenID Connect user info endpoint.",
              "attachments:read": "View access to attachments",
              "attachments:write": "Create and modify access to attachments",
              "attachments:delete": "Delete access to attachments",
              "custom_fields:read": "View access to custom fields",
              "custom_fields:write": "Create and modify access to custom fields",
              "goals:read": "View access to goals",
              "jobs:read": "View access to jobs",
              "ooo_entries:read": "View access to OOO entries",
              "ooo_entries:write": "Create and modify access to OOO entries",
              "ooo_entries:delete": "Delete access to OOO entries",
              "tasks:read": "View access to tasks",
              "tasks:write": "Create and modify access to tasks",
              "tasks:delete": "Delete access to tasks",
              "task_custom_types:read": "View access to task custom types",
              "task_templates:read": "View access to task templates",
              "team_memberships:read": "View access to team memberships",
              "portfolios:read": "View access to portfolios",
              "portfolios:write": "Create and modify access to portfolios",
              "project_templates:read": "View access to project templates",
              "project_portfolio_settings:read": "View access to project portfolio settings",
              "project_portfolio_settings:write": "Create and modify access to project portfolio settings",
              "projects:delete": "Delete access to projects",
              "projects:read": "View access to projects",
              "projects:write": "Create and modify access to projects",
              "roles:read": "View access to roles",
              "roles:write": "Create and modify access to roles",
              "roles:delete": "Delete access to roles",
              "users:read": "View access to users",
              "teams:read": "View access to teams",
              "time_tracking_categories:read": "View access to time tracking categories",
              "time_tracking_categories:write": "Create and modify access to time tracking categories",
              "time_tracking_categories:delete": "Delete access to time tracking categories",
              "time_tracking_entries:read": "View access to time tracking entries",
              "timesheet_approval_statuses:read": "View access to timesheet approval statuses",
              "timesheet_approval_statuses:write": "Create and modify access to timesheet approval statuses",
              "stories:read": "View access to stories",
              "stories:write": "Create and modify access to stories",
              "tags:read": "View access to tags",
              "tags:write": "Create and modify access to tags",
              "webhooks:read": "View access to webhooks",
              "webhooks:write": "Create and modify access to webhooks",
              "webhooks:delete": "Delete access to webhooks",
              "workspaces:read": "View access to workspaces"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/goals/{goal_gid}/setMetricCurrentValue": {
      "parameters": [
        {
          "$ref": "#/components/parameters/goal_path_gid"
        },
        {
          "$ref": "#/components/parameters/pretty"
        }
      ],
      "post": {
        "summary": "Update a goal metric",
        "description": "Updates a goal's existing metric's `current_number_value` if one exists,\notherwise responds with a 400 status code.\n\nReturns the complete updated goal metric record.",
        "tags": [
          "Goals"
        ],
        "operationId": "updateGoalMetric",
        "parameters": [
          {
            "name": "opt_fields",
            "in": "query",
            "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.",
            "required": false,
            "example": [
              "current_status_update",
              "current_status_update.resource_subtype",
              "current_status_update.title",
              "custom_field_settings",
              "custom_field_settings.custom_field",
              "custom_field_settings.custom_field.asana_created_field",
              "custom_field_settings.custom_field.created_by",
              "custom_field_settings.custom_field.created_by.name",
              "custom_field_settings.custom_field.currency_code",
              "custom_field_settings.custom_field.custom_label",
              "custom_field_settings.custom_field.custom_label_position",
              "custom_field_settings.custom_field.date_value",
              "custom_field_settings.custom_field.date_value.date",
              "custom_field_settings.custom_field.date_value.date_time",
              "custom_field_settings.custom_field.default_access_level",
              "custom_field_settings.custom_field.description",
              "custom_field_settings.custom_field.display_value",
              "custom_field_settings.custom_field.enabled",
              "custom_field_settings.custom_field.enum_options",
              "custom_field_settings.custom_field.enum_options.color",
              "custom_field_settings.custom_field.enum_options.enabled",
              "custom_field_settings.custom_field.enum_options.name",
              "custom_field_settings.custom_field.enum_value",
              "custom_field_settings.custom_field.enum_value.color",
              "custom_field_settings.custom_field.enum_value.enabled",
              "custom_field_settings.custom_field.enum_value.name",
              "custom_field_settings.custom_field.format",
              "custom_field_settings.custom_field.has_notifications_enabled",
              "custom_field_settings.custom_field.html_text_value",
              "custom_field_settings.custom_field.id_prefix",
              "custom_field_settings.custom_field.input_restrictions",
              "custom_field_settings.custom_field.is_formula_field",
              "custom_field_settings.custom_field.is_global_to_workspace",
              "custom_field_settings.custom_field.is_value_read_only",
              "custom_field_settings.custom_field.multi_enum_values",
              "custom_field_settings.custom_field.multi_enum_values.color",
              "custom_field_settings.custom_field.multi_enum_values.enabled",
              "custom_field_settings.custom_field.multi_enum_values.name",
              "custom_field_settings.custom_field.name",
              "custom_field_settings.custom_field.number_value",
              "custom_field_settings.custom_field.people_value",
              "custom_field_settings.custom_field.people_value.name",
              "custom_field_settings.custom_field.precision",
              "custom_field_settings.custom_field.privacy_setting",
              "custom_field_settings.custom_field.reference_value",
              "custom_field_settings.custom_field.reference_value.name",
              "custom_field_settings.custom_field.representation_type",
              "custom_field_settings.custom_field.resource_subtype",
              "custom_field_settings.custom_field.text_value",
              "custom_field_settings.custom_field.type",
              "custom_field_settings.is_important",
              "custom_field_settings.parent",
              "custom_field_settings.parent.name",
              "custom_field_settings.project",
              "custom_field_settings.project.name",
              "custom_fields",
              "custom_fields.date_value",
              "custom_fields.date_value.date",
              "custom_fields.date_value.date_time",
              "custom_fields.display_value",
              "custom_fields.enabled",
              "custom_fields.enum_options",
              "custom_fields.enum_options.color",
              "custom_fields.enum_options.enabled",
              "custom_fields.enum_options.name",
              "custom_fields.enum_value",
              "custom_fields.enum_value.color",
              "custom_fields.enum_value.enabled",
              "custom_fields.enum_value.name",
              "custom_fields.id_prefix",
              "custom_fields.input_restrictions",
              "custom_fields.is_formula_field",
              "custom_fields.multi_enum_values",
              "custom_fields.multi_enum_values.color",
              "custom_fields.multi_enum_values.enabled",
              "custom_fields.multi_enum_values.name",
              "custom_fields.name",
              "custom_fields.number_value",
              "custom_fields.representation_type",
              "custom_fields.text_value",
              "custom_fields.type",
              "default_access_level",
              "due_on",
              "followers",
              "followers.name",
              "html_notes",
              "is_workspace_level",
              "liked",
              "likes",
              "likes.user",
              "likes.user.name",
              "metric",
              "metric.can_manage",
              "metric.currency_code",
              "metric.current_display_value",
              "metric.current_number_value",
              "metric.initial_number_value",
              "metric.is_custom_weight",
              "metric.precision",
              "metric.progress_source",
              "metric.resource_subtype",
              "metric.target_number_value",
              "metric.unit",
              "name",
              "notes",
              "num_likes",
              "owner",
              "owner.name",
              "privacy_setting",
              "start_on",
              "status",
              "team",
              "team.name",
              "time_period",
              "time_period.display_name",
              "time_period.end_on",
              "time_period.period",
              "time_period.start_on",
              "workspace",
              "workspace.name"
            ],
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "current_status_update",
                  "current_status_update.resource_subtype",
                  "current_status_update.title",
                  "custom_field_settings",
                  "custom_field_settings.custom_field",
                  "custom_field_settings.custom_field.asana_created_field",
                  "custom_field_settings.custom_field.created_by",
                  "custom_field_settings.custom_field.created_by.name",
                  "custom_field_settings.custom_field.currency_code",
                  "custom_field_settings.custom_field.custom_label",
                  "custom_field_settings.custom_field.custom_label_position",
                  "custom_field_settings.custom_field.date_value",
                  "custom_field_settings.custom_field.date_value.date",
                  "custom_field_settings.custom_field.date_value.date_time",
                  "custom_field_settings.custom_field.default_access_level",
                  "custom_field_settings.custom_field.description",
                  "custom_field_settings.custom_field.display_value",
                  "custom_field_settings.custom_field.enabled",
                  "custom_field_settings.custom_field.enum_options",
                  "custom_field_settings.custom_field.enum_options.color",
                  "custom_field_settings.custom_field.enum_options.enabled",
                  "custom_field_settings.custom_field.enum_options.name",
                  "custom_field_settings.custom_field.enum_value",
                  "custom_field_settings.custom_field.enum_value.color",
                  "custom_field_settings.custom_field.enum_value.enabled",
                  "custom_field_settings.custom_field.enum_value.name",
                  "custom_field_settings.custom_field.format",
                  "custom_field_settings.custom_field.has_notifications_enabled",
                  "custom_field_settings.custom_field.html_text_value",
                  "custom_field_settings.custom_field.id_prefix",
                  "custom_field_settings.custom_field.input_restrictions",
                  "custom_field_settings.custom_field.is_formula_field",
                  "custom_field_settings.custom_field.is_global_to_workspace",
                  "custom_field_settings.custom_field.is_value_read_only",
                  "custom_field_settings.custom_field.multi_enum_values",
                  "custom_field_settings.custom_field.multi_enum_values.color",
                  "custom_field_settings.custom_field.multi_enum_values.enabled",
                  "custom_field_settings.custom_field.multi_enum_values.name",
                  "custom_field_settings.custom_field.name",
                  "custom_field_settings.custom_field.number_value",
                  "custom_field_settings.custom_field.people_value",
                  "custom_field_settings.custom_field.people_value.name",
                  "custom_field_settings.custom_field.precision",
                  "custom_field_settings.custom_field.privacy_setting",
                  "custom_field_settings.custom_field.reference_value",
                  "custom_field_settings.custom_field.reference_value.name",
                  "custom_field_settings.custom_field.representation_type",
                  "custom_field_settings.custom_field.resource_subtype",
                  "custom_field_settings.custom_field.text_value",
                  "custom_field_settings.custom_field.type",
                  "custom_field_settings.is_important",
                  "custom_field_settings.parent",
                  "custom_field_settings.parent.name",
                  "custom_field_settings.project",
                  "custom_field_settings.project.name",
                  "custom_fields",
                  "custom_fields.date_value",
                  "custom_fields.date_value.date",
                  "custom_fields.date_value.date_time",
                  "custom_fields.display_value",
                  "custom_fields.enabled",
                  "custom_fields.enum_options",
                  "custom_fields.enum_options.color",
                  "custom_fields.enum_options.enabled",
                  "custom_fields.enum_options.name",
                  "custom_fields.enum_value",
                  "custom_fields.enum_value.color",
                  "custom_fields.enum_value.enabled",
                  "custom_fields.enum_value.name",
                  "custom_fields.id_prefix",
                  "custom_fields.input_restrictions",
                  "custom_fields.is_formula_field",
                  "custom_fields.multi_enum_values",
                  "custom_fields.multi_enum_values.color",
                  "custom_fields.multi_enum_values.enabled",
                  "custom_fields.multi_enum_values.name",
                  "custom_fields.name",
                  "custom_fields.number_value",
                  "custom_fields.representation_type",
                  "custom_fields.text_value",
                  "custom_fields.type",
                  "default_access_level",
                  "due_on",
                  "followers",
                  "followers.name",
                  "html_notes",
                  "is_workspace_level",
                  "liked",
                  "likes",
                  "likes.user",
                  "likes.user.name",
                  "metric",
                  "metric.can_manage",
                  "metric.currency_code",
                  "metric.current_display_value",
                  "metric.current_number_value",
                  "metric.initial_number_value",
                  "metric.is_custom_weight",
                  "metric.precision",
                  "metric.progress_source",
                  "metric.resource_subtype",
                  "metric.target_number_value",
                  "metric.unit",
                  "name",
                  "notes",
                  "num_likes",
                  "owner",
                  "owner.name",
                  "privacy_setting",
                  "start_on",
                  "status",
                  "team",
                  "team.name",
                  "time_period",
                  "time_period.display_name",
                  "time_period.end_on",
                  "time_period.period",
                  "time_period.start_on",
                  "workspace",
                  "workspace.name"
                ]
              }
            },
            "style": "form",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "The updated fields for the goal metric.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "$ref": "#/components/schemas/GoalMetricCurrentValueRequest"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully updated the goal metric.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/GoalResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        },
        "security": [
          {
            "personalAccessToken": []
          },
          {
            "oauth2": []
          }
        ],
        "x-readme": {
          "code-samples": [
            {
              "language": "java",
              "install": "<dependency><groupId>com.asana</groupId><artifactId>asana</artifactId><version>1.0.0</version></dependency>",
              "code": "import com.asana.Client;\n\nClient client = Client.accessToken(\"PERSONAL_ACCESS_TOKEN\");\n\nJsonElement result = client.goals.updateGoalMetric(goalGid)\n    .data(\"field\", \"value\")\n    .data(\"field\", \"value\")\n    .option(\"pretty\", true)\n    .execute();"
            },
            {
              "language": "node",
              "install": "npm install asana",
              "code": "const Asana = require('asana');\n\nlet client = new Asana.ApiClient();\nclient.authentications.token.accessToken = '<YOUR_ACCESS_TOKEN>';\n\nlet goalsApiInstance = new Asana.GoalsApi(client);\nlet body = {\"data\": {\"<PARAM_1>\": \"<VALUE_1>\", \"<PARAM_2>\": \"<VALUE_2>\",}}; // Object | The updated fields for the goal metric.\nlet goal_gid = \"12345\"; // String | Globally unique identifier for the goal.\nlet opts = { \n    'opt_fields': \"current_status_update,current_status_update.resource_subtype,current_status_update.title,custom_field_settings,custom_field_settings.custom_field,custom_field_settings.custom_field.asana_created_field,custom_field_settings.custom_field.created_by,custom_field_settings.custom_field.created_by.name,custom_field_settings.custom_field.currency_code,custom_field_settings.custom_field.custom_label,custom_field_settings.custom_field.custom_label_position,custom_field_settings.custom_field.date_value,custom_field_settings.custom_field.date_value.date,custom_field_settings.custom_field.date_value.date_time,custom_field_settings.custom_field.default_access_level,custom_field_settings.custom_field.description,custom_field_settings.custom_field.display_value,custom_field_settings.custom_field.enabled,custom_field_settings.custom_field.enum_options,custom_field_settings.custom_field.enum_options.color,custom_field_settings.custom_field.enum_options.enabled,custom_field_settings.custom_field.enum_options.name,custom_field_settings.custom_field.enum_value,custom_field_settings.custom_field.enum_value.color,custom_field_settings.custom_field.enum_value.enabled,custom_field_settings.custom_field.enum_value.name,custom_field_settings.custom_field.format,custom_field_settings.custom_field.has_notifications_enabled,custom_field_settings.custom_field.id_prefix,custom_field_settings.custom_field.input_restrictions,custom_field_settings.custom_field.is_formula_field,custom_field_settings.custom_field.is_global_to_workspace,custom_field_settings.custom_field.is_value_read_only,custom_field_settings.custom_field.multi_enum_values,custom_field_settings.custom_field.multi_enum_values.color,custom_field_settings.custom_field.multi_enum_values.enabled,custom_field_settings.custom_field.multi_enum_values.name,custom_field_settings.custom_field.name,custom_field_settings.custom_field.number_value,custom_field_settings.custom_field.people_value,custom_field_settings.custom_field.people_value.name,custom_field_settings.custom_field.precision,custom_field_settings.custom_field.privacy_setting,custom_field_settings.custom_field.reference_value,custom_field_settings.custom_field.reference_value.name,custom_field_settings.custom_field.representation_type,custom_field_settings.custom_field.resource_subtype,custom_field_settings.custom_field.text_value,custom_field_settings.custom_field.type,custom_field_settings.is_important,custom_field_settings.parent,custom_field_settings.parent.name,custom_field_settings.project,custom_field_settings.project.name,custom_fields,custom_fields.date_value,custom_fields.date_value.date,custom_fields.date_value.date_time,custom_fields.display_value,custom_fields.enabled,custom_fields.enum_options,custom_fields.enum_options.color,custom_fields.enum_options.enabled,custom_fields.enum_options.name,custom_fields.enum_value,custom_fields.enum_value.color,custom_fields.enum_value.enabled,custom_fields.enum_value.name,custom_fields.id_prefix,custom_fields.input_restrictions,custom_fields.is_formula_field,custom_fields.multi_enum_values,custom_fields.multi_enum_values.color,custom_fields.multi_enum_values.enabled,custom_fields.multi_enum_values.name,custom_fields.name,custom_fields.number_value,custom_fields.representation_type,custom_fields.text_value,custom_fields.type,default_access_level,due_on,followers,followers.name,html_notes,is_workspace_level,liked,likes,likes.user,likes.user.name,metric,metric.can_manage,metric.currency_code,metric.current_display_value,metric.current_number_value,metric.initial_number_value,metric.is_custom_weight,metric.precision,metric.progress_source,metric.resource_subtype,metric.target_number_value,metric.unit,name,notes,num_likes,owner,owner.name,privacy_setting,start_on,status,team,team.name,time_period,time_period.display_name,time_period.end_on,time_period.period,time_period.start_on,workspace,workspace.name\"\n};\ngoalsApiInstance.updateGoalMetric(body, goal_gid, opts).then((result) => {\n    console.log('API called successfully. Returned data: ' + JSON.stringify(result.data, null, 2));\n}, (error) => {\n    console.error(error.response.body);\n});",
              "name": "node-sdk-v3"
            },
            {
              "language": "node",
              "install": "npm install asana@1.0.5",
              "code": "const asana = require('asana');\n\nconst client = asana.Client.create().useAccessToken('PERSONAL_ACCESS_TOKEN');\n\nclient.goals.updateGoalMetric(goalGid, {field: \"value\", field: \"value\", pretty: true})\n    .then((result) => {\n        console.log(result);\n    });",
              "name": "node-sdk-v1"
            },
            {
              "language": "python",
              "install": "pip install asana",
              "code": "import asana\nfrom asana.rest import ApiException\nfrom pprint import pprint\n\nconfiguration = asana.Configuration()\nconfiguration.access_token = '<YOUR_ACCESS_TOKEN>'\napi_client = asana.ApiClient(configuration)\n\n# create an instance of the API class\ngoals_api_instance = asana.GoalsApi(api_client)\nbody = {\"data\": {\"<PARAM_1>\": \"<VALUE_1>\", \"<PARAM_2>\": \"<VALUE_2>\",}} # dict | The updated fields for the goal metric.\ngoal_gid = \"12345\" # str | Globally unique identifier for the goal.\nopts = {\n    'opt_fields': \"current_status_update,current_status_update.resource_subtype,current_status_update.title,custom_field_settings,custom_field_settings.custom_field,custom_field_settings.custom_field.asana_created_field,custom_field_settings.custom_field.created_by,custom_field_settings.custom_field.created_by.name,custom_field_settings.custom_field.currency_code,custom_field_settings.custom_field.custom_label,custom_field_settings.custom_field.custom_label_position,custom_field_settings.custom_field.date_value,custom_field_settings.custom_field.date_value.date,custom_field_settings.custom_field.date_value.date_time,custom_field_settings.custom_field.default_access_level,custom_field_settings.custom_field.description,custom_field_settings.custom_field.display_value,custom_field_settings.custom_field.enabled,custom_field_settings.custom_field.enum_options,custom_field_settings.custom_field.enum_options.color,custom_field_settings.custom_field.enum_options.enabled,custom_field_settings.custom_field.enum_options.name,custom_field_settings.custom_field.enum_value,custom_field_settings.custom_field.enum_value.color,custom_field_settings.custom_field.enum_value.enabled,custom_field_settings.custom_field.enum_value.name,custom_field_settings.custom_field.format,custom_field_settings.custom_field.has_notifications_enabled,custom_field_settings.custom_field.id_prefix,custom_field_settings.custom_field.input_restrictions,custom_field_settings.custom_field.is_formula_field,custom_field_settings.custom_field.is_global_to_workspace,custom_field_settings.custom_field.is_value_read_only,custom_field_settings.custom_field.multi_enum_values,custom_field_settings.custom_field.multi_enum_values.color,custom_field_settings.custom_field.multi_enum_values.enabled,custom_field_settings.custom_field.multi_enum_values.name,custom_field_settings.custom_field.name,custom_field_settings.custom_field.number_value,custom_field_settings.custom_field.people_value,custom_field_settings.custom_field.people_value.name,custom_field_settings.custom_field.precision,custom_field_settings.custom_field.privacy_setting,custom_field_settings.custom_field.reference_value,custom_field_settings.custom_field.reference_value.name,custom_field_settings.custom_field.representation_type,custom_field_settings.custom_field.resource_subtype,custom_field_settings.custom_field.text_value,custom_field_settings.custom_field.type,custom_field_settings.is_important,custom_field_settings.parent,custom_field_settings.parent.name,custom_field_settings.project,custom_field_settings.project.name,custom_fields,custom_fields.date_value,custom_fields.date_value.date,custom_fields.date_value.date_time,custom_fields.display_value,custom_fields.enabled,custom_fields.enum_options,custom_fields.enum_options.color,custom_fields.enum_options.enabled,custom_fields.enum_options.name,custom_fields.enum_value,custom_fields.enum_value.color,custom_fields.enum_value.enabled,custom_fields.enum_value.name,custom_fields.id_prefix,custom_fields.input_restrictions,custom_fields.is_formula_field,custom_fields.multi_enum_values,custom_fields.multi_enum_values.color,custom_fields.multi_enum_values.enabled,custom_fields.multi_enum_values.name,custom_fields.name,custom_fields.number_value,custom_fields.representation_type,custom_fields.text_value,custom_fields.type,default_access_level,due_on,followers,followers.name,html_notes,is_workspace_level,liked,likes,likes.user,likes.user.name,metric,metric.can_manage,metric.currency_code,metric.current_display_value,metric.current_number_value,metric.initial_number_value,metric.is_custom_weight,metric.precision,metric.progress_source,metric.resource_subtype,metric.target_number_value,metric.unit,name,notes,num_likes,owner,owner.name,privacy_setting,start_on,status,team,team.name,time_period,time_period.display_name,time_period.end_on,time_period.period,time_period.start_on,workspace,workspace.name\", # list[str] | 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.\n}\n\ntry:\n    # Update a goal metric\n    api_response = goals_api_instance.update_goal_metric(body, goal_gid, opts)\n    pprint(api_response)\nexcept ApiException as e:\n    print(\"Exception when calling GoalsApi->update_goal_metric: %s\\n\" % e)",
              "name": "python-sdk-v5"
            },
            {
              "language": "python",
              "install": "pip install asana==3.2.3",
              "code": "import asana\n\nclient = asana.Client.access_token('PERSONAL_ACCESS_TOKEN')\n\nresult = client.goals.update_goal_metric(goal_gid, {'field': 'value', 'field': 'value'}, opt_pretty=True)",
              "name": "python-sdk-v3"
            },
            {
              "language": "php",
              "install": "composer require asana/asana",
              "code": "<?php\nrequire 'vendor/autoload.php';\n\n$client = Asana\\Client::accessToken('PERSONAL_ACCESS_TOKEN');\n\n$result = $client->goals->updateGoalMetric($goal_gid, array('field' => 'value', 'field' => 'value'), array('opt_pretty' => 'true'))"
            },
            {
              "language": "ruby",
              "install": "gem install asana",
              "code": "require 'asana'\n\nclient = Asana::Client.new do |c|\n    c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'\nend\n\nresult = client.goals.update_goal_metric(goal_gid: 'goal_gid', field: \"value\", field: \"value\", options: {pretty: true})"
            }
          ]
        }
      }
    }
  }
}