How to search specific custom fields with API explorer

Hi,

How do I format a Current request URL to find a specific custom field option? I use Zapier to identify the GID of a specific custom field option and was wondering if I could do this in the Asana API Explorer?

I initially tried inputting a generic request:

GET /custom_fields/:custom_field_gid

and this message came back:

{
  "errors": [
    {
      "message": "No matching route for request",
      "help": "For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors"
    }
  ]
}

How do I format a Current request URL so I can identify the GID of a specific custom field option. For example, I want to find the GID for the custom field option, “qualified”.

You can’t query for a specific custom field by name; you’ll need to get a list of all of them and find the name in the list.

How do you get a list of them?

@Kate_Siakpere,

To get all of the custom fields in a workspace:

image


To get all of the custom fields in a project:

image