Mercurial > hg > orthanc
comparison Resources/Samples/Lua/OnStableStudy.lua @ 1458:1d109322f5d3
comment
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 02 Jul 2015 15:45:55 +0200 |
parents | 6a9daad345c1 |
children | 38c7bf2e10f6 |
comparison
equal
deleted
inserted
replaced
1457:6a9daad345c1 | 1458:1d109322f5d3 |
---|---|
36 -- The modification command | 36 -- The modification command |
37 local command = {} | 37 local command = {} |
38 command['Remove'] = remove | 38 command['Remove'] = remove |
39 command['Replace'] = replace | 39 command['Replace'] = replace |
40 | 40 |
41 -- Modify the instance, send it, then delete the modified instance | 41 -- Modify the entire study in one single call |
42 local m = RestApiPost('/studies/' .. studyId .. '/modify', | 42 local m = RestApiPost('/studies/' .. studyId .. '/modify', |
43 DumpJson(command)) | 43 DumpJson(command)) |
44 print('Modified study: ' .. m) | 44 print('Modified study: ' .. m) |
45 end | 45 end |
46 end | 46 end |