Creates a new record for the specified table. Note that many of these require a valid index to other tables as follows. idImage and idVideo are optional. *Secret Hmac Required. Cache Time 1 Hour unless updated.
Type- NoneClass- idTypeMfg- idImage* idVideo*Item- idClass, idMfg, idImage*, idVideo*Task- idClass, idMaintItem, idProcessList, idProcImgList, idImage*, idVideo*Process- idProcessListProcImg- idProcess, idImage*, idVideo*Remind- idMaintTask, idImage*Supply- idMaintTask, idImage*Tool- idMaintTask, idImage*Setting- idMaintTask
Path parameters
-
Name of the case insensitive database table. Available table names for the Maintenance database are shown below
Values are
Item,Class,Mfg,Type,Task,Process,ProcImg,Remind,Supply,Tool, orSetting.
POST
/DB/Maint/{table}
curl \
--request POST 'https://api.wrtm.io/v1.0/DB/Maint/item' \
--header "X-ApiKey: $API_KEY" \
--header "X-ApiDate: $API_KEY" \
--header "X-ApiHmac: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"name":"John Doe","email":"john@example.com"}'
Request example
{
"name": "John Doe",
"email": "john@example.com"
}
Response examples (201)
{
"Data": [
{
"id": 10,
"name": "John Doe",
"email": "john@example.com"
}
],
"Total": 1
}