Updates the specifications for an object

PATCH {{baseUrl}}/public/api/projects/v1/dbs/:dbid/projects/:projid/objects/:objid/specs?fields=<string>&overlayid=<string>&lcid=<string>

The fields parameter can have the following valid values:

  • "- The specifications will haveName,Descriptionfields.
  • *- The specifications will haveNestedName,Description,Value,DisplayValue,LValue,SIValue,ControlType,Unit,RangeType,Type,TabIndex,PhysUnitLabel,Precision,Length,Count,LinkObject,XValuesfields.
  • field1,field2" - Valid set of fields seperated by comma for the object. ex. Name,Description,...,etc
Note: fields will be filtered out in case they are not a part of the specifications. If all fields specified are invalid, then a BadRequest error will be thrown.


Sample request:

        PATCH
        [
            {
                "NestedName":"string",  //Required
                "Value":"string",   
                "SIValue":"double",
                "LinkObject":{
                    "UID":"string",
                    "ProjectUID":"string",
                    "OverlayUID":"string"
                },
                "XValues":[{
                    "Index":"int",
                    "XValue":"string",
                    "SIXValue":"double"
                }]
            }
        ]

Request Params

KeyDatatypeRequiredDescription
fieldsstringFields to be displayed for specifications
overlayidstringWorking Overlay Id
lcidstringLanguage Id

HEADERS

KeyDatatypeRequiredDescription
Comos-API-Sessionstring(Required) Comos SessionId that needs to be passed with every request except Login
Content-Typestring
Acceptstring

RESPONSES

status: OK

{}