Create Site
POST/sites
Create a site within your account to gain access to on-site assets and their historical data.
To create a new site, you must provide either a polygon or a suggestionId. If both are provided, the polygon will take precedence.
For sites of type DEPOT, if an address is provided without a polygon or suggestionId, a polygon will be automatically generated from the address using Google’s Geocoding API.
If none of the required fields are provided, an error will be returned.
Via the Public GraphQL API, you can perform mutations to modify data associated with a site. Explore the GraphQL schema through our GraphQL Explorer following the mutation 'siteCreate'. Learn more about the IrisX subscription.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 500
Newly created site.
Bad request
Invalid or missing bearer token in Authorization header
User not allowed to make this request
Resource not found
Internal server error