curl --request GET \
--url https://ss12000.staging.meitner.se/api/v1/placements/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://ss12000.staging.meitner.se/api/v1/placements/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ss12000.staging.meitner.se/api/v1/placements/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ss12000.staging.meitner.se/api/v1/placements/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ss12000.staging.meitner.se/api/v1/placements/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://ss12000.staging.meitner.se/api/v1/placements/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ss12000.staging.meitner.se/api/v1/placements/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"meta": {
"created": "2000-01-23T04:56:07.000Z",
"modified": "2000-01-23T04:56:07.000Z"
},
"placedAt": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayName": "<string>"
},
"child": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayName": "<string>"
},
"startDate": "2023-12-25",
"group": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayName": "<string>"
},
"owners": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayName": "<string>"
}
],
"endDate": "2023-12-25",
"maxWeeklyScheduleHours": 123,
"_embedded": {
"child": {
"personStatus": "Aktiv",
"addresses": [
{
"country": "country",
"countyCode": 0,
"streetAddress": "streetAddress",
"postalCode": "postalCode",
"locality": "locality",
"type": "Folkbokföring",
"municipalityCode": 6,
"realEstateDesignation": "realEstateDesignation"
},
{
"country": "country",
"countyCode": 0,
"streetAddress": "streetAddress",
"postalCode": "postalCode",
"locality": "locality",
"type": "Folkbokföring",
"municipalityCode": 6,
"realEstateDesignation": "realEstateDesignation"
}
],
"securityMarking": "Ingen",
"givenName": "givenName",
"sex": "Man",
"photo": "https://openapi-generator.tech",
"birthDate": "2000-01-23T00:00:00.000Z",
"civicNo": {
"nationality": "SE",
"value": "value"
},
"phoneNumbers": [
{
"mobile": true,
"type": "Hem",
"value": "value"
},
{
"mobile": true,
"type": "Hem",
"value": "value"
}
],
"externalIdentifiers": [
{
"globallyUnique": true,
"context": "http://linkoping.se/AD",
"value": "value"
},
{
"globallyUnique": true,
"context": "http://linkoping.se/AD",
"value": "value"
}
],
"emails": [
{
"type": "Privat",
"value": "value"
},
{
"type": "Privat",
"value": "value"
}
],
"eduPersonPrincipalNames": [
"eduPersonPrincipalNames",
"eduPersonPrincipalNames"
],
"meta": {
"created": "2000-01-23T04:56:07.000Z",
"modified": "2000-01-23T04:56:07.000Z"
},
"familyName": "familyName",
"middleName": "middleName",
"enrolments": [
{
"endDate": "2000-01-23T00:00:00.000Z",
"schoolType": null,
"schoolYear": 1,
"cancelled": true,
"specification": "specification",
"enroledAt": null,
"educationCode": "educationCode",
"programme": null,
"startDate": "2000-01-23T00:00:00.000Z"
},
{
"endDate": "2000-01-23T00:00:00.000Z",
"schoolType": null,
"schoolYear": 1,
"cancelled": true,
"specification": "specification",
"enroledAt": null,
"educationCode": "educationCode",
"programme": null,
"startDate": "2000-01-23T00:00:00.000Z"
}
],
"responsibles": [
{
"relationType": null,
"person": null
},
{
"relationType": null,
"person": null
}
],
"id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
"owners": [
{
"personStatus": "Aktiv",
"addresses": [
{
"country": "country",
"countyCode": 0,
"streetAddress": "streetAddress",
"postalCode": "postalCode",
"locality": "locality",
"type": "Folkbokföring",
"municipalityCode": 6,
"realEstateDesignation": "realEstateDesignation"
},
{
"country": "country",
"countyCode": 0,
"streetAddress": "streetAddress",
"postalCode": "postalCode",
"locality": "locality",
"type": "Folkbokföring",
"municipalityCode": 6,
"realEstateDesignation": "realEstateDesignation"
}
],
"securityMarking": "Ingen",
"givenName": "givenName",
"sex": "Man",
"photo": "https://openapi-generator.tech",
"birthDate": "2000-01-23T00:00:00.000Z",
"civicNo": {
"nationality": "SE",
"value": "value"
},
"phoneNumbers": [
{
"mobile": true,
"type": "Hem",
"value": "value"
},
{
"mobile": true,
"type": "Hem",
"value": "value"
}
],
"externalIdentifiers": [
{
"globallyUnique": true,
"context": "http://linkoping.se/AD",
"value": "value"
},
{
"globallyUnique": true,
"context": "http://linkoping.se/AD",
"value": "value"
}
],
"emails": [
{
"type": "Privat",
"value": "value"
},
{
"type": "Privat",
"value": "value"
}
],
"eduPersonPrincipalNames": [
"eduPersonPrincipalNames",
"eduPersonPrincipalNames"
],
"meta": {
"created": "2000-01-23T04:56:07.000Z",
"modified": "2000-01-23T04:56:07.000Z"
},
"familyName": "familyName",
"middleName": "middleName",
"enrolments": [
{
"endDate": "2000-01-23T00:00:00.000Z",
"schoolType": null,
"schoolYear": 1,
"cancelled": true,
"specification": "specification",
"enroledAt": null,
"educationCode": "educationCode",
"programme": null,
"startDate": "2000-01-23T00:00:00.000Z"
},
{
"endDate": "2000-01-23T00:00:00.000Z",
"schoolType": null,
"schoolYear": 1,
"cancelled": true,
"specification": "specification",
"enroledAt": null,
"educationCode": "educationCode",
"programme": null,
"startDate": "2000-01-23T00:00:00.000Z"
}
],
"responsibles": [
{
"relationType": null,
"person": null
},
{
"relationType": null,
"person": null
}
],
"id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
}
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}Placering baserat på id
curl --request GET \
--url https://ss12000.staging.meitner.se/api/v1/placements/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://ss12000.staging.meitner.se/api/v1/placements/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ss12000.staging.meitner.se/api/v1/placements/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ss12000.staging.meitner.se/api/v1/placements/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ss12000.staging.meitner.se/api/v1/placements/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://ss12000.staging.meitner.se/api/v1/placements/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ss12000.staging.meitner.se/api/v1/placements/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"meta": {
"created": "2000-01-23T04:56:07.000Z",
"modified": "2000-01-23T04:56:07.000Z"
},
"placedAt": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayName": "<string>"
},
"child": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayName": "<string>"
},
"startDate": "2023-12-25",
"group": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayName": "<string>"
},
"owners": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayName": "<string>"
}
],
"endDate": "2023-12-25",
"maxWeeklyScheduleHours": 123,
"_embedded": {
"child": {
"personStatus": "Aktiv",
"addresses": [
{
"country": "country",
"countyCode": 0,
"streetAddress": "streetAddress",
"postalCode": "postalCode",
"locality": "locality",
"type": "Folkbokföring",
"municipalityCode": 6,
"realEstateDesignation": "realEstateDesignation"
},
{
"country": "country",
"countyCode": 0,
"streetAddress": "streetAddress",
"postalCode": "postalCode",
"locality": "locality",
"type": "Folkbokföring",
"municipalityCode": 6,
"realEstateDesignation": "realEstateDesignation"
}
],
"securityMarking": "Ingen",
"givenName": "givenName",
"sex": "Man",
"photo": "https://openapi-generator.tech",
"birthDate": "2000-01-23T00:00:00.000Z",
"civicNo": {
"nationality": "SE",
"value": "value"
},
"phoneNumbers": [
{
"mobile": true,
"type": "Hem",
"value": "value"
},
{
"mobile": true,
"type": "Hem",
"value": "value"
}
],
"externalIdentifiers": [
{
"globallyUnique": true,
"context": "http://linkoping.se/AD",
"value": "value"
},
{
"globallyUnique": true,
"context": "http://linkoping.se/AD",
"value": "value"
}
],
"emails": [
{
"type": "Privat",
"value": "value"
},
{
"type": "Privat",
"value": "value"
}
],
"eduPersonPrincipalNames": [
"eduPersonPrincipalNames",
"eduPersonPrincipalNames"
],
"meta": {
"created": "2000-01-23T04:56:07.000Z",
"modified": "2000-01-23T04:56:07.000Z"
},
"familyName": "familyName",
"middleName": "middleName",
"enrolments": [
{
"endDate": "2000-01-23T00:00:00.000Z",
"schoolType": null,
"schoolYear": 1,
"cancelled": true,
"specification": "specification",
"enroledAt": null,
"educationCode": "educationCode",
"programme": null,
"startDate": "2000-01-23T00:00:00.000Z"
},
{
"endDate": "2000-01-23T00:00:00.000Z",
"schoolType": null,
"schoolYear": 1,
"cancelled": true,
"specification": "specification",
"enroledAt": null,
"educationCode": "educationCode",
"programme": null,
"startDate": "2000-01-23T00:00:00.000Z"
}
],
"responsibles": [
{
"relationType": null,
"person": null
},
{
"relationType": null,
"person": null
}
],
"id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
},
"owners": [
{
"personStatus": "Aktiv",
"addresses": [
{
"country": "country",
"countyCode": 0,
"streetAddress": "streetAddress",
"postalCode": "postalCode",
"locality": "locality",
"type": "Folkbokföring",
"municipalityCode": 6,
"realEstateDesignation": "realEstateDesignation"
},
{
"country": "country",
"countyCode": 0,
"streetAddress": "streetAddress",
"postalCode": "postalCode",
"locality": "locality",
"type": "Folkbokföring",
"municipalityCode": 6,
"realEstateDesignation": "realEstateDesignation"
}
],
"securityMarking": "Ingen",
"givenName": "givenName",
"sex": "Man",
"photo": "https://openapi-generator.tech",
"birthDate": "2000-01-23T00:00:00.000Z",
"civicNo": {
"nationality": "SE",
"value": "value"
},
"phoneNumbers": [
{
"mobile": true,
"type": "Hem",
"value": "value"
},
{
"mobile": true,
"type": "Hem",
"value": "value"
}
],
"externalIdentifiers": [
{
"globallyUnique": true,
"context": "http://linkoping.se/AD",
"value": "value"
},
{
"globallyUnique": true,
"context": "http://linkoping.se/AD",
"value": "value"
}
],
"emails": [
{
"type": "Privat",
"value": "value"
},
{
"type": "Privat",
"value": "value"
}
],
"eduPersonPrincipalNames": [
"eduPersonPrincipalNames",
"eduPersonPrincipalNames"
],
"meta": {
"created": "2000-01-23T04:56:07.000Z",
"modified": "2000-01-23T04:56:07.000Z"
},
"familyName": "familyName",
"middleName": "middleName",
"enrolments": [
{
"endDate": "2000-01-23T00:00:00.000Z",
"schoolType": null,
"schoolYear": 1,
"cancelled": true,
"specification": "specification",
"enroledAt": null,
"educationCode": "educationCode",
"programme": null,
"startDate": "2000-01-23T00:00:00.000Z"
},
{
"endDate": "2000-01-23T00:00:00.000Z",
"schoolType": null,
"schoolYear": 1,
"cancelled": true,
"specification": "specification",
"enroledAt": null,
"educationCode": "educationCode",
"programme": null,
"startDate": "2000-01-23T00:00:00.000Z"
}
],
"responsibles": [
{
"relationType": null,
"person": null
},
{
"relationType": null,
"person": null
}
],
"id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
]
}
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID för placering som ska hämtas
Query Parameters
Beskriver om expanderade data ska hämtas
child, owners Returnera displayName för alla refererade objekt.
Response
Anropet lyckades.
Show child attributes
Show child attributes
{
"created": "2000-01-23T04:56:07.000Z",
"modified": "2000-01-23T04:56:07.000Z"
}
Skolenhet där barnet är placerat.
Show child attributes
Show child attributes
Identifierare av person som placeringen avser.
Show child attributes
Show child attributes
Skolform för placeringen, förskola eller fritidshem
FS, FTH, OPPFTH Startdatum för placeringen (RFC 3339-format, t.ex. "2016-10-15"). Inkluderande.
Barngrupp eller avdelning knutet till denna placering.
Show child attributes
Show child attributes
En lista med identifierare för de personer som äger placeringen. Används primärt för att styra vilka som skall kunna se och lägga schema.
Show child attributes
Show child attributes
Slutdatum för placeringen (RFC 3339-format, t.ex. "2016-10-15"). Inkluderande.
En kod för att beskriva orsak för placeringen.
Omsorgsbehov, Erbjuden tid, Eget behov Anger maximal schematid per vecka för barnets placering.
Show child attributes
Show child attributes