{
  "opencollection": "1.0.0",
  "info": {
    "name": "AWeber Custom Fields API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://auth.aweber.com/oauth2/authorize",
      "accessTokenUrl": "https://auth.aweber.com/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Custom Fields",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get custom fields",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.aweber.com/1.0/accounts/:accountId/lists/:listId/custom_fields",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "The account ID"
              },
              {
                "name": "listId",
                "value": "",
                "type": "path",
                "description": "The list ID"
              },
              {
                "name": "ws.start",
                "value": "",
                "type": "query",
                "description": "The pagination starting offset"
              },
              {
                "name": "ws.size",
                "value": "",
                "type": "query",
                "description": "The pagination total entries to retrieve"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.aweber.com/oauth2/authorize",
              "accessTokenUrl": "https://auth.aweber.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "This endpoint is used to get a paginated collection of custom fields under the specified account and list\n\nCheck out related examples:\n\n  * Manage Custom Fields (\n    <a href=\"https://github.com/aweber/public-api-examples/blob/master/python/manage-custom-fields\" target=\"_blank\">Python</a> |\n    <a href=\"https://github.com/aweber/public-api-examples/blob/master/php/manage-custom-fields\" target=\"_blank\">PHP</a> |\n    <a href=\"https://github.com/aweber/public-api-examples/blob/master/postman/Manage"
        },
        {
          "info": {
            "name": "Add custom field",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.aweber.com/1.0/accounts/:accountId/lists/:listId/custom_fields",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "The account ID"
              },
              {
                "name": "listId",
                "value": "",
                "type": "path",
                "description": "The list ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.aweber.com/oauth2/authorize",
              "accessTokenUrl": "https://auth.aweber.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "This endpoint is used to add a new custom field to the specified account and list.\n\nCheck out related examples:\n\n  * Manage Custom Fields (\n    <a href=\"https://github.com/aweber/public-api-examples/blob/master/python/manage-custom-fields\" target=\"_blank\">Python</a> |\n    <a href=\"https://github.com/aweber/public-api-examples/blob/master/php/manage-custom-fields\" target=\"_blank\">PHP</a> |\n    <a href=\"https://github.com/aweber/public-api-examples/blob/master/postman/Manage%20Custom%20Fields.post"
        },
        {
          "info": {
            "name": "Get custom field",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.aweber.com/1.0/accounts/:accountId/lists/:listId/custom_fields/:customFieldId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "The account ID"
              },
              {
                "name": "listId",
                "value": "",
                "type": "path",
                "description": "The list ID"
              },
              {
                "name": "customFieldId",
                "value": "",
                "type": "path",
                "description": "The custom field ID"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.aweber.com/oauth2/authorize",
              "accessTokenUrl": "https://auth.aweber.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "This endpoint is used to retrieve the information for the specified custom field.\n\nCheck out related examples:\n\n  * Manage Custom Fields (\n    <a href=\"https://github.com/aweber/public-api-examples/blob/master/python/manage-custom-fields\" target=\"_blank\">Python</a> |\n    <a href=\"https://github.com/aweber/public-api-examples/blob/master/php/manage-custom-fields\" target=\"_blank\">PHP</a> |\n    <a href=\"https://github.com/aweber/public-api-examples/blob/master/postman/Manage%20Custom%20Fields.postm"
        },
        {
          "info": {
            "name": "Update custom field",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.aweber.com/1.0/accounts/:accountId/lists/:listId/custom_fields/:customFieldId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "The account ID"
              },
              {
                "name": "listId",
                "value": "",
                "type": "path",
                "description": "The list ID"
              },
              {
                "name": "customFieldId",
                "value": "",
                "type": "path",
                "description": "The custom field ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.aweber.com/oauth2/authorize",
              "accessTokenUrl": "https://auth.aweber.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "This endpoint is used to update the information for the specified custom field. See <a href=\"https://help.aweber.com/entries/21749682-why-could-changing-my-custom-field-names-cause-problems\"\n target=\"_blank\">Why could changing my custom field names cause problems</a>\nbefore changing the name of a Custom Field.\n\nCheck out related examples:\n\n  * Manage Custom Fields (\n    <a href=\"https://github.com/aweber/public-api-examples/blob/master/python/manage-custom-fields\" target=\"_blank\">Python</a> |\n  "
        },
        {
          "info": {
            "name": "Delete custom field",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.aweber.com/1.0/accounts/:accountId/lists/:listId/custom_fields/:customFieldId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "The account ID"
              },
              {
                "name": "listId",
                "value": "",
                "type": "path",
                "description": "The list ID"
              },
              {
                "name": "customFieldId",
                "value": "",
                "type": "path",
                "description": "The custom field ID"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.aweber.com/oauth2/authorize",
              "accessTokenUrl": "https://auth.aweber.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "This endpoint is used to delete a custom field entry See <a href=\"https://help.aweber.com/entries/21749682-why-could-changing-my-custom-field-names-cause-problems\"\n target=\"_blank\">Why could changing my custom field names cause problems</a>\nbefore removing a Custom Field.\n\nCheck out related examples:\n\n  * Manage Custom Fields (\n    <a href=\"https://github.com/aweber/public-api-examples/blob/master/python/manage-custom-fields\" target=\"_blank\">Python</a> |\n    <a href=\"https://github.com/aweber/pu"
        }
      ]
    }
  ],
  "bundled": true
}