Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
api:api_courses [2020/01/30 14:01] Lauri Elevantapi:api_courses [2020/05/11 16:29] Lauri Elevant
Line 115: Line 115:
     }     }
   }   }
 +
 +===== POST =====
 +
 +Create a new blank course. This is useful when you want to automatically import a list of courses from another system into DreamApply. Please note however, that the needed fields for fully configuring an applicable course in DreamApply is quite long, including various settings for admission requirements, intakes, motivation letters, fees and so on. This data is typically not available in other systems, like Student Information Systems, at least not in the required depth. It is therefore recommended to use this API call to import a "basic list" of courses that will be then fine-tuned and fully configured using the dedicated GUI tools in DreamApply built for managing this data effectively.
 +
 +The URI for the new course that was created is returned in the ''Location'' header.
 +
 +==== Syntax ====
 +
 +  POST /api/applicants
 +  Host: apply.example.edu
 +  Authorization: DREAM apikey="..."
 +  
 +==== Parameters ====
 +
 +^ Name ^  ^ Description ^
 +| ''institution'' | **Required** | A valid institution ID in DreamApply (see the ''/api/institutions'' calls to learn it). |
 +| ''type'' | **Required** | Course type code (undergraduate, postgraduate, etc). Make a call to [[api:api_classificators|/api/classificators]] or use DreamApply GUI tools (System -> Classificators) to learn possible ''Course type'' classificator values.  |
 +| ''name'' | Up to 2048 characters. |
 +| ''awards_abbr'' | Abbreviation of the award (BSc, MSc, etc). |
 +| ''awards_full'' | Full name of the award (for example "Bachelor of Science"). Up to 2048 characters. |
 +| ''mode'' | Course mode code (full time, part time, etc). Make a call to [[api:api_classificators|/api/classificators]] or use DreamApply GUI tools (System -> Classificators) to learn possible ''Course mode'' classificator values.  | |
 +| ''language'' | Accepts a 2-letter (alpha-2) ISO language code. |
 +| ''country'' | Accepts an [[http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2|ISO 3166-1 alpha-2 country code]]. |
 +| ''location'' | The location where the studies take place (city, district, etc). Up to 256 characters. |
 +| ''code'' | Can be any text to uniquely identify this course in another system, like a Study Information System or course catalogue. Up to 128 characters. |
 +| ''prospect_uri'' | An URL where the applicant can learn more about this course/programme. |
 +
 +==== Response headers ====
 +
 +  Content-Type: application/json
 +  Content-Length: 0
 +  Location: /api/applicants/12345
 +
 +==== Response codes ====
 +
 +| ''201 Created'' | New course was created |