Post entity data in JSON format
Posts entity 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=property
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_TYPE": " Aircraft ", "ASSET_ID": "810vBEDFORD ", "NEXT_PM": "2016-08-16 00:00:00", "MF_DATE": "2015-05-01 00:00:00", "LOCATION": "BEDFORD", "MF": "IBM-US", "WELL_MAINTAIN": 10, "MACHINE_LEVEL": 1 } ]- 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=property
- 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)