Gamma API
ProjectsIntegrations

Run a sync again

POST
/api/projects/{projectId}/integrations/runs/{jobId}/rerun

Queues a run with the same input as this one, linked to it (rerunOfId): it reads both sides as they are now, never what this run read or sent. A periodic run takes the place of the next one the integration queued, and starts its backoff over. With only: failed, its failed issues, forms and element statuses alone (409 when none). 409 while this run is queued or running; for a minute after a canceled or failed run ended, while it may still be stopping; while the integration is paused; or while a run under the same key is live, a rerun asked for a moment ago included.

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

Request Body

application/json
  1. body
only?string

failed: only the run's failed issues, forms and element statuses, each the way it failed โ€” a write to the provider pushed again, one into Gamma pulled again โ€” as point syncs of at most 100 records each, per product and way, all linked to this run. Failed models have no point sync: run the whole run again for them (failedRerun in the run says how many of each).

Default"all"
Value in"all""failed"

Response Body

Created.

application/json
  1. response
job*

The first job queued.

jobs*array<string>

Every job queued: one, or one per 100 failed records, product and way.

Example Request
curl -X POST 'http://localhost:3000/api/projects/string/integrations/runs/string/rerun' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "job": {    "id": "string"  },  "jobs": [    "string"  ]}