Whether a run still describes its import
const url = 'https://api.sloose.com/orgs/org_9f3c/imports/imp_4d1a/runs/run_7c2e';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.sloose.com/orgs/org_9f3c/imports/imp_4d1a/runs/run_7c2e \ --header 'Authorization: Bearer <token>'Which of the run’s flows the import still holds as the run read them: the same source, bound to the same flow, the same stored file, read under the same options. A run’s records name rows as (flow, row number), and a row’s number is its place in its file as read — so a replaced file, or one read with another header row or sheet, puts different rows at the same numbers, and the run’s results for that flow no longer describe the import’s rows. unchanged and changed list flow ids (null for a run of one unnamed flow). The cleaning is not compared: exclusions and cell edits do not renumber a file. Any member of the org may read it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The org id the session was issued for. A token for one org can never read another.
Example
org_9f3cThe org id the session was issued for. A token for one org can never read another.
The import id.
Example
imp_4d1aThe import id.
The run id, from POST /entitlements/runs/authorise.
Example
run_7c2eThe run id, from POST /entitlements/runs/authorise.
Responses
Section titled “Responses”The run’s flows, by whether the import still holds each one’s file as the run read it, and what it set out to walk.
object
The import’s version this was answered against: a change to the import after it — a file replaced, another reading — is one this answer does not know about.
What the run set out to walk, as the page that ran it said at its authorisation (plan): its files in the order it met them, each with the rows it ran (endRow null: to the file’s end), and where it began when it picked up part-way (from). A run picking up where it stopped walks this rather than the ranges on screen now, which a reopened import resets. Null for a run kept before plans were, or one whose page sent none: unknown, never guessed.
object
object
object
Where a run that picked up part-way began (#1252): the file, by its flow, and the row. Null for a run that began at its start, and for one kept before this was.
object
Examplegenerated
{ "id": "example", "unchanged": [ "example" ], "changed": [ "example" ], "importVersion": 1, "plan": { "files": [ { "flowId": "example", "range": { "startRow": 1, "endRow": 1 } } ], "from": { "flowId": "example", "row": 1 } }}No bearer, or one that is expired, revoked or no longer resolves to a member.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}The bearer’s role is too low, or it was issued for a different org.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}No such import or run, or it is not visible to this session.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}A reading’s options were written by a newer build of Sloose than this one (FROM_FUTURE), and cannot be compared by this one.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}