# PATCH /v1/saved-searches/{saved_search_id}

Zmiana zapisanych wyszukiwań

Operation ID: `store_saved_search_update`.

## Description

not specified in the source contract

## Cost

`x-request-cost`: 0 requests per call.

## Inputs

Declared path/query inputs: `saved_search_id`.

`q | id | point | lat+lng` at operation level: not specified in the source contract. See declared parameters and request body.

## Parameters

| Name | In | Required | Schema | Description |
| --- | --- | --- | --- | --- |
| `saved_search_id` | path | true | `{"maxLength": 256, "minLength": 1, "type": "string"}` | not specified in the source contract |

## Request body

```json
{
  "content": {
    "application/json": {
      "schema": {
        "$ref": "./envelope.json#/$defs/SavedSearchV5Write"
      }
    }
  },
  "required": true
}
```

## Operation credit rule

See prices.json; unavailable/error outcomes consume zero credits.

## Authentication

```json
[
  {
    "ApiKey": []
  },
  {
    "OAuthConnector": []
  }
]
```

```json
{
  "ApiKey": {
    "description": "Klucz API konta korzystający z tych samych kredytów co wywołania przez połączenie OAuth.",
    "in": "header",
    "name": "X-Api-Key",
    "type": "apiKey"
  },
  "OAuthConnector": {
    "bearerFormat": "OAuth 2.1 access token",
    "description": "Autoryzacja połączenia OAuth ze wspólnymi kredytami konta. Wykrywanie konfiguracji i zgodę obsługuje usługa uwierzytelniania.",
    "scheme": "bearer",
    "type": "http"
  }
}
```

## Responses

| Status | Description | Billing rule |
| --- | --- | --- |
| 200 | Wynik operacji w standardowej kopercie odpowiedzi. | free_operation |
| 400 | Odpowiedź Envelope ze statusem not_found lub error, result=null i wypełnionym error (hint, docs, example_id przy danych wejściowych dotyczących działki; signup_url przy HTTP 401). Zwrot opłaty albo bezpłatne przy HTTP 401. | free_invalid_input |
| 401 | Odpowiedź Envelope ze statusem not_found lub error, result=null i wypełnionym error (hint, docs, example_id przy danych wejściowych dotyczących działki; signup_url przy HTTP 401). Zwrot opłaty albo bezpłatne przy HTTP 401. | free_unauthorized |
| 402 | Odpowiedź Envelope ze statusem not_found lub error, result=null i wypełnionym error (hint, docs, example_id przy danych wejściowych dotyczących działki; signup_url przy HTTP 401). Zwrot opłaty albo bezpłatne przy HTTP 401. | refunded_client_error |
| 403 | Odpowiedź Envelope ze statusem not_found lub error, result=null i wypełnionym error (hint, docs, example_id przy danych wejściowych dotyczących działki; signup_url przy HTTP 401). Zwrot opłaty albo bezpłatne przy HTTP 401. | refunded_client_error |
| 404 | Odpowiedź Envelope ze statusem not_found lub error, result=null i wypełnionym error (hint, docs, example_id przy danych wejściowych dotyczących działki; signup_url przy HTTP 401). Zwrot opłaty albo bezpłatne przy HTTP 401. | refunded_client_error |
| 429 | Odpowiedź Envelope ze statusem not_found lub error, result=null i wypełnionym error (hint, docs, example_id przy danych wejściowych dotyczących działki; signup_url przy HTTP 401). Zwrot opłaty albo bezpłatne przy HTTP 401. | refunded_client_error |
| 503 | Odpowiedź Envelope ze statusem not_found lub error, result=null i wypełnionym error (hint, docs, example_id przy danych wejściowych dotyczących działki; signup_url przy HTTP 401). Zwrot opłaty albo bezpłatne przy HTTP 401. | refunded_server_error |

### HTTP 200: headers and body schemas

```json
{
  "content": {
    "application/json": {
      "schema": {
        "allOf": [
          {
            "$ref": "./envelope.json"
          },
          {
            "properties": {
              "result": {
                "anyOf": [
                  {
                    "$ref": "./envelope.json#/$defs/SavedSearchV5"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      }
    }
  },
  "description": "Wynik operacji w standardowej kopercie odpowiedzi."
}
```

### HTTP 400: headers and body schemas

```json
{
  "content": {
    "application/json": {
      "schema": {
        "$ref": "./envelope.json"
      }
    }
  },
  "description": "Odpowiedź Envelope ze statusem not_found lub error, result=null i wypełnionym error (hint, docs, example_id przy danych wejściowych dotyczących działki; signup_url przy HTTP 401). Zwrot opłaty albo bezpłatne przy HTTP 401.",
  "headers": {
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "ETag": {
      "$ref": "#/components/headers/ETag"
    },
    "X-Credits-Charged": {
      "$ref": "#/components/headers/XCreditsCharged"
    },
    "X-Credits-Refunded": {
      "$ref": "#/components/headers/XCreditsRefunded"
    },
    "X-Request-Cost": {
      "$ref": "#/components/headers/XRequestCost"
    }
  }
}
```

### HTTP 401: headers and body schemas

```json
{
  "content": {
    "application/json": {
      "schema": {
        "$ref": "./envelope.json"
      }
    }
  },
  "description": "Odpowiedź Envelope ze statusem not_found lub error, result=null i wypełnionym error (hint, docs, example_id przy danych wejściowych dotyczących działki; signup_url przy HTTP 401). Zwrot opłaty albo bezpłatne przy HTTP 401.",
  "headers": {
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "ETag": {
      "$ref": "#/components/headers/ETag"
    },
    "X-Credits-Charged": {
      "$ref": "#/components/headers/XCreditsCharged"
    },
    "X-Credits-Refunded": {
      "$ref": "#/components/headers/XCreditsRefunded"
    },
    "X-Request-Cost": {
      "$ref": "#/components/headers/XRequestCost"
    }
  }
}
```

### HTTP 402: headers and body schemas

```json
{
  "content": {
    "application/json": {
      "schema": {
        "$ref": "./envelope.json"
      }
    }
  },
  "description": "Odpowiedź Envelope ze statusem not_found lub error, result=null i wypełnionym error (hint, docs, example_id przy danych wejściowych dotyczących działki; signup_url przy HTTP 401). Zwrot opłaty albo bezpłatne przy HTTP 401.",
  "headers": {
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "ETag": {
      "$ref": "#/components/headers/ETag"
    },
    "X-Credits-Charged": {
      "$ref": "#/components/headers/XCreditsCharged"
    },
    "X-Credits-Refunded": {
      "$ref": "#/components/headers/XCreditsRefunded"
    },
    "X-Request-Cost": {
      "$ref": "#/components/headers/XRequestCost"
    }
  }
}
```

### HTTP 403: headers and body schemas

```json
{
  "content": {
    "application/json": {
      "schema": {
        "$ref": "./envelope.json"
      }
    }
  },
  "description": "Odpowiedź Envelope ze statusem not_found lub error, result=null i wypełnionym error (hint, docs, example_id przy danych wejściowych dotyczących działki; signup_url przy HTTP 401). Zwrot opłaty albo bezpłatne przy HTTP 401.",
  "headers": {
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "ETag": {
      "$ref": "#/components/headers/ETag"
    },
    "X-Credits-Charged": {
      "$ref": "#/components/headers/XCreditsCharged"
    },
    "X-Credits-Refunded": {
      "$ref": "#/components/headers/XCreditsRefunded"
    },
    "X-Request-Cost": {
      "$ref": "#/components/headers/XRequestCost"
    }
  }
}
```

### HTTP 404: headers and body schemas

```json
{
  "content": {
    "application/json": {
      "schema": {
        "$ref": "./envelope.json"
      }
    }
  },
  "description": "Odpowiedź Envelope ze statusem not_found lub error, result=null i wypełnionym error (hint, docs, example_id przy danych wejściowych dotyczących działki; signup_url przy HTTP 401). Zwrot opłaty albo bezpłatne przy HTTP 401.",
  "headers": {
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "ETag": {
      "$ref": "#/components/headers/ETag"
    },
    "X-Credits-Charged": {
      "$ref": "#/components/headers/XCreditsCharged"
    },
    "X-Credits-Refunded": {
      "$ref": "#/components/headers/XCreditsRefunded"
    },
    "X-Request-Cost": {
      "$ref": "#/components/headers/XRequestCost"
    }
  }
}
```

### HTTP 429: headers and body schemas

```json
{
  "content": {
    "application/json": {
      "schema": {
        "$ref": "./envelope.json"
      }
    }
  },
  "description": "Odpowiedź Envelope ze statusem not_found lub error, result=null i wypełnionym error (hint, docs, example_id przy danych wejściowych dotyczących działki; signup_url przy HTTP 401). Zwrot opłaty albo bezpłatne przy HTTP 401.",
  "headers": {
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "ETag": {
      "$ref": "#/components/headers/ETag"
    },
    "X-Credits-Charged": {
      "$ref": "#/components/headers/XCreditsCharged"
    },
    "X-Credits-Refunded": {
      "$ref": "#/components/headers/XCreditsRefunded"
    },
    "X-Request-Cost": {
      "$ref": "#/components/headers/XRequestCost"
    }
  }
}
```

### HTTP 503: headers and body schemas

```json
{
  "content": {
    "application/json": {
      "schema": {
        "$ref": "./envelope.json"
      }
    }
  },
  "description": "Odpowiedź Envelope ze statusem not_found lub error, result=null i wypełnionym error (hint, docs, example_id przy danych wejściowych dotyczących działki; signup_url przy HTTP 401). Zwrot opłaty albo bezpłatne przy HTTP 401.",
  "headers": {
    "Cache-Control": {
      "$ref": "#/components/headers/CacheControl"
    },
    "ETag": {
      "$ref": "#/components/headers/ETag"
    },
    "X-Credits-Charged": {
      "$ref": "#/components/headers/XCreditsCharged"
    },
    "X-Credits-Refunded": {
      "$ref": "#/components/headers/XCreditsRefunded"
    },
    "X-Request-Cost": {
      "$ref": "#/components/headers/XRequestCost"
    }
  }
}
```

## Layer answers and value schemas

When a response includes layer answers, their common frame is:

```json
{
  "additionalProperties": false,
  "allOf": [
    {
      "else": {
        "properties": {
          "value": {
            "type": "object"
          }
        }
      },
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "not_covered",
              "not_computed"
            ]
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "type": "null"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "mpzp"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/MpzpValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "reason": {
            "const": "licence_unverified"
          }
        },
        "required": [
          "reason"
        ]
      },
      "then": {
        "properties": {
          "coverage": {
            "const": "not_covered"
          },
          "layer": {
            "enum": [
              "soil",
              "utilities",
              "neighbour_land_use"
            ]
          },
          "value": {
            "type": "null"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "heritage"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/HeritageValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "noise"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/NoiseValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "forests"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/ForestsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "power_lines"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/PowerLinesValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "pipelines"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/PipelinesValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "listings"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/ListingsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "mpzp_parameters"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/MpzpParametersValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "geology"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/GeologyValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "ground_motion"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/GroundMotionValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "asbestos"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/AsbestosValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "land_cover"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/LandCoverValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "air_quality"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/AirQualityValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "night_light"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/NightLightValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "railways"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/RailwaysValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "wind_turbines"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/WindTurbinesValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "airports"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/AirportsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "industrial_facilities"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/IndustrialFacilitiesValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "radio_permits"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/RadioPermitsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "population"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/PopulationValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "terrain"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/TerrainValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "solar_potential"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/SolarPotentialValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "property_tax"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/PropertyTaxValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "gmina_statistics"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/GminaStatisticsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "buildings"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/BuildingsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "buildable_envelope"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/BuildableEnvelopeValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "flood"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/FloodValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "protected"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/ProtectedValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "permits"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/PermitsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "layer": {
            "const": "buildable_envelope"
          }
        },
        "required": [
          "layer"
        ]
      },
      "then": {
        "properties": {
          "method": {
            "const": "computed"
          },
          "scope": {
            "const": "parcel_polygon"
          }
        },
        "required": [
          "licence",
          "scope",
          "method"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "soil"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/SoilValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "utilities"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/UtilitiesValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "neighbour_land_use"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/NeighbourLandUseValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "climate"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/ClimateValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "cell_sites"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/CellSitesValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "source": {
            "properties": {
              "date_evidence": {
                "const": "undated_retrieved"
              }
            },
            "required": [
              "date_evidence"
            ]
          }
        }
      },
      "then": {
        "properties": {
          "as_of": {
            "type": "null"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "mpzp_evidence"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "as_of": {
            "type": "null"
          },
          "coverage": {
            "const": "covered"
          },
          "source": {
            "properties": {
              "as_of": {
                "type": "null"
              },
              "id": {
                "const": "mpzp_app"
              }
            }
          },
          "value": {
            "$ref": "#/$defs/MpzpEvidenceValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "mpzp_registry"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "as_of": {
            "type": "null"
          },
          "coverage": {
            "const": "covered"
          },
          "source": {
            "properties": {
              "as_of": {
                "type": "null"
              },
              "id": {
                "const": "mpzp_app"
              }
            }
          },
          "value": {
            "$ref": "#/$defs/MpzpRegistryValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "population_neighbourhood"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/PopulationNeighbourhoodValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "rail_context"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/RailContextValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "mobile_observations"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/MobileObservationsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "nearby_places"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/NearbyPlacesValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "poi_density"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/PoiDensityValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "green_context"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/GreenContextValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "layer": {
            "const": "market_context"
          }
        },
        "required": [
          "layer"
        ]
      },
      "then": {
        "properties": {
          "as_of": {
            "type": "null"
          },
          "source": {
            "properties": {
              "as_of": {
                "type": "null"
              }
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "market_context"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "coverage": {
            "const": "covered"
          },
          "value": {
            "$ref": "#/$defs/MarketContextValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "road_geometry"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/RoadGeometryValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "building_context"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/BuildingContextValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "power_corridor"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/PowerCorridorValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "turbine_buffer"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/TurbineBufferValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "geo_units"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/GeographicUnitsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "solar_irradiation"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/SolarIrradiationValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "wind_speed_100m"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/WindSpeed100mValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "mpzp_zones"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/MpzpZonesValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "road_access"
          }
        },
        "required": [
          "layer",
          "coverage"
        ]
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/RoadAccessValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "gmina_demographics"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/GminaDemographicsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "powiat_statistics"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/PowiatStatisticsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "police_crime_rates"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/PoliceCrimeRatesValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "road_danger_points"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/RoadDangerPointsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "fixed_broadband"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/FixedBroadbandValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "urban_atlas"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/UrbanAtlasValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "station_climate"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/StationClimateValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "air_daily"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/AirDailyValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "ecological_corridors"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/EcologicalCorridorsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "heritage_registers"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/HeritageRegistersValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "landslide_records"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/LandslideRecordsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "seveso_proximity"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/SevesoProximityValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "asbestos_sites"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/AsbestosSitesValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "asbestos_gmina_mass"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/AsbestosGminaMassValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "environmental_constraints"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/EnvironmentalConstraintsValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "plan_general_candidates"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/PlanGeneralCandidatesValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "plan_general_ouz"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/PlanGeneralOuzValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "plan_general_municipal"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/PlanGeneralMunicipalValue"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "coverage": {
            "enum": [
              "covered",
              "covered_no_data"
            ]
          },
          "layer": {
            "const": "mpzp_drawing_reads"
          }
        }
      },
      "then": {
        "properties": {
          "value": {
            "$ref": "#/$defs/MpzpDrawingReadsValue"
          }
        }
      }
    }
  ],
  "description": "Wspólny format każdej odpowiedzi tematycznej. Pola właściwe dla danej kategorii znajdują się w value (schematy *Value w openapi.yaml).",
  "properties": {
    "as_of": {
      "format": "date",
      "type": [
        "string",
        "null"
      ]
    },
    "basis": {
      "description": "Przepis lub reguła będąca podstawą wyliczonej odpowiedzi, np. „u.p.z.p. art. 59 ust. 3”.",
      "type": [
        "string",
        "null"
      ]
    },
    "confidence": {
      "maximum": 1,
      "minimum": 0,
      "type": "number"
    },
    "coverage": {
      "$ref": "#/$defs/Coverage"
    },
    "hash": {
      "description": "Skrót sha256 w zapisie szesnastkowym z coverage + ':' + canonical(value) (nagłówek parcel_record.sql). Wartość null dla danych ustalanych podczas żądania.",
      "type": [
        "string",
        "null"
      ]
    },
    "layer": {
      "$ref": "#/$defs/LayerKey"
    },
    "layer_version": {
      "description": "Identyfikator obliczenia dla wcześniej obliczonych danych; live dla danych ustalanych podczas żądania.",
      "type": "string"
    },
    "licence": {
      "$ref": "#/$defs/Licence"
    },
    "method": {
      "$ref": "#/$defs/Method"
    },
    "note": {
      "description": "Jedno zdanie prostym językiem do przytoczenia przez agenta w każdym stanie: co oznacza wartość lub dlaczego jej brakuje. Bez określenia „bezpieczna” i bez „brak planu”, jeżeli nie wskazano rodzaju planu i źródła.",
      "minLength": 1,
      "type": "string"
    },
    "note_codes": {
      "description": "Stable machine-readable caveats. Polish copy is separately reviewed in texts_pl slots.",
      "items": {
        "enum": [
          "publisher_edition_date_unknown",
          "publisher_edition_period"
        ]
      },
      "type": "array",
      "uniqueItems": true
    },
    "reason": {
      "enum": [
        "licence_unverified"
      ]
    },
    "scope": {
      "$ref": "#/$defs/Scope"
    },
    "source": {
      "$ref": "#/$defs/SourceRef"
    },
    "threshold": {
      "maximum": 1,
      "minimum": 0,
      "type": "number"
    },
    "value": {
      "description": "Wartość null wtedy i tylko wtedy, gdy coverage wynosi not_covered lub not_computed.",
      "type": [
        "object",
        "null"
      ]
    }
  },
  "required": [
    "layer",
    "coverage",
    "value",
    "note",
    "source",
    "as_of",
    "layer_version"
  ],
  "type": "object"
}
```

Schema names correspond to the layer keys below. A schema dispatch constraint in `LayerAnswer` is not specified in v1.

| Layer key | LayerAnswer.value schema |
| --- | --- |
| `address` | [AddressValue](../layers/AddressValue.md) |
| `admin` | not specified in the source contract |
| `air_daily` | not specified in the source contract |
| `air_quality` | [AirQualityValue](../layers/AirQualityValue.md) |
| `airports` | [AirportsValue](../layers/AirportsValue.md) |
| `asbestos` | [AsbestosValue](../layers/AsbestosValue.md) |
| `asbestos_gmina_mass` | not specified in the source contract |
| `asbestos_sites` | not specified in the source contract |
| `buildable_envelope` | [BuildableEnvelopeValue](../layers/BuildableEnvelopeValue.md) |
| `building_context` | [BuildingContextValue](../layers/BuildingContextValue.md) |
| `buildings` | [BuildingsValue](../layers/BuildingsValue.md) |
| `cell_sites` | [CellSitesValue](../layers/CellSitesValue.md) |
| `climate` | [ClimateValue](../layers/ClimateValue.md) |
| `ecological_corridors` | not specified in the source contract |
| `environmental_constraints` | not specified in the source contract |
| `fixed_broadband` | not specified in the source contract |
| `flood` | [FloodValue](../layers/FloodValue.md) |
| `forests` | [ForestsValue](../layers/ForestsValue.md) |
| `geo_units` | not specified in the source contract |
| `geology` | [GeologyValue](../layers/GeologyValue.md) |
| `gmina_demographics` | not specified in the source contract |
| `gmina_statistics` | [GminaStatisticsValue](../layers/GminaStatisticsValue.md) |
| `green_context` | [GreenContextValue](../layers/GreenContextValue.md) |
| `ground_motion` | [GroundMotionValue](../layers/GroundMotionValue.md) |
| `heritage` | [HeritageValue](../layers/HeritageValue.md) |
| `heritage_registers` | not specified in the source contract |
| `industrial_facilities` | [IndustrialFacilitiesValue](../layers/IndustrialFacilitiesValue.md) |
| `land_cover` | [LandCoverValue](../layers/LandCoverValue.md) |
| `landslide` | [LandslideValue](../layers/LandslideValue.md) |
| `landslide_records` | not specified in the source contract |
| `listings` | [ListingsValue](../layers/ListingsValue.md) |
| `market_context` | not specified in the source contract |
| `mobile_observations` | [MobileObservationsValue](../layers/MobileObservationsValue.md) |
| `mpzp` | [MpzpValue](../layers/MpzpValue.md) |
| `mpzp_drawing_reads` | not specified in the source contract |
| `mpzp_evidence` | not specified in the source contract |
| `mpzp_parameters` | [MpzpParametersValue](../layers/MpzpParametersValue.md) |
| `mpzp_registry` | not specified in the source contract |
| `mpzp_zones` | not specified in the source contract |
| `nearby_places` | [NearbyPlacesValue](../layers/NearbyPlacesValue.md) |
| `neighbour_land_use` | [NeighbourLandUseValue](../layers/NeighbourLandUseValue.md) |
| `night_light` | [NightLightValue](../layers/NightLightValue.md) |
| `noise` | [NoiseValue](../layers/NoiseValue.md) |
| `parcel` | not specified in the source contract |
| `permits` | [PermitsValue](../layers/PermitsValue.md) |
| `pipelines` | [PipelinesValue](../layers/PipelinesValue.md) |
| `plan_general_candidates` | not specified in the source contract |
| `plan_general_municipal` | not specified in the source contract |
| `plan_general_ouz` | not specified in the source contract |
| `planning` | [PlanningValue](../layers/PlanningValue.md) |
| `pog` | [PogValue](../layers/PogValue.md) |
| `poi_density` | [PoiDensityValue](../layers/PoiDensityValue.md) |
| `police_crime_rates` | not specified in the source contract |
| `population` | [PopulationValue](../layers/PopulationValue.md) |
| `population_neighbourhood` | [PopulationNeighbourhoodValue](../layers/PopulationNeighbourhoodValue.md) |
| `power_corridor` | [PowerCorridorValue](../layers/PowerCorridorValue.md) |
| `power_lines` | [PowerLinesValue](../layers/PowerLinesValue.md) |
| `powiat_statistics` | not specified in the source contract |
| `prices` | [PricesValue](../layers/PricesValue.md) |
| `property_tax` | [PropertyTaxValue](../layers/PropertyTaxValue.md) |
| `protected` | [ProtectedValue](../layers/ProtectedValue.md) |
| `radio_permits` | [RadioPermitsValue](../layers/RadioPermitsValue.md) |
| `rail_context` | [RailContextValue](../layers/RailContextValue.md) |
| `railways` | [RailwaysValue](../layers/RailwaysValue.md) |
| `road_access` | [RoadAccessValue](../layers/RoadAccessValue.md) |
| `road_danger_points` | not specified in the source contract |
| `road_geometry` | [RoadGeometryValue](../layers/RoadGeometryValue.md) |
| `seveso_proximity` | not specified in the source contract |
| `soil` | [SoilValue](../layers/SoilValue.md) |
| `solar_irradiation` | not specified in the source contract |
| `solar_potential` | [SolarPotentialValue](../layers/SolarPotentialValue.md) |
| `station_climate` | not specified in the source contract |
| `terrain` | [TerrainValue](../layers/TerrainValue.md) |
| `turbine_buffer` | [TurbineBufferValue](../layers/TurbineBufferValue.md) |
| `urban_atlas` | not specified in the source contract |
| `utilities` | [UtilitiesValue](../layers/UtilitiesValue.md) |
| `wind_speed_100m` | not specified in the source contract |
| `wind_turbines` | [WindTurbinesValue](../layers/WindTurbinesValue.md) |
| `wz` | [WzValue](../layers/WzValue.md) |

Referenced response definitions from `openapi.yaml`:

See [Schemas](../schemas.md) for all operation-specific definitions.

Envelope references are defined in [Envelope](../envelope.md).

## Coverage states

Cztery stany zakresu danych dla jednej kategorii w danym miejscu. covered: źródło obejmuje to miejsce i zawiera rekord; value zawiera ten rekord. covered_no_data: źródło obejmuje to miejsce, lecz nie zawiera rekordu; value ma określoną dla danej kategorii pustą wartość (false, 0, [], none), nigdy null; jest to potwierdzony brak rekordu, za który naliczana jest opłata. not_covered: źródło nie obejmuje miejsca albo państwo nie publikuje tych danych w postaci do odczytu maszynowego; value=null, agent nie może wyciągać wniosków, a opłata jest zwracana, gdy zapytanie dotyczy tych danych. not_computed: posiadamy źródło, lecz nie obliczyliśmy jeszcze wyniku dla tego miejsca, np. trwa ładowanie zbioru; value=null, opłata jest zwracana. Każdy stan zawiera uwagę napisaną prostym językiem.

States: `covered` | `covered_no_data` | `not_covered` | `not_computed`.

`LayerAnswer` required fields: `layer`, `coverage`, `value`, `note`, `source`, `as_of`, `layer_version`.

## Billing rule

Koszt żądania. charged: liczba naliczonych wywołań po zwrotach. refunded: liczba wywołań naliczonych, a następnie zwróconych. rule: zastosowana reguła. Płatne są odpowiedzi, potwierdzone braki rekordów (covered_no_data) i niejednoznaczne listy kandydatów. Bezpłatne są błędne dane wejściowe (400), brak uwierzytelnienia (401), odpowiedzi bez zmiany danych (304) i operacje bezpłatne. Zwrot obejmuje pozostałe 4xx, każde 5xx, status not_covered oraz odpowiedź dotyczącą jednej kategorii ze stanem not_covered lub not_computed. W operacjach zbiorczych liczby dotyczą poszczególnych elementów.

Rule values: `charged` | `free_operation` | `free_invalid_input` | `free_unauthorized` | `free_not_modified` | `free_idempotency_replay` | `refunded_client_error` | `refunded_server_error` | `refunded_not_covered` | `refunded_not_computed` | `batch_mixed` | `free_record_reuse`.

## Recorded example

No valid key supplied. Request UUID and response clock normalized. No database, socket, paid call or live coverage claim.

Recorded HTTP status: 401. The curl example reproduces this admission response with an unset API key. For supported authenticated operations, supply an account key and required permissions; data and billing then depend on that account. The Stripe receiver additionally requires a provider signature.

```sh
curl --silent --show-error --request PATCH "https://api.landfeed.pl/v1/saved-searches/00000000-0000-4000-8000-000000000001" \
  -H "X-Api-Key: ${LANDFEED_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data '{"title": "Okolica", "search": {"area": {"kind": "gmina", "teryt": "1465011"}, "filters": {"area_m2": {"min": 100, "max": 1000}, "outside_flood_q100": true, "no_nature_protection": true, "plan_general_zones": ["SJ", "SW"], "public_road_access": true, "building_present": false}, "limit": 100, "cursor": null, "format": "csv"}}'
```

```json
{
  "billing": {
    "charged": 0,
    "cost": 0,
    "credits": 0,
    "refunded": 0,
    "rule": "free_operation"
  },
  "candidates": [],
  "error": {
    "code": "unauthorized",
    "docs": "https://landfeed.pl/docs",
    "hint": "Sprawdź dane żądania i odśwież listę zapisanych obiektów.",
    "message": "Zaloguj się na aktywne konto, aby korzystać z zapisanych obiektów."
  },
  "meta": {
    "api_version": "v1",
    "calls": 1,
    "generated_at": "2026-10-21T00:00:00Z",
    "operation": "store_saved_search_update",
    "request_id": "00000000-0000-4000-8000-000000000000"
  },
  "query": {
    "input": {},
    "kind": "v5",
    "resolved": null
  },
  "result": null,
  "sources": [],
  "status": "error"
}
```

## Matching MCP tool

not specified in the source contract
