Properties
Authorization: Bearer {AuthorizationToken}
1000150GET /properties/groups HTTP/1.1
Host: api3.riskbase.uk
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"total": 50,
"propertyGroups": [
{
"id": "cksq39rnv02vf0ns0t3o834uv",
"name": "London South",
"reference": "RB-Z0LMKJ",
"customReference": null
}
]
}Authorization: Bearer {AuthorizationToken}
10001Comma separated property IDs
cksq4ybpq104zwgwh2gd1vvhaComma separated property custom references
CustomReference1,CustomReference29250GET /properties HTTP/1.1
Host: api3.riskbase.uk
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"total": 9250,
"properties": [
{
"id": "cksq4ybpq104zwgwh2gd1vvha",
"name": "Demo Property",
"reference": "RB-ABC123",
"customReference": "MyUprn0001",
"photoId": "cksq3jhl500ga0ls0oiibt7q2,",
"address": {
"line1": "33 Magnolia Avenue",
"line2": "",
"city": "London",
"county": "",
"postcode": "SW10 2BT"
}
}
]
}Triggers the
propertywebhook.
Authorization: Bearer {AuthorizationToken}
Parent property or property group ID. If null is provided, the property will be created in a property group called "Created by API"
falseyok0w80s0sckwwgo0c8sko4oPOST /properties HTTP/1.1
Host: api3.riskbase.uk
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 158
{
"parent": "u400ko8sk848gc40kss400sg",
"name": "Building 1",
"customReference": "B000001",
"address": {
"line1": "101 Wood Lane",
"city": "London",
"postcode": "W12 7FA"
}
}{
"id": "yok0w80s0sckwwgo0c8sko4o"
}Authorization: Bearer {AuthorizationToken}
GET /properties/tree HTTP/1.1
Host: api3.riskbase.uk
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"tree": {
"tree": [
{
"id": "cl8br0oe40001kkwhdglcu74r",
"name": "Fox Residential",
"type": "Organisation",
"children": [
{
"id": "cl8br1p900001mgwhcpbhopcp",
"name": "Manchester",
"type": "Property Group",
"children": [
{
"id": "cl8br4pnc0001opwhfidszqwt",
"name": "Blonde Retreat",
"type": "Property",
"children": []
},
{
"id": "cl8br4pph0003opwhouu2j0ew",
"name": "The Blade Building",
"type": "Property",
"children": []
}
]
}
]
}
]
}
}Update a property's name and address.
Triggers the
propertywebhook.
Authorization: Bearer {AuthorizationToken}
falsePATCH /properties/{propertyId} HTTP/1.1
Host: api3.riskbase.uk
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 158
{
"parent": "u400ko8sk848gc40kss400sg",
"name": "Building 1",
"customReference": "B000001",
"address": {
"line1": "101 Wood Lane",
"city": "London",
"postcode": "W12 7FA"
}
}Move a property to a different position in the property tree; either below a property group or another property.
Triggers the
propertywebhook.
Authorization: Bearer {AuthorizationToken}
Parent property or property group ID
falsePATCH /properties/{propertyId}/parent HTTP/1.1
Host: api3.riskbase.uk
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"parent": "u400ko8sk848gc40kss400sg"
}Get a list of users responsible for teams for all properties in your organisation.
Responsible users are auto-assigned to tasks that are assigned to their team.
Users are automatically given access to properties they are responsible for.
Authorization: Bearer {AuthorizationToken}
Comma separated property IDs
cksq4ybpq104zwgwh2gd1vvhaComma separated user IDs
cksq4xkxh012173wh9agrq0izResponsibility is inherited down the property tree. By default this endpoint will list responsbility which has been set explicitly. Set this to true to include inherited responsibility.
falseExample: trueGET /properties/teamusers HTTP/1.1
Host: api3.riskbase.uk
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"properties": {
"cksq4ofmx07arhowhtzzdqwxa": {
"cksq5ee6p07fxedwh1pfowuxc": [
"cksq4xga4078iwgwhn6dwvm2q"
],
"cksq5ee5j0776edwhh347ruab": [
"cksq4y6f700iswjwhhwdsb9mo",
"cksq4xga4078iwgwhn6dwvm2q",
"cksq5ev5f00ylw9whbmkwku7z"
]
},
"cksq4p0aa070mhowhbw5gomri": {
"cksq5ee6p07fxedwh1pfowuxc": [
"cksq4xga4078iwgwhn6dwvm2q"
]
}
}
}Set which users are responsible for teams at this property.
Users are added as members of the team if they aren't already. Triggers the team webhook if users are added to the team.
Invalid user IDs are silently ignored.
Authorization: Bearer {AuthorizationToken}
falsePATCH /properties/{propertyId}/teamusers/add HTTP/1.1
Host: api3.riskbase.uk
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"team": "cksq5ee6607bwedwhkb6ra827",
"users": [
"cksq50h7g0638hywhasfzw7cd"
]
}Remove users as responsible for teams at this property.
Users are unassigned from any tasks they were auto-assigned to.
Invalid user IDs are silently ignored.
Users are not removed as members of the team.
Authorization: Bearer {AuthorizationToken}
PATCH /properties/{propertyId}/teamusers/remove HTTP/1.1
Host: api3.riskbase.uk
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"team": "cksq5ee6607bwedwhkb6ra827",
"users": [
"cksq50h7g0638hywhasfzw7cd"
]
}Last updated
Was this helpful?