Update Lockout

Allows updating Lockout and printing Lockout Tag. Printing Lockout Tag requires, that you have a printer setup in your Business Central. Set "printTag" to "true" to trigger printing. After printing the value of "printTag" is by default set to "false".

Uri

PATCH api/dynaway/eam/v1.0/companies({{Company_ID)/lockouts({{Lockout_ID}})

Parameters

Company_ID
- ID of the Company.
Lockout_ID
- ID of the Lockout.

Form Data

{
    "description": "Lockout for MC00001",
    "plannedStartDate": "2023-02-02T07:25:00Z",
    "plannedEndDate": "2023-02-04T09:25:00Z",
    "assignedTo": "JOHN.SMITH",
    "remarks": "Bring power supply lock",
    "status": "PendingLockout",
    "printTag": true
}

JSON Response

{
    "id": "df8682ec-bfa3-ed11-b6c3-b43d470d2e3a",
    "number": "L00017",
    "description": "Lockout for MC00001",
    "plannedStartDate": "2023-02-02T07:25:00Z",
    "plannedEndDate": "2023-02-04T09:25:00Z",
    "assignedTo": "JOHN.SMITH",
    "authenticationEmail": "john.smith@abcdefgcorp.com",
    "remarks": "Bring power supply lock",
    "workOrderNo": "WO00058",
    "status": "Pending Lockout",
    "actualStartDate": "0001-01-01T00:00:00Z",
    "actualEndDate": "0001-01-01T00:00:00Z",
    "printTag": false
}

Copyright Dynaway A/S

Privacy Policy