Welcome to Kepware Edge > Configuration API Service > Configuring Tags > Configuration API Service — Property Validation Error Object
Configuration API Service — Property Validation Error Object
Configuration API Service — Property Validation Error Object
When making a POST request to create an object or making a PUT request to update an object or project properties, new values for those properties may be input as the body of the PUT or POST request to change the values. If there is a property validation error, two error objects appear. The first error object contains an error code and a message detailing why the error occurred. The second error object shows the same error code and error message in addition to an error property value, a description of that error property, and the line of input that created the error. The following example shows the error object of a POST request to create an object with a name that already exists.
 
Response Body:
{   “property”: “common.ALLTYPES_NAME”,   “description”: “The name “Channel1” is already used.”,   “error_line”: 7,   "code": 400,   "message": "Validation failed on property common.ALLTYPES_NAME in object definition at line 7: The name 'Channel1' is already used."}
 
Was this helpful?