Skip to content

Instantly share code, notes, and snippets.

@danlopez
Last active March 14, 2016 14:58
Show Gist options
  • Save danlopez/ddb2a157edec11bcf74e to your computer and use it in GitHub Desktop.
Save danlopez/ddb2a157edec11bcf74e to your computer and use it in GitHub Desktop.
/*
POST /organizations/<subOrgId>/sections
*/
// Headers
Authentication: Bearer <accessToken> // Required for all OAuth Requests
// Request Params
{
"name": "0517", // String
"bundles": [{"id": 1}, {"id": 2}], // Array of objects. Bundle IDs will be provided.
"status": "PUBLISHED", // DRAFT | PUBLISHED | ARCHIVED
"isExerciseDiscussionBoardDisabled": true, // Disable Discussion Board?
"isExerciseLeaderboardDisabled": true, // Hide the leaderboard for exercise
"arePeerAssessorsDisclosed": false //Should Peer Assessment be known?
}
// Response
{
"id": 1234, // Numeric
"organization": {
"id": 123,
},
"name": "0517",
"bundles": [
{
"id": 1
}
],
"creator": {
"id": 1
},
"status": "PUBLISHED",
"isExerciseDiscussionBoardDisabled": true,
"isExerciseLeaderboardDisabled": true,
"arePeerAssessorsDisclosed": false,
"description": "A Description",
"exercises": [ // an array of sectionExercises
{
"id": 123,
"exercise": { // Exercise the SectionExercise is using
"id": 1234,
"name": "Nursing Concepts",
...
}
"scheduleMoments": [] // Empty when unscheduled
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment