{
  "openapi": "3.0.1",
  "info": {
    "title": "ArcGIS Earth Automation API",
    "description": "This is an ArcGIS Earth Automation API help page of Swagger. You can find out more about ArcGIS Earth Automation API at https://doc.arcgis.com/en/arcgis-earth/automation-api/get-started.htm",
    "version": "1.12-Alpha"
  },
  "paths": {
    "/arcgisearth/Camera": {
      "get": {
        "tags": [
          "Camera"
        ],
        "summary": "Get the camera information",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AGECamera"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AGECamera"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AGECamera"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Camera"
        ],
        "summary": "Set the camera information",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AGECamera"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AGECamera"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AGECamera"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AGECamera"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/arcgisearth/Content": {
      "post": {
        "tags": [
          "Content"
        ],
        "summary": "Upload JSON to Earth Content",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JToken"
                },
                "description": "",
                "nullable": true
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JToken"
                },
                "description": "",
                "nullable": true
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JToken"
                },
                "description": "",
                "nullable": true
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JToken"
                },
                "description": "",
                "nullable": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/JToken"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/JToken"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/JToken"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/arcgisearth/Flight": {
      "post": {
        "tags": [
          "Flight"
        ],
        "summary": "Fly-to a target position",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AGEFlight"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AGEFlight"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AGEFlight"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AGEFlight"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/arcgisearth/Graphics/{id}": {
      "get": {
        "tags": [
          "Graphics"
        ],
        "summary": "Get a graphic by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "description": ""
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/JToken"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/JToken"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/JToken"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Graphics"
        ],
        "summary": "Delete a graphic by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "description": ""
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/arcgisearth/Graphics": {
      "post": {
        "tags": [
          "Graphics"
        ],
        "summary": "Add the graphic",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JToken"
                },
                "description": "",
                "nullable": true
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JToken"
                },
                "description": "",
                "nullable": true
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JToken"
                },
                "description": "",
                "nullable": true
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JToken"
                },
                "description": "",
                "nullable": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "patch": {
        "tags": [
          "Graphics"
        ],
        "summary": "Update the graphic",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JToken"
                },
                "description": "",
                "nullable": true
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JToken"
                },
                "description": "",
                "nullable": true
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JToken"
                },
                "description": "",
                "nullable": true
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JToken"
                },
                "description": "",
                "nullable": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/arcgisearth/Layer": {
      "post": {
        "tags": [
          "Layer"
        ],
        "summary": "Add a layer",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AGEDatasource"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AGEDatasource"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AGEDatasource"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AGEDatasource"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/arcgisearth/Layer/{id}": {
      "get": {
        "tags": [
          "Layer"
        ],
        "summary": "Get layer information by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "description": ""
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "Layer"
        ],
        "summary": "Delete a layer by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "description": ""
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/arcgisearth/Layers/{target}": {
      "delete": {
        "tags": [
          "Layers"
        ],
        "summary": "Remove layers by target",
        "parameters": [
          {
            "name": "target",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "description": ""
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/arcgisearth/Snapshot": {
      "get": {
        "tags": [
          "Snapshot"
        ],
        "summary": "Take a snapshot",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/arcgisearth/Workspace": {
      "get": {
        "tags": [
          "Workspace"
        ],
        "summary": "Export the workspace content",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AGEWorkspace"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AGEWorkspace"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AGEWorkspace"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Workspace"
        ],
        "summary": "Import a workspace",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AGEWorkspace"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AGEWorkspace"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AGEWorkspace"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AGEWorkspace"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "Workspace"
        ],
        "summary": "Clear the workspace",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.12-Alpha"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AGESpatialReference": {
        "type": "object",
        "properties": {
          "wkid": {
            "type": "integer",
            "description": "wkid",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "sr"
      },
      "AGEMapPoint": {
        "type": "object",
        "properties": {
          "x": {
            "type": "number",
            "description": "x positon of Mappoint",
            "format": "double"
          },
          "y": {
            "type": "number",
            "description": "y",
            "format": "double"
          },
          "z": {
            "type": "number",
            "description": "z",
            "format": "double"
          },
          "spatialReference": {
            "$ref": "#/components/schemas/AGESpatialReference"
          }
        },
        "additionalProperties": false,
        "description": "AGEMapPointDTO"
      },
      "AGECamera": {
        "type": "object",
        "properties": {
          "position": {
            "$ref": "#/components/schemas/AGEMapPoint"
          },
          "heading": {
            "type": "number",
            "description": "Heading",
            "format": "double"
          },
          "tilt": {
            "type": "number",
            "description": "Tilt",
            "format": "double"
          },
          "roll": {
            "type": "number",
            "description": "Roll",
            "format": "double"
          }
        },
        "additionalProperties": false,
        "description": "Camera class"
      },
      "JToken": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/JToken"
        }
      },
      "AGEFlight": {
        "type": "object",
        "properties": {
          "camera": {
            "$ref": "#/components/schemas/AGECamera"
          },
          "duration": {
            "type": "number",
            "description": "Duration",
            "format": "double"
          }
        },
        "additionalProperties": false,
        "description": "AGEFlightDTO"
      },
      "AGEDatasource": {
        "type": "object",
        "properties": {
          "uri": {
            "type": "string",
            "description": "URI",
            "nullable": true
          },
          "urIs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "URIs",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "Type",
            "nullable": true
          },
          "target": {
            "type": "string",
            "description": "Target",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "AGEDatasourceDTO"
      },
      "AGEWorkspace": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Url",
            "nullable": true
          },
          "path": {
            "type": "string",
            "description": "Path",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "AGEWorkspaceDTO"
      }
    }
  }
}