Relay
City of Gilroy· Cityworks Online OC 23.15 Trimble Unity Maintain (sandbox)
Sample data RE
Platform › Connections and API

Connections and API

Relay calls each system over HTTP exactly as it would at the City. In this workspace the three endpoints are sandboxes with synthetic data; at the City they are the real services, and changing them is configuration.
How Relay authenticates
Cityworks
POST /Services/General/Authentication/Authenticate returns a token; read only integration account
ArcGIS Enterprise
Feature service query with an ArcGIS user named for the migration
Unity Maintain
Token from General/Authentication/Authenticate, sent as Authorization: bearer; employee record set to API only
Secrets
Held in the City's key store, never in the workbook or the repository
Where it runs
Hosting
Inside the City's network or a City-approved cloud subscription
Staging
SQL Server staging database (raw, clean, ready)
City data
Never on a laptop; the City owns the repository and every report
Reruns
Idempotent: each record carries its Cityworks ID as LegacyId
SystemMethodPathUsed in
CityworksPOST/cityworks/Services/Ams/{object}/SearchExtract
ArcGIS EnterpriseGET/arcgis/rest/services/Gilroy/{layer}/FeatureServer/0/queryExtract
Unity MaintainPOST/unity/services/Ams/{object}/CreateLoad
Unity MaintainPOST/unity/services/Ams/Storeroom/SetStockLoad
Unity MaintainPOST/unity/services/General/QueryReconcile