curl --request POST \
--url https://ss12000.staging.meitner.se/api/v1/placements/lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"personIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://ss12000.staging.meitner.se/api/v1/placements/lookup"
payload = {
"ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"personIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
personIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://ss12000.staging.meitner.se/api/v1/placements/lookup', 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/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'personIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ss12000.staging.meitner.se/api/v1/placements/lookup"
payload := strings.NewReader("{\n \"ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"personIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ss12000.staging.meitner.se/api/v1/placements/lookup")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"personIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ss12000.staging.meitner.se/api/v1/placements/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"personIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
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>"
}Hämta många placeringar baserat på en lista av ID:n eller av Id från personer.
Istället för att hämta placeringar en i taget med en loop av GET-anrop så finns det även möjlighet att hämta många placeringar på en gång genom att skicka ett anrop med en lista med önskade placeringar.
curl --request POST \
--url https://ss12000.staging.meitner.se/api/v1/placements/lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"personIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://ss12000.staging.meitner.se/api/v1/placements/lookup"
payload = {
"ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"personIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
personIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://ss12000.staging.meitner.se/api/v1/placements/lookup', 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/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'personIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ss12000.staging.meitner.se/api/v1/placements/lookup"
payload := strings.NewReader("{\n \"ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"personIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ss12000.staging.meitner.se/api/v1/placements/lookup")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"personIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ss12000.staging.meitner.se/api/v1/placements/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"personIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
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.
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