{"type":"api","title":"Post Extra Field","meta":{"id":"/apps/pubhub/media/cisco-cyber-vision-5-5-classic-api/59a6192a831d460cd09b5f17dfeac4cc1eb91fc3/262737b2-b3c2-32cd-b07b-fdbdcd23918f","swagger":"2.0","info":{"description":"API to manage the resources of Cisco Cyber Vision - Classic.","title":"Cisco Cyber Vision - Classic API.","contact":{"name":"Cisco Industrial Networking Community","url":"https://community.cisco.com/t5/industrial-networking/bd-p/discussions-iot-industrial-routing","email":"tac@cisco.com"},"license":{"name":"Cisco API License Terms and Conditions","url":"https://developer.cisco.com/site/license/cisco-api-license/"},"version":"3.0.0-5.5.0"},"basePath":"/api/3.0/","schemes":["https"],"securityDefinitions":{"token":{"description":"API token created in the Cyber Vision administration UI","type":"apiKey","name":"x-token-id","in":"header"}},"security":[{"token":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/overview.md"}}},"spec":{"description":"Add an extra property to either a component, a group or a device.","tags":["CustomProperties"],"summary":"Add Property to Component, Group or Device","operationId":"postExtraField","parameters":[{"enum":["components","groups","devices"],"type":"string","description":"the object (components, groups or devices) where to add extra property","name":"object","in":"path","required":true},{"type":"string","description":"the object id (component id or group id)","name":"id","in":"path","required":true},{"description":"the property to add","name":"property","in":"body","required":true,"schema":{"type":"object","properties":{"label":{"type":"string","x-go-name":"Label"},"value":{"type":"string","x-go-name":"Value"}},"x-go-package":"cv-gitlab.cisco.com/sentryo-labs/ccv-go/backend/serialization/v3/payload/extrafield","$$ref":"#/definitions/AddExtraFieldBody"}}],"responses":{"200":{"description":"extra property successfully added","schema":{"type":"object","properties":{"id":{"description":"A UUID is a 128 bit (16 byte) Universal Unique IDentifier as defined in RFC\n4122.","type":"array","items":{"type":"integer","format":"uint8"},"x-go-package":"code.google.com/p/go-uuid/uuid","$$ref":"#/definitions/UUID"},"label":{"type":"string","x-go-name":"Label"},"value":{"type":"string","x-go-name":"Value"}},"x-go-package":"cv-gitlab.cisco.com/sentryo-labs/ccv-go/backend/serialization","$$ref":"#/definitions/AddExtraFieldResp"}},"400":{"description":"bad request"},"401":{"description":"incorrect token"},"404":{"description":"not found"},"412":{"description":"precondition failed. Label should be \u003c= 60 characters and Value \u003c= 180 characters"},"default":{"description":"unexpected error"}},"__originalOperationId":"postExtraField","consumes":["application/json"],"produces":["application/json"],"security":[{"token":[]}],"method":"post","path":"/{object}/{id}/usersProperties"}}