POST /DB/Maint/{table}

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 - None
  • Class - idType
  • Mfg - idImage* idVideo*
  • Item - idClass, idMfg, idImage*, idVideo*
  • Task - idClass, idMaintItem, idProcessList, idProcImgList, idImage*, idVideo*
  • Process - idProcessList
  • ProcImg - idProcess, idImage*, idVideo*
  • Remind - idMaintTask, idImage*
  • Supply - idMaintTask, idImage*
  • Tool - idMaintTask, idImage*
  • Setting - idMaintTask

Path parameters

  • table string Required

    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, or Setting.

application/json

Body

object object

Responses

  • 201 application/json

    Successfully created

    Hide response attributes Show response attributes object
    • Data array[object]
    • Total integer
  • 400

    Invalid information provided

  • 405

    Invalid Table Specified

POST /DB/Maint/{table}
curl \
 --request POST 'https://api.wereadthemanual.com/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
}