Resuming a Saved Assembly Session

If you have already saved an assembly session, you can resume the session by making a request to the begin assembly session endpoint.

Prerequisites

Before making a 'resume assembly session' request, you must have an access token to sign the request. You can retrieve an access token using one of the following flows:

Additionally, you must have the following items:

Overview

The 'resume assembly session' API method is a command method. The API client invoking this method must have either a command or a root scope.

This method is useful when you want to enable a user to return to the last saved state of their interview.

This method forces a new assembly session to be created, loading the last saved answers into the interview.

This method will force a new assembly session to be created, abandoning any unsaved changes to the interview.

Authentication

See Authentication for more information about authenticating requests to the Advance API.

API Documentation

You can view the latest reference documentation for the Advance API at https://yourorganization.com/HdaApi/rest/documentation/index.html, where yourorganization.com is the domain under which your Advance deployment is located.

You can view the latest documentation for the Advance API at http://hotdocsadvance.com/api/rest/documentation/index.html

Request

Request URL

PUT https://{tenancymoniker}.{domain}/HdaApi/rest/v1.1/WorkItems/{id}/Versions/{versionId}

PUT https://{tenancymoniker}.hotdocsadvance.com/api/rest/v1.1/WorkItems/{id}/Versions/{versionId}

Headers

Key Required Description Example value
Authorization Yes The Authorization header for the request. Uses the access token retrieved (see Prerequisites section above for more information). Bearer [access token]

Parameters

Name Type Location Required Description
tenancymoniker String URL Yes The tenancy moniker for the tenancy in which you want to create the new work item.
domain String URL Yes Your domain. For example, yourorganization.com.
id Guid URL Yes The Guid for an existing work item.
versionId Guid URL Yes A new Guid for an assembly session.
answerXml String Body No You must omit this parameter; Advance will reload the answers from your saved assembly session into the resumed assembly session.
forceCreate Boolean Body Yes You must set this parameter to true.

Examples

Example Request URL

https://yourtenancy.yourorganization.com/HdaApi/rest/v1.1/WorkItems/2d9f3d10-6fdb-494f-9929-955515c6f114/Versions/319a70e1-92de-461a-ba16-8a738e096e19

https://yourtenancy.hotdocsadvance.com/api/rest/v1.1/WorkItems/2d9f3d10-6fdb-494f-9929-955515c6f114/Versions/319a70e1-92de-461a-ba16-8a738e096e19

Example Request JSON

{"answerXml": "string", "forceCreate": true}

Example Response

Status: 200 OK

 THIS MAY BE A BUG

You should be able to use the existing versionId. That would be the expected behaviour, there may be a bug here.

Resuming an Unsaved Assembly Session

If you have not saved the assembly session, you can resume the session by making a request to the begin assembly session endpoint, using same versionId as you used to begin the initial assembly session, provided the forceCreate parameter is set to false only.