Readiness Reports

Get a readiness report

Changed on

Returns one readiness report the caller can read, by the same rule as the list. In an organization whose Prem is not hosted by Factory, the creator's access does not apply, and a report only the creator of its source session could read answers 404. The server looks up who created a report's source session only for a report that is not deleted, that the caller did not upload, cannot access through source control and that is not shared with the organization, and whose source session ID is a UUID. While the lookup can be made, a report that does not exist, a deleted report and a report the caller cannot read answer the same 404. While it is unavailable, a report that needs it answers 503, and a report that does not exist or is deleted still answers 404.

get/api/v0/readiness-reports/{reportId}

Request

  • Base URL
    https://api.factory.ai
  • Auth
    HTTP bearer

Path parameters

reportId, string required

Readiness report ID

Headers

X-Factory-Org-Id, string

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Response

Response for status 200

GetReadinessReport200ResponseBody required
reportId, string required

Readiness report ID

createdAt, number required

When the report was stored, in Unix epoch milliseconds

sourceSessionId, string required

ID of the session that generated the report

ownerUserId, string

User ID of the caller that uploaded the report; for a report a service account uploaded, the service account ID

repoUrl, string

Repository the report evaluated

report, object required

Evaluation of each readiness criterion, by criterion ID

apps, object

Applications found in the repository, by path within it

commitHash, string

Commit the report evaluated

branch, string

Branch the report evaluated

hasLocalChanges, boolean

Whether the working tree had uncommitted changes when the report was generated

hasNonRemoteCommits, boolean

Whether the branch had commits not pushed to its remote when the report was generated

modelUsed, object

Model that generated the report

droidVersion, string

Version of Droid that generated the report

privacyLevel, string

Who can read the report: private limits it to its owner, callers with source-control access to its repository, and the creator of its source session; organization also shares it with the organization. Absent means private. More values may be added; treat a value you do not know as unknown.

Changes