GET_swordfish_lock_db_{timestamp}

GET /swordfish/lock/db/{timestamp}

Gets the database – including commanded configurations - for a device. Zero (0) means EVERY record, otherwise we use the last program date timestamp of the device. If there is not a last program timestamp we revert to EVERY record.

Authentication

Authentication as defined in the Device (210 Mode) and MT20W Authentication section.

URI Parameters

  • timestamp: required (string)

Request

Response

  • HTTP status code 200
    • OK - Database retrieved successfully
  • Body
    • Type: application/json
  • Example:

    { db: { usrRcrd: { deleteAll: 1 delete: null update: [0] add: [0] } schedules: 
    [2] 0: { days: [7] 0: "Su" 1: "Mo" 2: "Tu" 3: "We" 4: "Th" 5: "Fr" 6: "Sa" strtHr: 
    0 strtMn: 0 lngth: 1439 } 1: { days: [1] 0: "Mo" -
    strtHr: 0 strtMn: 0 lngth: 1440 } holidays: [0] autoUnlock: [1] 0: { action:
    "sec" strtHr: 0 strtMn: 0 days: [1] 0: "Mo" } } config: { model: "" relock:
    3 doorProp: 20 ada: 30 firstManIn: 0 dstEnable: 0 dstStart: null dstEnd:
    null battFail: "asIs" bprEn: "T" rtcTime: "20140718142516" } dbDwnLdTm:
    "20140719085516" nxtDbVerTS: "0x8d1707d1ebcb056" }
    
  • HTTP status code 401

    • Unauthorized Credentials were not provided or are invalid
  • HTTP status code 404
    • Not found Lock not found