{
  "schemaVersion": 1,
  "operation": {
    "operationId": "getWorkspaceActiveAssetGraph",
    "method": "GET",
    "path": "/api/v1/workspaces/{workspace}/active-asset-graph",
    "summary": "Get the active asset graph",
    "description": "",
    "tags": [
      "Workspaces"
    ],
    "effect": "read",
    "confirmation": "never",
    "authorization": {
      "mode": "privilege",
      "privilege": "USE_WORKSPACE"
    },
    "parameters": [
      {
        "name": "workspace",
        "in": "path",
        "required": true,
        "description": "",
        "schema": {
          "type": "string"
        }
      }
    ],
    "responses": [
      {
        "status": "200",
        "description": "The request has succeeded.",
        "content": [
          {
            "contentType": "application/json",
            "schema": {
              "$ref": "#/components/schemas/WorkspaceAssetGraphResponse"
            }
          }
        ]
      },
      {
        "status": "400",
        "description": "The server could not understand the request due to invalid syntax.",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "401",
        "description": "Access is unauthorized.",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "403",
        "description": "Access is forbidden.",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "404",
        "description": "The server cannot find the requested resource.",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "409",
        "description": "The request conflicts with the current state of the server.",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "412",
        "description": "Precondition failed.",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "413",
        "description": "Client error",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "415",
        "description": "Client error",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "422",
        "description": "Client error",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "429",
        "description": "Client error",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "500",
        "description": "Server error",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "502",
        "description": "Server error",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      },
      {
        "status": "503",
        "description": "Service unavailable.",
        "content": [
          {
            "contentType": "application/problem+json",
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        ]
      }
    ]
  },
  "schemas": {
    "AssetEdgeResponse": {
      "example": {
        "fromAssetId": "example",
        "id": "example",
        "servingStateId": "example",
        "toAssetId": "example",
        "type": "example",
        "workspaceId": "example"
      },
      "properties": {
        "fromAssetId": {
          "example": "example",
          "type": "string"
        },
        "id": {
          "example": "example",
          "type": "string"
        },
        "servingStateId": {
          "example": "example",
          "type": "string"
        },
        "toAssetId": {
          "example": "example",
          "type": "string"
        },
        "type": {
          "example": "example",
          "type": "string"
        },
        "workspaceId": {
          "example": "example",
          "type": "string"
        }
      },
      "required": [
        "id",
        "workspaceId",
        "servingStateId",
        "fromAssetId",
        "toAssetId",
        "type"
      ],
      "type": "object"
    },
    "AssetGraphAssetResponse": {
      "example": {
        "contentHash": "example",
        "description": "example",
        "id": "example",
        "key": "example",
        "parentId": "example",
        "payload": {
          "key": "example"
        },
        "payloadSchema": "example",
        "servingStateId": "example",
        "snapshotId": "example",
        "sourceFile": "example",
        "title": "example",
        "type": "example",
        "workspaceId": "example"
      },
      "properties": {
        "contentHash": {
          "example": "example",
          "type": "string"
        },
        "description": {
          "example": "example",
          "type": "string"
        },
        "id": {
          "example": "example",
          "type": "string"
        },
        "key": {
          "example": "example",
          "type": "string"
        },
        "parentId": {
          "example": "example",
          "type": "string"
        },
        "payload": {
          "additionalProperties": {},
          "example": {
            "key": "example"
          },
          "type": "object"
        },
        "payloadSchema": {
          "example": "example",
          "type": "string"
        },
        "servingStateId": {
          "example": "example",
          "type": "string"
        },
        "snapshotId": {
          "example": "example",
          "type": "string"
        },
        "sourceFile": {
          "example": "example",
          "type": "string"
        },
        "title": {
          "example": "example",
          "type": "string"
        },
        "type": {
          "example": "example",
          "type": "string"
        },
        "workspaceId": {
          "example": "example",
          "type": "string"
        }
      },
      "required": [
        "id",
        "snapshotId",
        "workspaceId",
        "servingStateId",
        "type",
        "key",
        "title",
        "description",
        "payloadSchema",
        "payload",
        "contentHash"
      ],
      "type": "object"
    },
    "ProblemDetails": {
      "example": {
        "code": "example",
        "detail": "example",
        "errors": [
          {
            "code": "example",
            "detail": "example",
            "field": "example"
          }
        ],
        "instance": "example",
        "requestId": "example",
        "status": 1,
        "title": "example",
        "type": "example"
      },
      "properties": {
        "code": {
          "example": "example",
          "type": "string"
        },
        "detail": {
          "example": "example",
          "type": "string"
        },
        "errors": {
          "example": [
            {
              "code": "example",
              "detail": "example",
              "field": "example"
            }
          ],
          "items": {
            "$ref": "#/components/schemas/ProblemFieldError"
          },
          "type": "array"
        },
        "instance": {
          "example": "example",
          "type": "string"
        },
        "requestId": {
          "example": "example",
          "type": "string"
        },
        "status": {
          "example": 1,
          "format": "int32",
          "type": "integer"
        },
        "title": {
          "example": "example",
          "type": "string"
        },
        "type": {
          "example": "example",
          "type": "string"
        }
      },
      "required": [
        "type",
        "title",
        "status",
        "detail",
        "instance",
        "code",
        "requestId",
        "errors"
      ],
      "type": "object"
    },
    "ProblemFieldError": {
      "example": {
        "code": "example",
        "detail": "example",
        "field": "example"
      },
      "properties": {
        "code": {
          "example": "example",
          "type": "string"
        },
        "detail": {
          "example": "example",
          "type": "string"
        },
        "field": {
          "example": "example",
          "type": "string"
        }
      },
      "required": [
        "field",
        "code",
        "detail"
      ],
      "type": "object"
    },
    "WorkspaceAssetGraphResponse": {
      "example": {
        "assets": [
          {
            "contentHash": "example",
            "description": "example",
            "id": "example",
            "key": "example",
            "parentId": "example",
            "payload": {
              "key": "example"
            },
            "payloadSchema": "example",
            "servingStateId": "example",
            "snapshotId": "example",
            "sourceFile": "example",
            "title": "example",
            "type": "example",
            "workspaceId": "example"
          }
        ],
        "edges": [
          {
            "fromAssetId": "example",
            "id": "example",
            "servingStateId": "example",
            "toAssetId": "example",
            "type": "example",
            "workspaceId": "example"
          }
        ]
      },
      "properties": {
        "assets": {
          "example": [
            {
              "contentHash": "example",
              "description": "example",
              "id": "example",
              "key": "example",
              "parentId": "example",
              "payload": {
                "key": "example"
              },
              "payloadSchema": "example",
              "servingStateId": "example",
              "snapshotId": "example",
              "sourceFile": "example",
              "title": "example",
              "type": "example",
              "workspaceId": "example"
            }
          ],
          "items": {
            "$ref": "#/components/schemas/AssetGraphAssetResponse"
          },
          "type": "array"
        },
        "edges": {
          "example": [
            {
              "fromAssetId": "example",
              "id": "example",
              "servingStateId": "example",
              "toAssetId": "example",
              "type": "example",
              "workspaceId": "example"
            }
          ],
          "items": {
            "$ref": "#/components/schemas/AssetEdgeResponse"
          },
          "type": "array"
        }
      },
      "required": [
        "assets",
        "edges"
      ],
      "type": "object"
    }
  }
}
