This documentation is still a work in progress. Please contact Support to register for early access.
curl --location --request POST 'https://api.portierx.com/api/v1/spaces/assign' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"access_point_ids": [
"550e8400-e29b-41d4-a716-446655440001",
"550e8400-e29b-41d4-a716-446655440002",
"550e8400-e29b-41d4-a716-446655440003"
],
"space_id": "650e8400-e29b-41d4-a716-446655440004",
"occurred_at": "2025-10-03T10:30:00Z"
}'{
"msg": "Access Points successfully updated.",
"data": {
"access_points": [
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"point_name": "Main Entrance Door",
"location": "Ground floor main entrance",
"type": "door"
},
{
"id": "550e8400-e29b-41d4-a716-446655440002",
"point_name": "Emergency Exit A1",
"location": "East wing emergency exit",
"type": "door"
}
],
"space": {
"id": "650e8400-e29b-41d4-a716-446655440004",
"name": "Chemistry Laboratory",
"location": "Research Center -- 123 Science Drive, USA",
"building": "Main Research Building, 123 Science Drive"
},
"issued_by": {
"id": "user-123-456-789",
"name": "user-123-456-789"
},
"status": "assigned",
"occurred_at": "2025-10-03T10:30:00Z",
"created_at": "2025-10-03T10:30:15Z"
}
}