Skip to main content

Import

Route

Send 0 as expectedRevision for a user with no assignments yet. To give a user assignments, the user must have a wallet connected to your app. Removing every assignment works for any existing user.
Send every assignment the user should keep. Anything left out is removed, and an empty assignments array removes them all.
An approval case is open while it is pending, and after it completes until it is used to sign or expires. Para refuses a change that would invalidate open cases until you confirm it. A confirmed change ends those cases as invalidated, and their requests need a new attempt.Through the API, a refused change returns 409 with code APPROVAL_CASES_AFFECTED and the case IDs in affectedCaseIds, and nothing changes. To confirm it, send the same change again with force: true.In the REST SDK, the error is a ParaRestError with that code, and ParaRestError.affectedCaseIds lists the cases.

Example

For the first write, send revision 0 and the complete assignment set to retain.

Errors

A non-success response throws ParaRestError with the HTTP status, the error code and a message. Permissions errors lists every error code. An empty path argument throws ParaRestValidationError before the request is sent.