Set Study Reload programmatically

LabKey Support Forum (Inactive)
Set Study Reload programmatically jeckels  2017-10-16 17:49
Status: Closed
 
Hello,

Yes, this is possible, though we don't have a formal API for it.

You're getting that error due to our cross-site request forgery protection:

https://www.labkey.org/Documentation/wiki-page.view?name=csrfProtection

You will need to make two separate requests, one to authenticate and get the CSRF token, and another to make the actual reload request. This thread discusses one way to do it:

https://www.labkey.org/home/Support/Developer%20Forum/announcements-thread.view?rowId=11385

Thanks,
Josh