Skip to main content
POST
Sign a person in to site

Authorizations

X-Session-Token
string
header
required

Session token for authentication.

Query Parameters

organisation_id
string<uuid>
required

The organisation you are acting for. It must be one you are a member of. A person in more than one organisation takes the role of the one named here, so a member of both a scheme's owner and its Principal Contractor is the Client when acting for the owner and the Principal Contractor when acting for the contractor. Naming an organisation you are not a member of is answered as not found.

Body

application/vnd.api+json

Sign a person in. recorded_by and recorder are derived from the authenticated principal and its party, and are not accepted here; neither is signed_out_at, which is set by signing out. The organisation is the scheme owner, read from the scheme.

data
object
required

Response

A site attendance.

JSON API response object

data
object
required

One person's presence on site, from sign-in to sign-out

jsonapi
object
required
included
object[]

Related resources that can be included when a site attendance is returned

A scheme