Add authorization information for a new program (or overwrite authorization information for an existing program).
POST
/program
const url = 'https://example.com/program';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"program_id":"example","program_curators":["example"],"team_members":["example"],"creation_date":"example"}'};
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://example.com/program \ --header 'Content-Type: application/json' \ --data '{ "program_id": "example", "program_curators": [ "example" ], "team_members": [ "example" ], "creation_date": "example" }'Add authorization information for a new program (or overwrite authorization information for an existing program). Information in the request body replaces any existing information for the program.
Request Body
Section titled “Request Body ” Media type application/json
Describes a program
object
program_id
required
Name of the program
string
program_curators
required
List of users who are program curators for this program
Array<string>
team_members
required
List of users who are original researchers for this program
Array<string>
creation_date
Date program was created, for embargo purposes. This may or may not be the date of ingest.
string
Example generated
{ "program_id": "example", "program_curators": [ "example" ], "team_members": [ "example" ], "creation_date": "example"}Responses
Section titled “ Responses ”Success
Media type application/json
Describes a program
object
program_id
required
Name of the program
string
program_curators
required
List of users who are program curators for this program
Array<string>
team_members
required
List of users who are original researchers for this program
Array<string>
creation_date
Date program was created, for embargo purposes. This may or may not be the date of ingest.
string
Example generated
{ "program_id": "example", "program_curators": [ "example" ], "team_members": [ "example" ], "creation_date": "example"}