3.1.0 Automate
HomeIntegrityControlSolutionsManagement Center
  • Introduction
  • About this release
    • Release notes
    • Breaking changes
  • Flow of the request
  • Sending data to the API
  • Authenticating the client
  • Installation
  • Configuration API
    • Examples
  • Scheduler
Powered by GitBook
On this page
Export as PDF

Sending data to the API

Calling the API can be done using HTTP method POST, PUT or GET.

Sending data to the API can be done by setting HTTP headers, request parameter or as a JSON structure in the request body.

Accessing data in a valve is done by using expansion.

Example

Given the http request with body:

{
	"firstkey": "fistvalue",
	"secondkey": "secondvalue"
}

Using expansion in valve to access "firstkey" is done through ${request.firstkey}.

Lets say the request sent in something in the http header Authorization header.

Expanding data in the Authorization haders is done: ${request.header_firstkey}.

Note the "header_" prefix.

PreviousFlow of the requestNextAuthenticating the client