• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • REST API - creation/deletion of forms

    Hi,

    I am processing legacy data to be ingested into open specimen. Currently, the time to create a Collection Protocol w/ all necessary forms takes me lots of time. To speed up things, I’d love to use rest API to speed up my feedback time. here are my questions:

    -I have OS 2.2

    -I want to delete a collection protocol without deleting participants first. I tried ‘delete’ via REST API (in python via ‘requests’ module),
    gives Error 400 message which isn’t on the list of error codes in the help doc:
    https://openspecimen.atlassian.net/wiki/display/CAT/Delete+Collection+Protocol

    The only successful HTTP request for me was ‘get’ for collection protocols.

    -I’d love to create everything in OS via REST API from JSON files – CP, events, containers,
    participants, visits, specimens (+ derivatives, aliquots), evaluate
    accuracy, delete everything, re-process JSON files, try again until everything works.

    Can you help me on my quest?

    thanks,
    rohun