{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instasent/json-schema/instasent-response-create-detail-schema.json",
  "title": "ResponseCreateDetail",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instasent-contacts-api-openapi.yml#/components/schemas/ResponseCreateDetail",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "status": {
      "type": "integer"
    },
    "errors": {
      "title": "Rejected items",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "position": {
            "type": "integer",
            "description": "Item index within the sent array"
          },
          "error": {
            "type": "string",
            "description": "Error description"
          },
          "item": {
            "type": "object",
            "description": "Item data you sent"
          }
        }
      }
    },
    "accepted": {
      "title": "Accepted items",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "position": {
            "type": "integer",
            "description": "Item index within the sent array"
          },
          "item": {
            "type": "object",
            "description": "Accepted item data, queued to be stored"
          }
        }
      }
    },
    "streamId": {
      "type": "string"
    },
    "projectId": {
      "type": "string"
    },
    "projectUid": {
      "type": "string"
    },
    "datasourceId": {
      "type": "string"
    },
    "datasourceUid": {
      "type": "string"
    },
    "entitiesSuccess": {
      "type": "integer"
    },
    "entitiesFailures": {
      "type": "integer"
    },
    "stats": {
      "type": "object",
      "properties": {
        "callsTotal": {
          "type": "integer"
        },
        "callsSuccess": {
          "type": "integer"
        },
        "callsFailures": {
          "type": "integer"
        },
        "entitiesSuccess": {
          "type": "integer"
        },
        "entitiesFailures": {
          "type": "integer"
        }
      }
    }
  }
}