Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
api:api_courses [2020/05/11 16:30] – [Parameters] Lauri Elevantapi:api_courses [2020/05/11 16:33] – [Parameters] Lauri Elevant
Line 133: Line 133:
 | ''institution'' | **Required** | A valid institution ID in DreamApply (see the ''/api/institutions'' calls to learn it). | | ''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.  | | ''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''Optional | Up to 2048 characters. |+| ''mode'' | **Required** | 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. 
 +| ''name''**Required** | Up to 2048 characters. |
 | ''awards_abbr'' | Optional | Abbreviation of the award (BSc, MSc, etc). | | ''awards_abbr'' | Optional | Abbreviation of the award (BSc, MSc, etc). |
 | ''awards_full'' | Optional | Full name of the award (for example "Bachelor of Science"). Up to 2048 characters. | | ''awards_full'' | Optional | Full name of the award (for example "Bachelor of Science"). Up to 2048 characters. |
-| ''mode'' | Optional | 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'' | Optional | Accepts a 2-letter (alpha-2) ISO language code. | | ''language'' | Optional | Accepts a 2-letter (alpha-2) ISO language code. |
 | ''country'' | Optional | Accepts an [[http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2|ISO 3166-1 alpha-2 country code]]. | | ''country'' | Optional | Accepts an [[http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2|ISO 3166-1 alpha-2 country code]]. |
Line 152: Line 152:
  
 | ''201 Created'' | New course was created | | ''201 Created'' | New course was created |
 +| ''422 Unprocessable Entity'' | There were some validation errors (see the returned text) |