Content Management API > Uploads filter 
 Update a filter
Body parameters
  type   string  Required 
 Must be exactly "upload_filter".
  attributes.name   string  Required 
 The name of the filter
 Example: 
 "Draft posts"
   attributes.filter   object  Required 
 The actual filter
 Example: 
 { status: { eq: "draft" } }
   attributes.shared   boolean  Optional 
 Whether it's a shared filter or not
Returns
Returns a resource object of type upload_filter.
Examples
PUT https://site-api.datocms.com/upload-filters/:upload_filter_id HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3Content-Type: application/vnd.api+json
{  "data": {    "type": "upload_filter",    "id": "-Lo34LFSTLmgPToamzJLcg",    "attributes": {      "name": "Draft posts",      "filter": {        "status": {          "eq": "draft"        }      }    }  }}curl -g 'https://site-api.datocms.com/upload-filters/:upload_filter_id' \  -X PUT \  -H "Authorization: Bearer YOUR-API-TOKEN" \  -H "Accept: application/json" \  -H "X-Api-Version: 3" \  -H "Content-Type: application/vnd.api+json" \  --data-binary '{"data":{"type":"upload_filter","id":"-Lo34LFSTLmgPToamzJLcg","attributes":{"name":"Draft posts","filter":{"status":{"eq":"draft"}}}}}'await fetch("https://site-api.datocms.com/upload-filters/:upload_filter_id", {  method: "PUT",  headers: {    Authorization: "Bearer YOUR-API-TOKEN",    Accept: "application/json",    "X-Api-Version": "3",    "Content-Type": "application/vnd.api+json",  },  body: JSON.stringify({    data: {      type: "upload_filter",      id: "-Lo34LFSTLmgPToamzJLcg",      attributes: { name: "Draft posts", filter: { status: { eq: "draft" } } },    },  }),});HTTP/1.1 200 OKContent-Type: application/jsonCache-Control: cache-control: max-age=0, private, must-revalidateX-RateLimit-Limit: 30X-RateLimit-Remaining: 28
{  "data": {    "type": "upload_filter",    "id": "-Lo34LFSTLmgPToamzJLcg",    "attributes": {      "name": "Draft posts",      "filter": {        "status": {          "eq": "draft"        }      },      "shared": true    }  }}