Skip to main content
POST
Record a batch of gate attendance events (limited pilot)
This endpoint is part of the approved attendance pilot and requires the same scope and site-access relationship as recording a single event. Send a JSON object with an events array of 1 to 100 single-event payloads. The API validates the entire body before processing any event. It processes valid payloads in array order and commits each event independently. Place sign-ons before the sign-offs that reference them. The response contains a data array in the same order. Every item includes sourceEventId and the HTTP status the event would receive on the single endpoint. Successful items include the event in data. Rejected items include code and message. The endpoint returns HTTP 200 when every item is accepted and HTTP 207 when any item is rejected. A malformed body returns HTTP 400 before processing starts. After a timeout or server error, replay the original IDs and unchanged payloads in their original order. Some events may already have committed. Replay a pending sign-off after sending its sign-on to get its latest status. Resolve conflicts before replaying and keep the original IDs for events already recorded.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Scopes

write:sign_on_events

Record worker sign-on and sign-off events (explicitly approved pilot)

Headers

X-BuildPass-Api-Version
enum<string>
default:v1
required

What API version to use.

Available options:
v1
Example:

"v1"

X-BuildPass-Region-Id
enum<string>
default:au1

Builder database region; defaults to au1.

Available options:
au1,
us1

Path Parameters

builderId
string
required

The ID of the builder

Example:

"buil_clgbsb90b001qjy0f0eo1hspp"

projectId
string
required

The ID of the project

Example:

"proj_clgbsb90b001qjy0f0eo1hspp"

Body

application/json
events
object[]
required
Required array length: 1 - 100 elements

Response

All events accepted, including duplicates and pending sign-offs.

data
object[]
required