Create an address

Creates an address in the active school and optionally attaches it to students, parents, relatives, emergency contacts, or staff members.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Request

This endpoint expects an object.
componentslist of anyRequired

Address-provider components.

formattedstringRequired<=255 characters
latitudedoubleRequired-90-90
longitudedoubleRequired-180-180
tagstring or nullOptional<=255 characters
students_idlist of integers or nullOptional
parents_idlist of integers or nullOptional
relatives_idlist of integers or nullOptional
emergency_contacts_idlist of integers or nullOptional
staff_members_idlist of integers or nullOptional

Response

Address created.
statusstring
messagestring
dataobject

Errors

401
Unauthorized Error
422
Unprocessable Entity Error