03.03.2022, 08:33
Use this, adjust URL (including id parameters) as needed:
Code:
http = require('socket.http')
json = require('json')
url = 'https://exampleadr.com/pms_api/:subscription_id/:account_id/rooms/:room_id'
body = json.encode({
room = {
housekeeping_status = 'inspect'
}
})
res, code = http.request({
url = url,
method = 'PUT',
body = body
})
log(res, code)