Article - CS290180

Call external REST API with header and body as input fields in ThingWorx

Modified: 13-Jun-2023   


Applies To

  • ThingWorx Platform 8.0 to 9.3

Description

  • How to call a REST API which accept header and body as input
  • How to call a REST API with ThingWorx's ContentLoaderFunctions
  • Error observed on UI:
{"error":"invalid_request","error_description":"xxxxxxx: The request body must contain the following parameter: 'grant_type'.\r\nTrace ID: \r\nCorrelation ID: \r\nTimestamp: yyyy-mm-dd hh:mm:ss","error_codes":[90014],"timestamp":"yyyy-mm-dd hh:mm:ss","trace_id":"","correlation_id":""}^Accept=application/json:Content-Type=application/json
This is a printer-friendly version of Article 290180 and may be out of date. For the latest version click CS290180