Locations
Type "Bearer" followed by a space and a token.
OK
Bad Request
Structured body for 4xx / 5xx responses on the new Public API surface: a machine-readable SchoolsBuddy.PublicAPI.Models.ErrorResponse.Code plus a human-readable SchoolsBuddy.PublicAPI.Models.ErrorResponse.Error. See cross-cutting-design.md §5.3. This is additive — existing endpoints continue returning their legacy plain-string / ModelState shapes until migrated by their per-controller ticket.
Gets or sets the machine-readable error code (e.g.
VALIDATION_FAILED, RESOURCE_NOT_FOUND,
INTERNAL_ERROR) per cross-cutting-design.md §5.1.
Gets or sets the human-readable error message.
Not Found
Internal Server Error
GET /api/v1/Locations HTTP/1.1
Host: publicapi-eu.schoolsbuddy.net
Authorization: YOUR_API_KEY
Accept: */*
{
"code": "text",
"error": "text"
}Type "Bearer" followed by a space and a token.
The organisation to create the location in (cross-cutting-design §3.8.1 — the
Public API's single-resource write convention). Optional for a single-organisation
client. The legacy organisationId request-body field is still honoured for
existing callers; when both are supplied they must agree.
Created
Bad Request
Structured body for 4xx / 5xx responses on the new Public API surface: a machine-readable SchoolsBuddy.PublicAPI.Models.ErrorResponse.Code plus a human-readable SchoolsBuddy.PublicAPI.Models.ErrorResponse.Error. See cross-cutting-design.md §5.3. This is additive — existing endpoints continue returning their legacy plain-string / ModelState shapes until migrated by their per-controller ticket.
Gets or sets the machine-readable error code (e.g.
VALIDATION_FAILED, RESOURCE_NOT_FOUND,
INTERNAL_ERROR) per cross-cutting-design.md §5.1.
Gets or sets the human-readable error message.
Not Found
Internal Server Error
POST /api/v1/Locations HTTP/1.1
Host: publicapi-eu.schoolsbuddy.net
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 193
{
"organisationId": 1,
"locationName": "text",
"locationDescription": "text",
"isHome": true,
"locationTypeId": 1,
"city": "text",
"state": "text",
"postCode": "text",
"telephone": "text",
"streetAddress": "text"
}{
"code": "text",
"error": "text"
}Last updated