> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blobhub.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Describe

Read an app blob revision as the platform reads it: the app, its blobs, its inputs and every problem found in the
definition. The commit route runs it and refuses to commit while `problems` is not empty.

## **POST** `/revisions/:id/data/query` (Command: `describe`)

### Request Body

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `command` | string | Yes | Must be `describe`. |

### Response

| Parameter | Type | Description |
| :- | :- | :- |
| `app` | object | `label`, `version` and `description`, from [`app.yaml`](https://docs.blobhub.io/blob-types/app/app-yaml#app). |
| `blobs` | array | One entry per blob the app makes, each with `alias` and `type`: `null` when the folder's `blob.yaml` names no type. |
| `inputs` | array | The [inputs](https://docs.blobhub.io/blob-types/app/app-yaml.md#inputs) an installer is asked for, each with `name`, `kind`, `label` and `required`. |
| `problems` | array | Every problem found, as sentences, each starting with the file it concerns, such as `blobs/flows/blob.yaml: …`. Empty when the definition can be committed. |

A problem is also a manifest that reads a secret input outside a credential's `body`: `the secret input weather_key is
read only by a credential body` ([Inputs](https://docs.blobhub.io/blob-types/app/app-yaml.md#inputs)). Among the others:

* **A `limits` declaration** that is not a list of mappings; an entry with a key it does not have, or without exactly
  one bound; an id that names no limit, or one an app may not require; the wrong key for the limit; or a bound that is
  not a whole number, or goes past the catalog's most permissive value. Among them
  ([When it is checked](https://docs.blobhub.io/blob-types/app/blob-yaml.md#when-it-is-checked) lists each):
  * `blobs/flows/blob.yaml: limits[0]: no limit is named blobhub.compute.workflow.executions_per_day`
  * `blobs/flows/blob.yaml: limits[1].id: must be a limit id`, for an id that is missing or not a string
  * `blobs/schedules/blob.yaml: limits[0]: blobhub.compute.scheduler.min_interval_seconds is a minimum; use at_most`
  * `blobs/flows/blob.yaml: limits[0]: blobhub.compute.scheduler.schedules_per_revision is not a limit of
    blobhub.compute.workflow`
  * `blobs/flows/blob.yaml: limits[0]: blobhub.compute.workflow.enabled is checked by every install; remove it`
  * `blobs/flows/blob.yaml: limits[1]: blobhub.compute.workflow.executions_per_session is named twice`
  * `blobs/flows/blob.yaml: limits[0]: the platform fixes blobhub.compute.workflow.sleep_seconds at 43200`
* **An `upgrade`** that is not a mapping or has a key it does not have, whose `from` is not a semantic version or is
  newer than the version's own, as in `app.yaml: upgrade.from: 0.4.0 is newer than this version, 0.3.0`, or whose
  `busy` names a folder that is not a workflow blob, a session its manifest does not declare, or an object alias that
  breaks its grammar ([Upgrade](https://docs.blobhub.io/blob-types/app/app-yaml.md#upgrade)).
* **An `app.version`** that is not a semantic version, as in `app.yaml: app.version: must be a semantic version,
  MAJOR.MINOR.PATCH with an optional -prerelease; found '0.5'`, or is longer than 32 characters,
  `app.yaml: app.version: must be at most 32 characters` ([App](https://docs.blobhub.io/blob-types/app/app-yaml.md#app)).
* **A count past its limit's most permissive value**, which no override can allow: a workflow manifest holding more
  definitions of a category, or more objects in one session, than the catalog's bound
  ([Content and runtime](https://docs.blobhub.io/blob-types/app/blob-yaml.md#content-and-runtime)):
  * `blobs/flows/blob.yaml: the revision holds 101 listeners; blobhub.compute.workflow.listeners_per_revision cannot
    be set above 100`
  * `blobs/flows/blob.yaml: the revision holds 10001 objects in session reports;
    blobhub.compute.workflow.session_objects_per_session cannot be set above 10000`

A draft that is still being pushed may report problems; a version had none when it was committed, because the commit
route refuses one that does, with 400 `invalid_app` and the problems.

### Errors

| Status | Error | Cause |
| :- | :- | :- |
| 403 | `forbidden` | The app blob is not public and the caller is not a member of it or of its organization. |
| 503 | `renderer_unavailable` | The platform's template renderer could not be reached. Nothing was decided; ask again. |

### Example

```json Request theme={null}
{
  "command": "describe"
}
```

```json Response theme={null}
{
  "status": "success",
  "app": {
    "label": "Field Reports",
    "version": "0.2.0",
    "description": "Notes from field technicians, turned into reports."
  },
  "blobs": [
    {"alias": "flows", "type": "blobhub.compute.workflow"},
    {"alias": "schedules", "type": "blobhub.compute.scheduler"}
  ],
  "inputs": [
    {"name": "config", "kind": "document", "label": "Report settings", "required": true},
    {"name": "weather_key", "kind": "secret", "label": "Weather API key", "required": false}
  ],
  "problems": []
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.