Use this call to return the latest revision for a specific model. The response is in the same format as in Getting a list of syncable revisions between two models.

For best performance and outcomes, make all API calls to your closest regional server. To learn more about this, read URL, IP, and allowlist requirements.

Note: You must be a workspace administrator and you must have access to the specified model.

GET

/models/{modelGuid}/alm/latestRevision

Path parameterDetails
modelGuidIdentifies the model from which to retrieve the latest revision.

curl -L -X GET 'https://api.anaplan.com/2/0/models/96F5036A083F48148A550C71E3BBB8E7/alm/latestRevision' -H 'Authorization: AnaplanAuthToken {anaplanAuthToken}'

For a successful request, you receive a 200 OK response with details of the latest revision. For example:

{
   "meta": {
       "schema": "https://api.anaplan.com/2/0/objects/revision"
   },
   "status": {
       "code": 200,
       "message": "Success"
   },
   "revisions": [
       {
           "id": "0E79B89FD214428E8C3A00514B9BE9EE",
           "name": "Revision name",
           "description": "Some description",
           "createdOn": "2021-03-17T14:43:01Z",
           "createdBy": "c1c46795a04d430ca7b0ac0d993a5796",
           "creationMethod": "Model copied",
           "appliedOn": "2021-03-20T09:21:55Z",
           "appliedBy": "c2e86235a08h510ca7b0ad0g993a4318"
       }
   ]
}

If the specified model does not have any revisions, the user receives a 200 response with empty body. The body of the response does not return details of the revision. Models that use ALM always have a revision.

Review the ALM API troubleshooting guide to resolve any error responses from API calls.