/test-post/
Purpose
Allows users to validate connection for post requests to the API.
Header Information
The following Authorization keys need to be added to any API call header.
Auth-FactorID: an ID provided by FactorCloud to the Factor who owns the instance of FactorCloud.
Auth-SystemKey: A Key to Identify the specific system.
Auth-APIKey: An API password.
HTTP Methods
Accepts POST requests.
URI
/api_factor/test-post/
Body Information
The body is a JSON Object with the following paramaters:
Variable Name |
Type |
Required |
Purpose |
TestValue |
String |
Y |
|
TestLabel |
String |
Y |
|
Curl Example
Request:
curl -H 'Auth-FactorId: FACTORID’ -H 'Auth-SystemKey: SYSTEMKEY’ -H 'Auth-ApiKey: APIKEY’ --data '{"TestValue":"1","TestLabel":"Test"}' https://wstest.factorcloud.com/api_factor/test-post/
Response:
Header for newly created test post: Status Created 201
{
"TestValue":"1",
"TestLabel":"Test"
}