Grist Octri Preview
POST/docs/{docId}/propose

Create a change proposal

Create a proposal from a fork to its trunk document. The proposal contains the comparison of changes between the fork and trunk. This endpoint can only be called on a fork document.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 1 body field
docIdstringrequired
A string id (UUID)
retractedbooleanoptional
Set to true to retract an existing proposal
Default:false

2 status codes
200Proposal created
comparisonobjectoptional
Comparison result between two document versions
idintegeroptional
Proposal ID
400Can only propose from a fork

Error handling

A 400 is returned: Can only propose from a fork.