---
updatedAt: 2026-08-12T10:13:44.000Z
---

# Modify Audience Definitions

Use PATCH to modify the audience definition fields in the request body. PATCH updates only the fields in the request body.

> 🚧 You cannot modify an audience definition that is currently live and in-use, as indicated by the property "locked": true.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "audience-management-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.freewheel.tv/demand"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v2/audiences/{audience_id}": {
      "patch": {
        "summary": "Modify Audience Definitions",
        "description": "",
        "operationId": "modify-audience-definitions",
        "parameters": [
          {
            "name": "X-Freewheel-Ad-Industry",
            "in": "header",
            "description": "Industry category ID",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "Bearer $auth_token"
            }
          },
          {
            "name": "audience_id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Sample Response": {
                    "value": "{\n  \"id\": 3346,\n  \"name\": \"test audience 1\",\n  \"description\": \"A testing audience\",\n  \"metadata\": {\n    \"segments\": [\n      {\n        \"id\": \"9fbd48f59a\",\n        \"name\": \"Experian \\u003e Lifestyle \\u003e SRVY:HH Lifestyl:Pets:Own A Pet \\u003e Y\",\n        \"client_id\": \"-1\",\n        \"provider_name\": \"Experian\",\n        \"provider_id\": \"Experian\",\n        \"data_source\": \"Experian\",\n        \"audience_partner\": \"experian\",\n        \"restrictions\": [\n          2\n        ],\n        \"cpm\": 0.6,\n        \"provider_segment_id\": \"7206\"\n      },\n      {\n        \"id\": \"9fe904831f\",\n        \"name\": \"Experian \\u003e Lifestyle \\u003e SRVY:HH Lifestyl:Buying:By Internet \\u003e Y\",\n        \"client_id\": \"-1\",\n        \"provider_name\": \"Experian\",\n        \"provider_id\": \"Experian\",\n        \"data_source\": \"Experian\",\n        \"audience_partner\": \"experian\",\n        \"restrictions\": [\n          2\n        ],\n        \"cpm\": 0.6,\n        \"provider_segment_id\": \"7209\"\n      },\n      {\n        \"id\": \"9f2354c276\",\n        \"name\": \"Experian \\u003e Lifestyle \\u003e SRVY:HH Lifestyl:Pets:Own A Cat \\u003e Y\",\n        \"client_id\": \"-1\",\n        \"provider_name\": \"Experian\",\n        \"provider_id\": \"Experian\",\n        \"data_source\": \"Experian\",\n        \"audience_partner\": \"experian\",\n        \"restrictions\": [\n          2\n        ],\n        \"cpm\": 0.6,\n        \"provider_segment_id\": \"7200\"\n      }\n    ],\n    \"cpm\": 0.6\n  },\n  \"industry_restrictions\": [\n    2\n  ],\n  \"targets\": [\n    {\n      \"kind\": \"include\",\n      \"type\": \"segments\",\n      \"target_ids\": [\n        \"9fbd48f59a\",\n        \"9fbd48f59a\",\n        \"9fe904831f\"\n      ]\n    },\n    {\n      \"kind\": \"exclude\",\n      \"type\": \"segments\",\n      \"target_ids\": [\n        \"9f2354c276\"\n      ]\n    }\n  ],\n  \"estimates\": [\n    {\n      \"std_dev\": 192676,\n      \"estimate\": 11457259,\n      \"alias_type\": \"iid\",\n      \"lower_bound\": 11267763,\n      \"upper_bound\": 11649935\n    },\n    {\n      \"std_dev\": 69294,\n      \"estimate\": 4128283,\n      \"alias_type\": \"hid\",\n      \"lower_bound\": 4060131,\n      \"upper_bound\": 4197577\n    },\n    {\n      \"std_dev\": 882788,\n      \"estimate\": 52477245,\n      \"alias_type\": \"cookie\",\n      \"lower_bound\": 51609031,\n      \"upper_bound\": 53360033\n    },\n    {\n      \"std_dev\": 59395,\n      \"estimate\": 3549628,\n      \"alias_type\": \"ctv\",\n      \"lower_bound\": 3491209,\n      \"upper_bound\": 3609023\n    },\n    {\n      \"std_dev\": 253384,\n      \"estimate\": 15050631,\n      \"alias_type\": \"maid\",\n      \"lower_bound\": 14801434,\n      \"upper_bound\": 15304015\n    }\n  ],\n  \"created_at\": \"2021-10-26T18:55:34Z\",\n  \"updated_at\": \"2021-10-26T18:58:18.470675056Z\",\n  \"properties\": {}\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 3346,
                      "default": 0
                    },
                    "name": {
                      "type": "string",
                      "example": "test audience 1"
                    },
                    "description": {
                      "type": "string",
                      "example": "A testing audience"
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "segments": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "9fbd48f59a"
                              },
                              "name": {
                                "type": "string",
                                "example": "Experian > Lifestyle > SRVY:HH Lifestyl:Pets:Own A Pet > Y"
                              },
                              "client_id": {
                                "type": "string",
                                "example": "-1"
                              },
                              "provider_name": {
                                "type": "string",
                                "example": "Experian"
                              },
                              "provider_id": {
                                "type": "string",
                                "example": "Experian"
                              },
                              "data_source": {
                                "type": "string",
                                "example": "Experian"
                              },
                              "audience_partner": {
                                "type": "string",
                                "example": "experian"
                              },
                              "restrictions": {
                                "type": "array",
                                "items": {
                                  "type": "integer",
                                  "example": 2,
                                  "default": 0
                                }
                              },
                              "cpm": {
                                "type": "number",
                                "example": 0.6,
                                "default": 0
                              },
                              "provider_segment_id": {
                                "type": "string",
                                "example": "7206"
                              }
                            }
                          }
                        },
                        "cpm": {
                          "type": "number",
                          "example": 0.6,
                          "default": 0
                        }
                      }
                    },
                    "industry_restrictions": {
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "example": 2,
                        "default": 0
                      }
                    },
                    "targets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "example": "include"
                          },
                          "type": {
                            "type": "string",
                            "example": "segments"
                          },
                          "target_ids": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "example": "9fbd48f59a"
                            }
                          }
                        }
                      }
                    },
                    "estimates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "std_dev": {
                            "type": "integer",
                            "example": 192676,
                            "default": 0
                          },
                          "estimate": {
                            "type": "integer",
                            "example": 11457259,
                            "default": 0
                          },
                          "alias_type": {
                            "type": "string",
                            "example": "iid"
                          },
                          "lower_bound": {
                            "type": "integer",
                            "example": 11267763,
                            "default": 0
                          },
                          "upper_bound": {
                            "type": "integer",
                            "example": 11649935,
                            "default": 0
                          }
                        }
                      }
                    },
                    "created_at": {
                      "type": "string",
                      "example": "2021-10-26T18:55:34Z"
                    },
                    "updated_at": {
                      "type": "string",
                      "example": "2021-10-26T18:58:18.470675056Z"
                    },
                    "properties": {
                      "type": "object",
                      "properties": {}
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": [],
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl \\\n -X PATCH \\\n -H \"Authorization: Bearer $auth_token\" \\\n -H \"X-Freewheel-Ad-Industry: 1\" \\\n--url 'https://api.freewheel.tv/demandS/v2/audiences/3346' \\\n -d '\n{\n  \"targets\":[\n    {\n      \"type\":\"segments\",\n      \"kind\":\"include\",\n      \"target_ids\":[\"9fbd48f59a\",\"9fbd48f59a\",\"9fe904831f\"]\n    },\n    {\n      \"type\": \"segments\",\n      \"kind\": \"exclude\",\n      \"target_ids\":[\"9f2354c276\"]\n    }\n  ]\n}'",
              "name": "Sample Request"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```