Download OpenAPI specification:Download
Returns a list of organisations
filter | string Example: filter=name:Moreland%,createdAfter:2020-08-06 Filters to apply to records |
limit | integer [ 1 .. 1000 ] Example: limit=50 Max number of records to return |
offset | integer >= 0 Example: offset=100 Used for paging - offset from start |
include | string Example: include=PrimaryContact,Tenant Provide list of extended properties to return |
extent | Array of arrays Geojson polygon to search within |
fields | string Example: fields=name List of basic properties to return (* indicates all) |
order | string Example: order=name,-createdAt Sort order for results - hyphen prefix reverses order |
{- "Info": {
- "offset": 10,
- "limit": 50,
- "count": 67
}, - "Organisations": [
- {
- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}
]
}
Creates a new organisation
name | string |
role | string Enum: "ASSETOWNER" "DBYD" "OTHER" |
primaryContactId | integer >= 1 User id of an existing user who is the primary contact |
primaryContactEmail | string >= 3 Email address of the primary contact |
utilityId | integer >= 1 Utility Id of the member |
tenantId | integer >= 1 Tenant Id of the member |
organisationType | string Enum: "LOCAL GOVERNMENT" "GAS" "TELCO" "ELECTRIC" "WATER" "OTHER" Type of organisation |
{- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "primaryContactId": 1,
- "primaryContactEmail": 324,
- "utilityId": 32456,
- "tenantId": 1,
- "organisationType": "LOCAL GOVERNMENT"
}
{- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}
Returns a list of organisations for emergency details
limit | integer [ 1 .. 1000 ] Example: limit=50 Max number of records to return |
offset | integer >= 0 Example: offset=100 Used for paging - offset from start |
extent | Array of arrays Geojson polygon to search within |
{- "Info": {
- "offset": 10,
- "limit": 50,
- "count": 67
}, - "Organisations": [
- {
- "name": "Melbourne Water",
- "contactEmergencyPhone": 61393213481,
- "organisationType": "WATER"
}
]
}
Returns a organisation
organisationId required | integer >= 1 Example: 456 ID of the organisation to retrieve |
{- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}
Updates an organisation
organisationId required | integer >= 1 Example: 456 ID of the organisation to update |
name | string |
isDisabled | boolean Indicates that DBYD has disabled this organisation |
primaryContactId | integer >= 1 User id of an existing user who is the primary contact |
contactName | string <= 100 characters |
contactEmail | string |
contactPhoneNumber | string <= 16 characters |
contactEmergencyPhone | string <= 16 characters |
organisationType | string Enum: "LOCAL GOVERNMENT" "GAS" "TELCO" "ELECTRIC" "WATER" "OTHER" Type of organisation |
contactUrl | string |
safetyMessage | string |
isDeleteLogo | boolean |
logoId | integer |
{- "name": "Victoria Gas",
- "isDisabled": false,
- "primaryContactId": 1,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "organisationType": "LOCAL GOVERNMENT",
- "contactUrl": "www.test.com",
- "safetyMessage": "This is safety message",
- "isDeleteLogo": true,
- "logoId": 0
}
{- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}
Lists areas if interest for organisation
organisationId required | integer >= 1 Example: 456 ID of the organisation to list areas if interest for |
returnGeometry | boolean Example: returnGeometry=false Includes geometry in response |
returnEnquiryVolume | boolean Example: returnEnquiryVolume=true Includes volume in response (default = true) |
{- "Info": {
- "offset": 10,
- "limit": 50,
- "count": 67
}, - "AreasOfInterest": [
- {
- "id": 456,
- "organisationId": 456,
- "shape": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 0,
- 0
], - [
- 0,
- 0
], - [
- 0,
- 0
], - [
- 0,
- 0
]
]
], - "bbox": [
- 0,
- 0,
- 0,
- 0
]
}, - "updatedAt": "2020-08-01T03:36:00.000Z",
- "createdAt": "2020-08-01T03:36:00.000Z"
}
]
}
Update an organisation area of interest
organisationId required | integer >= 1 Example: 456 ID of the organisation to update |
type required | string Value: "Polygon" |
coordinates required | Array of numbers[ items >= 4 items [ items >= 2 items ] ] |
bbox | Array of numbers >= 4 items |
{- "type": "Polygon",
- "coordinates": [
- [
- [
- 0,
- 0
], - [
- 0,
- 0
], - [
- 0,
- 0
], - [
- 0,
- 0
]
]
], - "bbox": [
- 0,
- 0,
- 0,
- 0
]
}
{- "id": 456,
- "organisationId": 456,
- "shape": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 0,
- 0
], - [
- 0,
- 0
], - [
- 0,
- 0
], - [
- 0,
- 0
]
]
], - "bbox": [
- 0,
- 0,
- 0,
- 0
]
}, - "updatedAt": "2020-08-01T03:36:00.000Z",
- "createdAt": "2020-08-01T03:36:00.000Z"
}
Returns an area of interest
areaOfInterestId required | integer >= 1 Example: 456 ID of the area of interest to retrieve |
organisationId required | integer >= 1 Example: 456 ID of the organisation the area of interest to retrieve belongs to |
returnGeometry | boolean Example: returnGeometry=false Includes geometry in response |
{- "id": 456,
- "organisationId": 456,
- "shape": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 0,
- 0
], - [
- 0,
- 0
], - [
- 0,
- 0
], - [
- 0,
- 0
]
]
], - "bbox": [
- 0,
- 0,
- 0,
- 0
]
}, - "updatedAt": "2020-08-01T03:36:00.000Z",
- "createdAt": "2020-08-01T03:36:00.000Z"
}
Lists referral configuration for organisation
organisationId required | integer >= 1 Example: 456 ID of the organisation to list referral channels for |
{- "Info": {
- "offset": 10,
- "limit": 50,
- "count": 67
}, - "ReferralConfigurationChannels": [
- {
- "name": "My referral channel",
- "referralSummaryEmail": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "referralSummaryFrequency": "NEVER",
- "configurationType": "LEGACY",
- "isSendingPaused": false,
- "status": "DRAFT",
- "maxEnquirerArea": 8.5,
- "LegacyEmailConfiguration": {
- "emailNormalEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "emailEmergencyEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "emailLargeScaleEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "isGifRequired": true,
- "isXmlRequired": true,
- "isKmlRequired": true,
- "isGmlRequired": true,
- "gmlVersion": "GMLv3",
- "gmlProjection": "MGAZONE55"
}, - "WebhookConfiguration": {
- "webhookSubscriptionId": 25,
- "WebhookSubscription": {
- "clientKey": "dsf876897dsf876sdf87",
- "customHeaders": {
- "apiKey": "mysecretheader"
}, - "gmlProjection": "MGAZONE55"
}
}, - "primaryContent": {
- "webMap": false,
- "responseType": "response_body",
- "filenameValue": "asset",
- "filenameOption": "end_with"
}
}
]
}
Adds a referral configuration
organisationId required | integer >= 1 Example: 456 ID of the organisation to add a referral channel for |
name | string |
referralSummaryEmail | string |
referralSummaryFrequency | string Enum: "DAILY" "WEEKLY" "NEVER" |
configurationType | string Value: "LEGACY" |
isSendingPaused | boolean |
status | string Enum: "DRAFT" "LIVE" "ARCHIVED" |
maxEnquirerArea | number [ 0.1 .. 20 ] |
object (LegacyEmailConfiguration) | |
object (WebhookConfiguration) | |
object (PrimaryContent) |
{- "name": "My referral channel",
- "referralSummaryEmail": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "referralSummaryFrequency": "NEVER",
- "configurationType": "LEGACY",
- "isSendingPaused": false,
- "status": "DRAFT",
- "maxEnquirerArea": 8.5,
- "LegacyEmailConfiguration": {
- "emailNormalEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "emailEmergencyEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "emailLargeScaleEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "isGifRequired": true,
- "isXmlRequired": true,
- "isKmlRequired": true,
- "isGmlRequired": true,
- "gmlVersion": "GMLv3",
- "gmlProjection": "MGAZONE55"
}, - "WebhookConfiguration": {
- "webhookSubscriptionId": 25,
- "WebhookSubscription": {
- "clientKey": "dsf876897dsf876sdf87",
- "customHeaders": {
- "apiKey": "mysecretheader"
}, - "gmlProjection": "MGAZONE55"
}
}, - "primaryContent": {
- "webMap": false,
- "responseType": "response_body",
- "filenameValue": "asset",
- "filenameOption": "end_with"
}
}
{- "name": "My referral channel",
- "referralSummaryEmail": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "referralSummaryFrequency": "NEVER",
- "configurationType": "LEGACY",
- "isSendingPaused": false,
- "status": "DRAFT",
- "maxEnquirerArea": 8.5,
- "LegacyEmailConfiguration": {
- "emailNormalEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "emailEmergencyEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "emailLargeScaleEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "isGifRequired": true,
- "isXmlRequired": true,
- "isKmlRequired": true,
- "isGmlRequired": true,
- "gmlVersion": "GMLv3",
- "gmlProjection": "MGAZONE55"
}, - "WebhookConfiguration": {
- "webhookSubscriptionId": 25,
- "WebhookSubscription": {
- "clientKey": "dsf876897dsf876sdf87",
- "customHeaders": {
- "apiKey": "mysecretheader"
}, - "gmlProjection": "MGAZONE55"
}
}, - "primaryContent": {
- "webMap": false,
- "responseType": "response_body",
- "filenameValue": "asset",
- "filenameOption": "end_with"
}
}
Returns a referral configuration channel
channelId required | integer >= 1 Example: 456 ID of the referral configuration channel to retrieve |
organisationId required | integer >= 1 Example: 456 ID of the organisation the channel to retrieve belongs to |
{- "name": "My referral channel",
- "referralSummaryEmail": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "referralSummaryFrequency": "NEVER",
- "configurationType": "LEGACY",
- "isSendingPaused": false,
- "status": "DRAFT",
- "maxEnquirerArea": 8.5,
- "LegacyEmailConfiguration": {
- "emailNormalEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "emailEmergencyEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "emailLargeScaleEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "isGifRequired": true,
- "isXmlRequired": true,
- "isKmlRequired": true,
- "isGmlRequired": true,
- "gmlVersion": "GMLv3",
- "gmlProjection": "MGAZONE55"
}, - "WebhookConfiguration": {
- "webhookSubscriptionId": 25,
- "WebhookSubscription": {
- "clientKey": "dsf876897dsf876sdf87",
- "customHeaders": {
- "apiKey": "mysecretheader"
}, - "gmlProjection": "MGAZONE55"
}
}, - "primaryContent": {
- "webMap": false,
- "responseType": "response_body",
- "filenameValue": "asset",
- "filenameOption": "end_with"
}
}
Updates a referral channel
channelId required | integer >= 1 Example: 325 ID of the referral configuration channel to update |
organisationId required | integer >= 1 Example: 456 ID of the organisation the channel to update belongs to |
name | string |
referralSummaryEmail | string |
referralSummaryFrequency | string Enum: "DAILY" "WEEKLY" "NEVER" |
configurationType | string Value: "LEGACY" |
isSendingPaused | boolean |
status | string Enum: "DRAFT" "LIVE" "ARCHIVED" |
maxEnquirerArea | number [ 0.1 .. 20 ] |
object (LegacyEmailConfiguration) | |
object (WebhookConfiguration) | |
object (PrimaryContent) |
{- "name": "My referral channel",
- "referralSummaryEmail": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "referralSummaryFrequency": "NEVER",
- "configurationType": "LEGACY",
- "isSendingPaused": false,
- "status": "DRAFT",
- "maxEnquirerArea": 8.5,
- "LegacyEmailConfiguration": {
- "emailNormalEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "emailEmergencyEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "emailLargeScaleEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "isGifRequired": true,
- "isXmlRequired": true,
- "isKmlRequired": true,
- "isGmlRequired": true,
- "gmlVersion": "GMLv3",
- "gmlProjection": "MGAZONE55"
}, - "WebhookConfiguration": {
- "webhookSubscriptionId": 25,
- "WebhookSubscription": {
- "clientKey": "dsf876897dsf876sdf87",
- "customHeaders": {
- "apiKey": "mysecretheader"
}, - "gmlProjection": "MGAZONE55"
}
}, - "primaryContent": {
- "webMap": false,
- "responseType": "response_body",
- "filenameValue": "asset",
- "filenameOption": "end_with"
}
}
{- "name": "My referral channel",
- "referralSummaryEmail": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "referralSummaryFrequency": "NEVER",
- "configurationType": "LEGACY",
- "isSendingPaused": false,
- "status": "DRAFT",
- "maxEnquirerArea": 8.5,
- "LegacyEmailConfiguration": {
- "emailNormalEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "emailEmergencyEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "emailLargeScaleEnquiries": "dbyd.referrals@telstra.com.au,dbyd.national@telstra.com.au",
- "isGifRequired": true,
- "isXmlRequired": true,
- "isKmlRequired": true,
- "isGmlRequired": true,
- "gmlVersion": "GMLv3",
- "gmlProjection": "MGAZONE55"
}, - "WebhookConfiguration": {
- "webhookSubscriptionId": 25,
- "WebhookSubscription": {
- "clientKey": "dsf876897dsf876sdf87",
- "customHeaders": {
- "apiKey": "mysecretheader"
}, - "gmlProjection": "MGAZONE55"
}
}, - "primaryContent": {
- "webMap": false,
- "responseType": "response_body",
- "filenameValue": "asset",
- "filenameOption": "end_with"
}
}
Lists users belonging to an organisation
organisationId required | integer >= 1 Example: 456 ID of the organisation to list users for |
{- "Info": {
- "offset": 10,
- "limit": 50,
- "count": 67
}, - "Users": [
- {
- "id": 234,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "SYSADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678",
- "preferences": { },
- "lastLoggedInAt": "2020-08-01T03:36:00.000Z",
- "createdAt": "2020-08-01T03:36:00.000Z",
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "isVerified": true,
- "organisationId": 123,
- "Address": {
- "line1": "613 King St",
- "line2": null,
- "locality": "West Melbourne",
- "state": "VIC",
- "country": "AUS",
- "postcode": 3003
}
}
]
}
Adds a user to an organistion
organisationId required | integer >= 1 Example: 456 ID of the organisation to add a user to |
string | |
firstName | string |
lastName | string |
{- "email": "gary@mac.com",
- "firstName": "Gary",
- "lastName": "Johnson"
}
{- "id": 234,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "SYSADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678",
- "preferences": { },
- "lastLoggedInAt": "2020-08-01T03:36:00.000Z",
- "createdAt": "2020-08-01T03:36:00.000Z",
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "isVerified": true,
- "organisationId": 123,
- "Address": {
- "line1": "613 King St",
- "line2": null,
- "locality": "West Melbourne",
- "state": "VIC",
- "country": "AUS",
- "postcode": 3003
}
}
Removes a user from an organisation
organisationId required | integer >= 1 Example: 456 ID of the organisation to remove the user from |
userId required | integer >= 1 Example: 567 ID of the user to remove from the organisation |
Search over users
filter | string Example: filter=firstName:Gary,createdAfter:2020-08-01 Filters to apply to records |
limit | integer [ 1 .. 1000 ] Example: limit=50 Max number of records to return |
offset | integer >= 0 Example: offset=100 Used for paging - offset from start |
include | string Example: include=Address,Organisation Provide list of extended properties to return |
fields | string Example: fields=firstName,lastName List of basic properties to return (* indicates all) |
order | string Example: order=lastName,-createdAt Sort order for results - hyphen prefix reverses order |
{- "Info": {
- "offset": 10,
- "limit": 50,
- "count": 67
}, - "Users": [
- {
- "id": 234,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "alternateEmail": "nobody@smarterwx.com",
- "role": "SYSADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678",
- "preferences": { },
- "lastLoggedInAt": "2020-08-01T03:36:00.000Z",
- "createdAt": "2020-08-01T03:36:00.000Z",
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "isVerified": true,
- "organisationId": 123,
- "Address": {
- "line1": "613 King St",
- "line2": null,
- "locality": "West Melbourne",
- "state": "VIC",
- "country": "AUS",
- "postcode": 3003
}, - "Organisation": {
- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}
}
]
}
Get details of a user
userId required | integer >= 1 Example: 1 ID of the user to retrieve |
{- "id": 234,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "alternateEmail": "nobody@smarterwx.com",
- "role": "SYSADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678",
- "preferences": { },
- "lastLoggedInAt": "2020-08-01T03:36:00.000Z",
- "createdAt": "2020-08-01T03:36:00.000Z",
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "isVerified": true,
- "organisationId": 123,
- "Address": {
- "line1": "613 King St",
- "line2": null,
- "locality": "West Melbourne",
- "state": "VIC",
- "country": "AUS",
- "postcode": 3003
}, - "Organisation": {
- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}
}
Update details of a user
userId required | integer >= 1 Example: 1 ID of the user to update |
fields | string Example: fields=preferences,firstName List of fields wanted to update only |
id | integer >= 1 |
username | string |
string | |
alternateEmail | string |
role | string Enum: "SYSADMIN" "DBYDADMIN" "AOADMIN" "AOUSER" "ENQUIRER" |
firstName | string |
lastName | string |
phoneNumber | string |
preferences | object |
lastLoggedInAt | string |
createdAt | string |
updatedAt | string |
isVerified | boolean |
organisationId | integer >= 1 |
object (Address) | |
object (Organisation) |
{- "id": 234,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "alternateEmail": "nobody@smarterwx.com",
- "role": "SYSADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678",
- "preferences": { },
- "lastLoggedInAt": "2020-08-01T03:36:00.000Z",
- "createdAt": "2020-08-01T03:36:00.000Z",
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "isVerified": true,
- "organisationId": 123,
- "Address": {
- "line1": "613 King St",
- "line2": null,
- "locality": "West Melbourne",
- "state": "VIC",
- "country": "AUS",
- "postcode": 3003
}, - "Organisation": {
- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}
}
{- "id": 234,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "alternateEmail": "nobody@smarterwx.com",
- "role": "SYSADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678",
- "preferences": { },
- "lastLoggedInAt": "2020-08-01T03:36:00.000Z",
- "createdAt": "2020-08-01T03:36:00.000Z",
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "isVerified": true,
- "organisationId": 123,
- "Address": {
- "line1": "613 King St",
- "line2": null,
- "locality": "West Melbourne",
- "state": "VIC",
- "country": "AUS",
- "postcode": 3003
}, - "Organisation": {
- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}
}
Start to impersonate a user
userId required | integer >= 1 Example: 1 ID of the user to impersonate |
{- "token": "asdsf897as876sdf89dds876sdf",
- "expiry": "2020-08-01T03:36:00.000Z",
- "User": {
- "id": 234,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "alternateEmail": "nobody@smarterwx.com",
- "role": "SYSADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678",
- "preferences": { },
- "lastLoggedInAt": "2020-08-01T03:36:00.000Z",
- "createdAt": "2020-08-01T03:36:00.000Z",
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "isVerified": true,
- "organisationId": 123,
- "Address": {
- "line1": "613 King St",
- "line2": null,
- "locality": "West Melbourne",
- "state": "VIC",
- "country": "AUS",
- "postcode": 3003
}, - "Organisation": {
- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}
}
}
{- "Info": {
- "offset": 10,
- "limit": 50,
- "count": 67
}, - "ApiKeys": [
- {
- "id": 678,
- "clientId": "FGhj76C12Aggr",
- "lastUsedAt": "2020-08-01T03:36:00.000Z",
- "createdAt": "2020-08-01T03:36:00.000Z"
}
]
}
Request a new token using API Key
clientId | string |
clientSecret | string |
{- "clientId": "6C12AggrFGhj76",
- "clientSecret": "FGhj1a779216341966b25efecafa1c0bf83133f454d5"
}
{- "access_token": "FGhj1a779216341966b25efecafa1c0bf83133f454d5fdaaf370d399e830ee8acdca185f0a72d9fc37d82679cf99",
- "expires_in": 7200
}