FOLIO · Schema

Control Flow Schema

Control flow that unifies one or more application flow for enable/disable/upgrade operations

CompanyLibrariesLibrary Services PlatformOpen SourceMicroservicesEducation

Properties

Name Type Description
id string A control flow identifier
status object Flow execution status
type object Flow entitlement type
tenantId string A tenant identifier
startedAt string A control flow start timestamp
finishedAt string A control flow end timestamp
stages array Executed stages for flow
applicationFlows array List with executed application flows
View JSON Schema on GitHub

JSON Schema

folio-flow-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/folio/main/json-schema/folio-flow-schema.json",
  "title": "Control Flow Schema",
  "description": "Control flow that unifies one or more application flow for enable/disable/upgrade operations",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-mgr-tenant-entitlements-openapi.yml#/components/schemas/flow",
  "id": "entitlementFlow.json",
  "type": "object",
  "properties": {
    "id": {
      "description": "A control flow identifier",
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "description": "Flow execution status",
      "$ref": "#/$defs/executionStatus"
    },
    "type": {
      "description": "Flow entitlement type",
      "$ref": "#/$defs/entitlementRequestType"
    },
    "tenantId": {
      "description": "A tenant identifier",
      "type": "string",
      "format": "uuid"
    },
    "startedAt": {
      "description": "A control flow start timestamp",
      "type": "string",
      "format": "date-time"
    },
    "finishedAt": {
      "description": "A control flow end timestamp",
      "type": "string",
      "format": "date-time"
    },
    "stages": {
      "type": "array",
      "description": "Executed stages for flow",
      "items": {
        "$ref": "#/$defs/flowStage"
      }
    },
    "applicationFlows": {
      "type": "array",
      "description": "List with executed application flows",
      "items": {
        "$ref": "#/$defs/applicationFlow"
      }
    }
  },
  "$defs": {
    "applicationFlow": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "id": "applicationEntitlement.json",
      "title": "Application Entitlement Flow Schema",
      "description": "An entitlement flow result for a single application",
      "type": "object",
      "properties": {
        "id": {
          "description": "An application entitlement flow identifier",
          "type": "string",
          "format": "uuid"
        },
        "applicationId": {
          "description": "An application descriptor identifier",
          "type": "string"
        },
        "tenantId": {
          "description": "A tenant identifier",
          "type": "string",
          "format": "uuid"
        },
        "flowId": {
          "description": "An entitlement flow identifier",
          "type": "string",
          "format": "uuid"
        },
        "type": {
          "description": "Application flow entitlement type",
          "$ref": "#/$defs/entitlementType"
        },
        "status": {
          "description": "Application flow execution status",
          "$ref": "#/$defs/executionStatus"
        },
        "startedAt": {
          "description": "An application flow start timestamp",
          "type": "string",
          "format": "date-time"
        },
        "finishedAt": {
          "description": "An application flow end timestamp",
          "type": "string",
          "format": "date-time"
        },
        "stages": {
          "description": "A list with executed stage results",
          "type": "array",
          "items": {
            "$ref": "#/$defs/flowStage"
          }
        }
      }
    },
    "entitlementRequestType": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "id": "types/entitlementRequestType.json",
      "title": "Tenant Entitlement Request Type Schema",
      "description": "A tenant entitlement request type",
      "type": "string",
      "enum": [
        "entitle",
        "revoke",
        "upgrade",
        "state"
      ]
    },
    "entitlementType": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "id": "types/entitlementType.json",
      "title": "Tenant Entitlement Type Schema",
      "description": "A tenant entitlement type",
      "type": "string",
      "enum": [
        "entitle",
        "revoke",
        "upgrade"
      ]
    },
    "executionStatus": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "id": "types/entitlementFlowStatus.json",
      "title": "Application/Stage Execution Status Schema",
      "description": "An application/stage execution status",
      "type": "string",
      "enum": [
        "queued",
        "in_progress",
        "cancelled",
        "cancellation_failed",
        "failed",
        "finished"
      ]
    },
    "flowStage": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "id": "flowStage.json",
      "title": "Flow Stage Schema",
      "description": "Flow stage descriptor. A stage can be part of global flow or specific application flow.",
      "type": "object",
      "properties": {
        "id": {
          "description": "A unique stage identifier",
          "type": "string",
          "format": "uuid"
        },
        "flowId": {
          "description": "A parent flow identifier (global or application flow)",
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "description": "A stage name",
          "type": "string"
        },
        "status": {
          "description": "Stage execution status",
          "$ref": "#/$defs/executionStatus"
        },
        "errorType": {
          "description": "A relevant error type caused stage failure or cancellation, nullable if stage is finished",
          "type": "string"
        },
        "errorMessage": {
          "description": "A relevant error message caused stage failure or cancellation, nullable if stage is finished",
          "type": "string"
        },
        "startedAt": {
          "description": "Stage execution start timestamp",
          "type": "string",
          "format": "date-time"
        },
        "finishedAt": {
          "description": "Stage execution end timestamp",
          "type": "string",
          "format": "date-time"
        },
        "retriesCount": {
          "description": "Number of retries performed during flow stage operations",
          "type": "integer"
        },
        "retriesInfo": {
          "description": "Error information on operations failures that caused retries",
          "type": "string"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/folio-flow"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.