Gamma API
ProjectsJobs

List sync job items

GET
/api/projects/{projectId}/jobs/{jobId}/items

What a sync job did to each record, oldest first, 500 at most; page with after, narrow with outcome and entity. A failed one says what it was writing (after.attempt). Empty for any other job.

Who may call it: Whoever manages the project: an owner, security admin or admin of its organization, or an admin of the project. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Host- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

projectId*string

The project's id.

jobId*string

Query Parameters

after?string

An item's id: only the items after it.

Lengthlength <= 100
outcome?string

What the job did to it โ€” not where it stands now. converged: both sides already agreed. unconfirmed: written, but reading it back did not show it. deleted: gone from the provider, so Gamma's copy went to the trash.

Value in"created""updated""unchanged""converged""skipped""conflict""unconfirmed""deleted""failed"
entity?string

A lane's records: models, statuses, forms, issues.

Lengthlength <= 50

Response Body

OK.

application/json
  1. response
items*array<>
Example Request
curl -X GET 'http://localhost:3000/api/projects/string/jobs/string/items'
Example Response
{  "items": [    {      "id": "string",      "jobId": "string",      "entity": "string",      "localId": "string",      "externalId": "string",      "outcome": "created",      "before": {        "local": {          "id": "string",          "version": "string",          "value": {            "property1": null,            "property2": null          }        },        "external": {          "id": "string",          "version": "string",          "value": {            "property1": null,            "property2": null          }        }      },      "after": {        "local": {          "id": "string",          "version": "string",          "value": {            "property1": null,            "property2": null          }        },        "external": {          "id": "string",          "version": "string",          "value": {            "property1": null,            "property2": null          }        }      },      "errorCode": "string",      "error": "string",      "at": "2019-08-24T14:15:22Z"    }  ]}