For API requests, Cohesive supports semantic instructions for structuring the API response. You can specify a JSON response format in the request, and Cohesive will extract and return the data in the requested structure.
Provide comments (via //<comment>) to help describe or provide more instructional context into the data request
Example: time-based metric import
Note: this schema is available as a template. This example simply illustrates how it could be custom-defined.
Example operational metrics
For the above metric data, we could pass in a request specifying the JSON response format as below:
This schema can be provided via API request or in Cohesive's workflow builder platform
Cohesive would then return all of the processed metrics in the requested response structure:
Data will be returned in the API response (or in the workflow builder platform) in the specified structure