Gamma API
ProjectsIntegrations

Decide a conflict

POST
/api/projects/{projectId}/integrations/conflicts/{conflictId}/decision

Notes the decision and queues the job that carries it out (201 with its id); the conflict is resolved once that job confirmed both sides. 409 when it is closed, a side changed since the versions given โ€” read it again โ€” or linkTo is linked already to another record. 400 when the decision does not fit the conflict's kind, or the integration does not sync the way it writes. A job that fails hands the decision back (decision null again), its resolutionJobId saying why.

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.

conflictId*string

Request Body

application/json
  1. body
decision*string

For a changed conflict โ€” local: keep Gamma's and write it over there. external: keep the provider's and write it into Gamma. fields: per field, written both ways. For an unfinishedCreate โ€” create: make it again on the side it was being made on. link: link it to the one found there (linkTo).

Value in"local""external""fields""create""link"
linkTo?string

For link: the id of the record, on the side it was being created on, to link it to. A form links only to one of its own template; the job refuses another, and one linked already.

Length1 <= length <= 200
choices?

For fields: the side each differing field comes from; Gamma's where left out.

localVersion*string

Gamma's version in the comparison decided on; empty for a side being created.

externalVersion*string

The provider's, the same.

Response Body

Created.

application/json
  1. response
jobId*string
Example Request
curl -X POST 'http://localhost:3000/api/projects/string/integrations/conflicts/string/decision' \  -H 'Content-Type: application/json' \  -d '{  "decision": "local",  "localVersion": "string",  "externalVersion": "string"}'
Example Response
{  "jobId": "string"}