Goldmine
Filter Sets

Update a filter set

POST
/contracts.v1.Contracts/UpdateFilterSet

Applies partial edits to a filter set, such as renaming it or replacing its predicate fragment. Only the supplied fields are changed.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://loading/contracts.v1.Contracts/UpdateFilterSet" \  -H "Content-Type: application/json" \  -d '{    "workspaceId": "AAECAwQFBgcICQoLDA0ODw==",    "filterSetId": "EBESExQVFhcYGRobHB0eHw==",    "name": "StatTrak AK-47 Redline, Minimal Wear or better",    "predicate": {      "group": {        "condition": "PREDICATE_CONDITION_AND",        "rules": [          {            "rule": {              "field": "PREDICATE_FIELD_WEAPON",              "operator": "PREDICATE_OPERATOR_EQ",              "value": {                "stringValue": "AK-47"              }            }          },          {            "rule": {              "field": "PREDICATE_FIELD_PAINT",              "operator": "PREDICATE_OPERATOR_EQ",              "value": {                "stringValue": "Redline"              }            }          },          {            "rule": {              "field": "PREDICATE_FIELD_HAS_STAT_TRAK",              "operator": "PREDICATE_OPERATOR_EQ",              "value": {                "boolValue": true              }            }          },          {            "rule": {              "field": "PREDICATE_FIELD_MAX_WEAR",              "operator": "PREDICATE_OPERATOR_LTE",              "value": {                "numberValue": 0.15              }            }          }        ]      }    }  }'
{
  "filterSet": {
    "id": "EBESExQVFhcYGRobHB0eHw==",
    "workspaceId": "AAECAwQFBgcICQoLDA0ODw==",
    "name": "StatTrak AK-47 Redline, Minimal Wear or better",
    "description": "Reusable fragment matching StatTrak AK-47 Redline skins with a float of 0.27 or lower.",
    "predicate": {
      "group": {
        "condition": "PREDICATE_CONDITION_AND",
        "rules": [
          {
            "rule": {
              "field": "PREDICATE_FIELD_WEAPON",
              "operator": "PREDICATE_OPERATOR_EQ",
              "value": {
                "stringValue": "AK-47"
              }
            }
          },
          {
            "rule": {
              "field": "PREDICATE_FIELD_PAINT",
              "operator": "PREDICATE_OPERATOR_EQ",
              "value": {
                "stringValue": "Redline"
              }
            }
          },
          {
            "rule": {
              "field": "PREDICATE_FIELD_HAS_STAT_TRAK",
              "operator": "PREDICATE_OPERATOR_EQ",
              "value": {
                "boolValue": true
              }
            }
          },
          {
            "rule": {
              "field": "PREDICATE_FIELD_MAX_WEAR",
              "operator": "PREDICATE_OPERATOR_LTE",
              "value": {
                "numberValue": 0.15
              }
            }
          }
        ]
      }
    },
    "version": "3",
    "createdAt": "2026-03-05T14:30:00Z",
    "updatedAt": "2026-06-29T11:00:00Z"
  }
}
{
  "code": "invalid_argument",
  "message": "The request was malformed, such as a missing required field or an unparseable cursor."
}
{
  "code": "unauthenticated",
  "message": "The request lacks a valid API key in the Authorization header."
}
{
  "code": "permission_denied",
  "message": "The API key is not allowed to perform this action on this workspace."
}
{
  "code": "not_found",
  "message": "The requested resource does not exist in this workspace."
}
{
  "code": "resource_exhausted",
  "message": "The request was rate limited. Slow down and retry later."
}
{
  "code": "internal",
  "message": "An internal server error occurred."
}