Last active
March 14, 2016 14:58
-
-
Save danlopez/ddb2a157edec11bcf74e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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