Post event data in JSON format
Posts event data in JSON format.
- URL
/ibm/pm/service/apiWrapper?apiName=json
- Method
- The request type POST
- URL parameters
Required
apiName="json"
Username=IBM_ID
type=data
Optional
None
- Headers for IBM ID authorization
Content-Type: application/json
Authorization: Basic authorization_string. Optional. Use IBMid credentials when an API key is not available.
- Headers for API key authorization
Content-Type: application/json
APIKEY: API_Key
- Sample body
[ { "ASSET_ID": "810vBEDFORD ", "Timestamp": "2016-11-18 00:00:00", "IS_FAIL":"TRUE", "IS_MAINTENANCE": "FALSE", "IS_REP_REPLACE": "TRUE", "Speed": 15.383333, "Win_Angle": 180.665922, "Wind_Grade": "Soft", "Power_Grade": "Large" } ]- Success response
Code
200 OK
Content
{}
- Error response
Code
403
Content
The server encountered an internal error and was unable to complete your request. Please contact system administrator.
- Sample call
- https://server_url/ibm/pm/service/apiWrapper?apiName=json&Username=user_name&type=data
- Notes
- This REST API call supports both user API key and IBM ID for authentication. To generate the authorization_string for an IBM ID, base64 encode the user name and password separated by a colon, for example: Authorization: Basic base64_encode(IBM_ID ':' IBM_ID_password)