Update Single Entity - Intergraph Smart 3D Web API - Customization & Programming - Hexagon PPM

Intergraph Smart 3D Web API Programmers Reference

Language
English
Product
Intergraph Smart 3D Web API
Subproduct
Smart 3D Web APIs
Search by Category
Customization & Programming
Smart 3D Version
12 (2018)

Updating one or more properties on a single item is done through a PATCH request. This request follows HTTP and OData standards. Only entities derived from the S3dItem base class can be updated. Also, a “ConcurrencyToken” property can be given as part of the body or as an ETag value provided to If-Match request header to perform a conditional update. The example below will conditionally update the ApprovalStatus value on an entity.

PATCH

https://MyServer.Domain.com/s3d/v1/Sites('MySiteAlias')/Plants('MyPlant')/SmartEquipment('{0001ADB6-0000-0000-9300-1BC0C4591E04}')

{

"@odata.type" : "Com.Ingr.Smart3d.V1.SmartEquipment",

"ApprovalStatus": 2,

"ConcurrencyToken": "12:24"

}

Dynamic properties can be updated with a PATCH request.