seqcode / pegr

Platform for Eukaryotic Genome Regulation
MIT License
3 stars 1 forks source link

API update #271

Closed WilliamKMLai closed 1 year ago

WilliamKMLai commented 1 year ago

Add: "growthMedia": "string" "treatments": "string" "assay": "string" "naturalId": "string" to the list of variables able to be edited through the API

WilliamKMLai commented 1 year ago

Move this to the top of the header and bold out the variables that are editable currently (maybe with bullet points?)

Current accepted fields include "geneticModification", "antibodyCatalog", "target" and "strain". After a request is posted, PEGR will return the status code and a message as below

WilliamKMLai commented 1 year ago

Remove requirement for 'oldValue' in the payload:

{
    // required, combined with API key to authenticate user 
    "userEmail": "xxx@psu.edu", 
    // a list of samples to update
    "sampleList":[
        {
            "sampleID": long,
            "field": "string",
            "oldValue": "string",
            "newValue": "string",
        },
        ......
    ]
}