OK
{
"baselineFile": {
"id": "5e19bee0-3aea-4355-a9f0-c6df9989ee7d",
"displayName": "5e19bee0-3aea-4355-a9f0-c6df9989ee7d.bim",
"fileSize": 12563,
"state": "initializationScheduled",
"_links": {
"creator": {
"href": "https://api.bentley.com/imodels/5e19bee0-3aea-4355-a9f0-c6df9989ee7d/users/42101fba-847a-4f4e-85a8-a4bed89065e4"
},
"download": null
}
}
}
This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.
{
"error": {
"code": "HeaderNotFound",
"message": "Header Authorization was not found in the request. Access denied."
}
}
User is not authorized to complete Baseline File upload.
{
"error": {
"code": "InsufficientPermissions",
"message": "The user has insufficient permissions for the requested operation."
}
}
Specified iModel was not found, it does not have an associated Baseline File entity or the file was not uploaded to the storage.
{
"error": {
"code": "iModelNotFound",
"message": "Requested iModel is not available."
}
}
File size specified during iModel creation does not match the actual file size of the uploaded file.
{
"error": {
"code": "DataConflict",
"message": "File size provided during iModel creation does not match actual file size."
}
}
The 422 (Unprocessable Entity) status code indicates that the request cannot be processed by the server due to a client error (e.g. malformed request syntax)
{
"error": {
"code": "InvalidiModelsRequest",
"message": "Cannot complete Baseline File upload.",
"details": [{
"code": "InvalidChange",
"message": "Baseline File upload is not in progress."
}]
}
}
This response indicates that the user has sent too many requests in a given amount of time.
{
"error": {
"code": "TooManyRequests",
"message": "More requests were received than the subscription rate-limit allows."
}
}