POST /api/v3/class

Create class.

Request Path

POST /api/v3/class

Request Payload

{
    "name": "my new class",
    "projectId": "PR_El-YqX0AvUr_p3TgD-wtg2",
    "blueprintId": "BPvY9ME2CJ8dg-TyTeUvcKzw2",
    "policyId": "POstwZpTbLpqpGR2yI4cbGOw2",
    "instructorVupId": "VPmIJNV_kFBDLrveM0Gmr5ug2",
    "timeZoneId": "Eastern Standard Time",
    "regionId": "REKolD1-ab84YIxODeMGob9A2",
    "startDate": "02/11/2015 12:00 AM",
    "studentPassphrase": "super secret password",
    "useCustomInvitationEmail": false,
    "customInvitationEmailSubject": null,
    "customInvitationEmailBody": null,
    "permitAccessToNonRegisteredStudent": true,
    "maxStudents": 5,
    "address": {
      "state": "Alabama",
      "address1": "3000 Foggy Woods",
      "address2": "",
      "zipCode": "002233",
      "city": "Gravity",
      "country": "United States"
    },
    "customFieldsValues": [{
      "id": "TFTQBKbIH5V2br3eiEdxW9-g2",
      "order": 1,
      "name": "clientId",
      "type": 0,
      "isRequired": false,
      "regex": {},
      "defaultValue": null,
      "value": "1234"
    }]
}

Parameters

Name New class name
PolicyId The policy id class will be created with (Can be taken from here)
BlueprintId The blueprint id environments within this class will be created with (Can be taken from here)
ProjectId The project id the class will be created into (Can be taken from here)
InstructorVupId The instructor’s vendor user project id (Can be taken from here)
RegionId The Region the Class is to be created in. A list of available Regions can be obtained from here.
StartDate The date and time which class will start in
TimeZoneId The id of the timezone “startDate” belongs to (Can be taken from here)
StudentPassphrase The pass-phrase students will have to enter before attending class
UseCustomInvitationEmail Does invitations will be user configured
CustomInvitationEmailSubject Invitation’s email subject line when using custom invitation email
CustomInvitationEmailBody Invitation’s email body when using custom invitation email
PermitAccessToNonRegisteredStudent Don’t force users to register before participating class
MaxStudents Maximum number of students allowed to participate in class (can be null)
Address The location of the class (can be null). Countries can be taken from here
CustomFieldsValues List of all custom fields defined on project, where “value” fields represents the input for each custom field (this parameter is mandatory only for projects that force validation of it). Custom fields structure can be taken from here

Response example

{
  "id":"CO5aHfpPUDIoqhFQuZi6ZpOA2"
}