Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Web API Reference

Attribute SetValue

Attribute SetValue

Set the value of a configuration item attribute. For attributes with a data reference or non-configuration item attributes, consult the documentation for streams.

Remarks

Users must be aware of the value type that the attribute takes before changing the value. If a value entered by the user does not match the value type expressed in the attribute, it will not work or it will return an error. Users should also be careful of what the value type means, for instance, if a value type accepts strings and the user enters a number, the attribute will interpret it as a string of characters and not as the integer value that the user may have wanted.

Request

PUT attributes/{webId}/value

URL Parameters

  • webId

    The ID of the attribute. See WebID for more information.

Body Parameter

The value to write.

Status Codes

204: The value was set successfully.

Sample Request Body

{
  "Timestamp": "2014-07-22T14:00:00Z",
  "UnitsAbbreviation": "m",
  "Good": true,
  "Questionable": false,
  "Substituted": false,
  "Value": 12.3
}
In This Topic
TitleResults for “How to create a CRG?”Also Available in