Decide a conflict
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.
sessiongamma.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.
projectId*stringThe project's id.
conflictId*stringapplication/json- body
decision*stringFor 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).
"local""external""fields""create""link"linkTo?stringFor 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.
1 <= length <= 200choices?For fields: the side each differing field comes from; Gamma's where left out.
localVersion*stringGamma's version in the comparison decided on; empty for a side being created.
externalVersion*stringThe provider's, the same.
Created.
application/json- response
jobId*stringcurl -X POST 'http://localhost:3000/api/projects/string/integrations/conflicts/string/decision' \ -H 'Content-Type: application/json' \ -d '{ "decision": "local", "localVersion": "string", "externalVersion": "string"}'{ "jobId": "string"}