{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"7dc6dacc-abd2-42ca-91fd-8ed8a511b168","name":"Utdanning I Bergen Student Organization Portal","description":"The Study in Bergen range of websites has a REST like Web API that lets student organizations programatically update information regarding their organization and events they host.\n\nAll endpoints are secured through the use of unique Bearer tokens generated for each Student Organization. A Student Organization after being created can find their token in the student organization portal and can immediately start utilizing the api.\n\nTo authenticate with the API one must supply an `Authorization` header with each request that has a value of `Bearer <YOUR TOKEN HERE>`. The token is persistent and should be considered secret. Anyone with access to this token can add, change or remove information about your student organization and/or events. Therefore it is advised to always use *HTTPS* when performing calls against this API.\n\n# Datatypes\nAll the POST or PUT endpoints are expecting a payload that is a JSON object with a single key that represents either a student organization(`stud_org`) or and event(`event`). For example, if you are posting a new event the payload should be something along the lines of \n```json\n{\n\t\"event\": {\n\t\t... event details go here\n\t}\n}\n```\n\nAll possible keys are listed below in separate tables for each datatype. One can only post or put _Writeable_ keys. Please consult the lists below for which keys are writeable or not.\n\n## Student Organization\n\nBase JSON key is `stud_org`.\n\n| Key | Type | Description | Writeable |\n| --- | ---- | ----------- | --------- |\n| id | `int` | Student organization id | `n` |\n| name | `string` | Name of the student organization | `y` |\n| image | `image` | Logo for the organization | `y` |\n| whoCanJoin | `string` | Text that is being displayed in the _who can join_ section. | `y` |\n| contactInfo | `string` | Text that is being displayed in the _contact info_ section | `y` |\n| contactInfo_en | `string` | English version of _contactInfo_ | `y` |\n| article | `string` | Text that is being displayed in the _main content area_ | `y` |\n| article_en | `string` | English version of _article_ | `y` |\n| intro | `string` | Short text that prefaces the _article_ | `y` |\n| intro_en | `string` | English version of _intro_ | `y` |\n| facebookUrl | `string` | Link to organizations _Facebook profile_ | `y` |\n| instagramUrl | `string` | Link to organizations _Instagram profile_ | `y` |\n| twitterUrl | `string` | Link to organizations _Twitter profile_ | `y` |\n| linkedinUrl | `string` | Link to organizations _LinkedIn profile_ | `y` |\n\n## Event\n\nBase JSON key is `event`.\n\n| Key | Type | Description | Writeable |\n| --- | ---- | ----------- | --------- |\n| id | `int` | Event ID | `n` |\n| name | `string` | Name of the event | `y` |\n| name_en | `string` | English name of the event | `y` |\n| published | `bool` | Event should be visible or not | `y` |\n| intro | `string` | Short intro text | `y` |\n| intro_en | `string` | English short intro text | `y` |\n| article | `string` | Main text describing the event | `y` |\n| article_en | `string` | English main text describing the event | `y` |\n| eventBy | `stud_org` | Owner of the event | `n` |\n| available_no | `bool` | Event is visible in norwegian listings | `y` |\n| available_en | `bool` | Event is visible in englsih listings | `y` |\n| startTime | `string/datetime` | Must be supplied as `YYYY-MM-DD HH:mm:ss` | `y` |\n| endTime | `string/datetime` | Must be supplied as `YYYY-MM-DD HH:mm:ss` | `y` |\n| category | `int/category` | When updated has to be the ID of the category | `y` |\n| location | `string` | Address of the event | `y` |\n| place_en | `string` | Address of the event in english | `y` |\n| form | `int` | Extended form for this event | `y` |\n| price | `string` | Price of the event | `y` |\n| price_en | `string` | Price of the event in english | `y` |\n| facebookUrl | `string` | url to facebook event | `y` |\n| instagramUrl | `string`| url to instagram | `y` |\n\n# Other\n\nIf you are using `multipart/form-data` content type in a `PUT` call to update images and/or other fields; You might have to add a `_method: PUT` header in your request for the server to accept your payload. ","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"5111196","collectionId":"7dc6dacc-abd2-42ca-91fd-8ed8a511b168","publishedId":"RztrKSav","public":true,"publicUrl":"https://documenter-api.postman.tech/view/5111196/RztrKSav","privateUrl":"https://go.postman.co/documentation/5111196-7dc6dacc-abd2-42ca-91fd-8ed8a511b168","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-double-column","version":"8.10.1","publishDate":"2019-04-12T12:19:05.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[{"name":"Netflex","id":"ce632b09-6c63-4a00-970e-8cd53e088313","owner":"5111196","values":[{"key":"PUB_KEY","value":"","description":"","type":"text","enabled":true},{"key":"PRIV_KEY","value":"","description":"","type":"text","enabled":true},{"key":"E_ID","value":"","description":"","type":"text","enabled":true}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/768118b36f06c94b0306958b980558e6915839447e859fe16906e29d683976f0","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"Netflex","value":"5111196-ce632b09-6c63-4a00-970e-8cd53e088313"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/RztrKSav"}