{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ampersand/refs/heads/main/json-structure/ampersand-api-upsert-metadata-response-structure.json",
  "name": "UpsertMetadataResponse",
  "description": "Response containing results for all created/updated fields",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "Indicates if the upsert operation was successful"
    },
    "fields": {
      "type": "object",
      "description": "Maps object name -> field name -> upsert result",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/FieldUpsertResult"
        }
      }
    }
  },
  "required": [
    "success",
    "fields"
  ]
}