drs_operations.post_program
POST
/programs
const url = 'https://raw.githubusercontent.com/ga4gh/drs/v1/programs';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"id":"example","drsobjects":["example"],"statistics":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://raw.githubusercontent.com/ga4gh/drs/v1/programs \ --header 'Content-Type: application/json' \ --data '{ "id": "example", "drsobjects": [ "example" ], "statistics": {} }'Create a program
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ” Media type application/json
object
id
Name of program
string
drsobjects
Array<string>
statistics
object
Example generated
{ "id": "example", "drsobjects": [ "example" ], "statistics": {}}Responses
Section titled “ Responses ”The Program was created successfully
Media type application/json
object
Example generated
{}