---
title: Update Filter
slug: update-filter
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "HkYu7cLQw7to95DIMKGfI",
  "type": "api-oas-v2",
  "data": {
    "method": "PATCH",
    "url": "https://api.nue.io/metadata/filters/{objectApiName}/{id}",
    "servers": [
      {
        "url": "https://api.nue.io/metadata/filters/{objectApiName}/{id}",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/metadata/filters/{objectApiName}/{id}",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Update Filter",
    "description": "<p>Update an existing saved filter's name, conditions, or other properties.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "objectApiName",
          "type": "string",
          "description": "The object name."
        },
        {
          "kind": "required",
          "name": "id",
          "type": "string",
          "description": "The filter ID."
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "The request to update a filter",
          "customType": "ConfigureFilterRequest",
          "schema": [
            {
              "name": "name",
              "kind": "optional",
              "type": "string",
              "description": ""
            },
            {
              "name": "conditions",
              "kind": "optional",
              "type": "array",
              "description": "",
              "example": "",
              "itemType": "object",
              "customType": "object[]",
              "itemExample": "",
              "itemDefault": ""
            }
          ],
          "modelRef": "#/components/schemas/ConfigureFilterRequest",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "FilterMetadataVO",
            "schema": [
              {
                "name": "conditions",
                "kind": "optional",
                "type": "array",
                "description": "",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "itemExample": "",
                "itemDefault": ""
              },
              {
                "name": "name",
                "kind": "optional",
                "type": "string",
                "description": ""
              },
              {
                "name": "id",
                "kind": "optional",
                "type": "string",
                "description": ""
              }
            ],
            "modelRef": "#/components/schemas/FilterMetadataVO",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "E0GDtHrt3CFEoJATXJKol",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PATCH \\\n     --url https://api.nue.io/metadata/filters/{objectApiName}/{id} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "jzmqbolG0jXLpEpagydnL",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'PATCH',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/metadata/filters/{objectApiName}/{id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "9EzY7y3gXauAdeVjlF0rt",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/metadata/filters/{objectApiName}/{id}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "r7LwzJAtYUsGBKIm8fcEq",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/metadata/filters/{objectApiName}/{id}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"PATCH\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "E0GDtHrt3CFEoJATXJKol"
    },
    "results": {
      "languages": [
        {
          "id": "W9AFjIqicEqx74hysUApW",
          "language": "200",
          "code": "// OK\n{\n  \"conditions\": [\n    {}\n  ],\n  \"name\": \"\",\n  \"id\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "W9AFjIqicEqx74hysUApW"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}