Content Scripting REST API
- Last UpdatedApr 08, 2020
- 1 minute read
The Content Scripting REST API allows you to programmatically define layout and data details to create Insight content.
For examples of code to create different types of charts, see the Examples section.
API key authentication
Content Scripting REST API is secured using an API key. Because requests are processed only for valid API key bearers, Content Scripting REST API must carry a valid API key along with chart scripting request.
For information on creating an API key, see Acquire an API key for data retrieval.
Endpoint URL
Content Scripting REST API uses this endpoint URL:
https://online.wonderware.[DOMAINSUFFIX]/apis/Historian/v2/Contents?overwrite=true
The query parameter "overwrite" is used to overwrite the existing content with the same name. If this parameter is not provided and if the content with same name exist it will throw the duplicate content exist (409) error.