Platform Subscription API

<back to all web services

GetProject

Returns a project with details of the project its contact connections and address.

Requires Authentication
GetProject Parameters:
NameParameterData TypeRequiredDescription
SuiteDataSourceInstanceIdqueryGuidYesGuid representing the external systems datasource information.
AlternateKeyquerystringYesThe unique key that represents the project on the external system.
ObjectIdqueryGuidNoGuid of the project object within Eros. If ObjectId is known, the external system may pass this insted of the alternate key.
IgnoreValidationqueryboolNo
SubscriptionCommonProjectModel Parameters:
NameParameterData TypeRequiredDescription
ReferencequerystringNoA reference number used for identifying the project in the external system.
NamequerystringYesA name for the project.
DescriptionquerystringYesA description for the project.
ProjectContactsqueryList<SubscriptionLinkContact>NoA list of ProjectContact records that link contacts (and their role in the project) to the project.
ProjectAddressqueryAddressModelNoAn address for the project.
CustomerContactGroupquerySubscriptionObjectModelNoA link to the Customer Contact Group.
PrimaryProjectImageIdqueryGuidNoGuid of the Media Object representing the projects primary image.
PrimaryProjectPhotoUrlquerystringNoURL to the projects primary full image.
PrimaryProjectThumbnailUrlquerystringNoURL to the projects primary thumbnail image.
PrimaryProjectPhotoHeightqueryintNoImage height of the projects logo.
PrimaryProjectPhotoWidthqueryintNoImage height of the projects logo.
DynamicContentquerystringNoDynamically linked content.
DocumentableObjectConnectionquerycharNoIf this is 'A' then a documentable ObjectConnection will be created. If this is 'D' then a documentable ObjectConnection will be removed if it exists. Any other value will be ignored.
DimensionValuesqueryList<DimensionValueModel>NoDimension values linked to the project.
CalendarsqueryList<Guid>NoDimension values linked to the project.
DocumentSiteIdqueryGuidNoThe Document Site ID.
SubscriptionLinkContact Parameters:
NameParameterData TypeRequiredDescription
ContactIdqueryGuidNoGuid of the contact object within Eros.
ContactAlternateKeyquerystringYesThe unique key that represents the contact on the external system.
RoleIdqueryGuidYesGuid of the Role List Item object within Eros.
RoleAlternateKeyquerystringNoThe unique key that represents the role type on the external system. Note: Use of this is not currently implemented
AddressModel Parameters:
NameParameterData TypeRequiredDescription
DistanceAwayquerydoubleNoThe distance between this project and another specified set of gps coordinates.
LatitudequeryDouble?YesThe latitude of an address - geographic coordinates specifying the north-south position of a point on the Earth's surface.
LongitudequeryDouble?YesThe longitude of an address - geographic coordinates specifying the east-west position of a point on the Earth's surface.
AddressFormatIdqueryGuidNoAddress Format Id Guid - this will be determined by the service.
SuburbIdqueryGuidNoSuburb Id Guid - this will attempt to be determined by the SuburbName, StateShortName and Postcode entered.
SuburbNamequerystringNoThe suburb name.
StateShortNamequerystringNoThe shortened State Name e.g Vic for Victoria.
PostCodequerystringNoThe suburb postcode.
CountryIdqueryGuidNoCountry Id Guid - this will be determined by the CountrName or ISOCountryCode entered.
CountryNamequerystringNothe name of the country the address is within.
ISOCountryCodequerystringNoA 2 digit ISO Country Code representing the country.
LotNumberquerystringNoThe address Lot number.
SubUnitquerystringNoThe address Sub Unit number.
BuildingNumberquerystringNoThe address building number.
StreetNumberquerystringNoThe address street number.
StreetNamequerystringNoThe address street name including street type.
AddressLineOnequerystringNoA formatted address Line 1.
AddressLineTwoquerystringNoA formatted address Line 2.
AddressFullquerystringNoThe full address string.
IsPhysicalquerybool?NoTrue if the address is a physical location.
NotesquerystringNoNotes about the address.
AutoMapCoordinatesquerybool?NoIf true, the address is eligible for having its coordinates calculated/updated.
LocationCoordinatesqueryLocationCoordinatesNoLocation Coordinates for the address.
LocationCoordinatesModel Parameters:
NameParameterData TypeRequiredDescription
LatitudequeryDouble?YesThe latitude of an address - geographic coordinates specifying the north-south position of a point on the Earth's surface.
LongitudequeryDouble?YesThe longitude of an address - geographic coordinates specifying the east-west position of a point on the Earth's surface.
AltitudequeryDouble?NoThe altitude of an address - the altitude above sea level.
AccuracyqueryDouble?NoAccuracy of the latitude and longitude.
AltitudeAccuracyqueryDouble?NoAccurancy of the Altitude.
HeadingqueryDouble?NoDirection you are heading.
SpeedqueryDouble?NoSpeed you are going.
VerticalSpeedqueryDouble?NoSpeed your altitude is ascending/descending at.
SubscriptionObjectModel Parameters:
NameParameterData TypeRequiredDescription
SuiteDataSourceInstanceIdqueryGuidYesGuid representing the external systems datasource information.
AlternateKeyquerystringYesThe unique key that represents the object on the external system.
ObjectIdqueryGuidNoGuid of the object within Eros. If ObjectId is known, the external system may pass this instead of the alternate key.
RmsTableCtxIdqueryGuidNoGuid of the RmsTableCtx within Eros. This is used if the alternate key is provided to identify the object to update.
IgnoreValidationqueryboolNoValidation ensures that this object has a value in alternateKey or ObjectId, ignoring validation skips this requirement.
DimensionValueModel Parameters:
NameParameterData TypeRequiredDescription
DimensionValueIdformGuidNo
DimensionIdformGuidNo
NameformstringNo
DescriptionformstringNo
ShortNameformstringNo
TrafficLightIdformGuidNo
TrafficLightColourformstringNo
ObjectConnectionIdformGuidNo
OwnerContactIdformGuidNo
RecordStatusformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/GetProject HTTP/1.1 
Host: production-eros-platform-apisubscription.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"AlternateKey":"String","IgnoreValidation":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Reference":"String","Name":"String","Description":"String","ProjectContacts":[{"ContactAlternateKey":"String","RoleAlternateKey":"String"}],"ProjectAddress":{"DistanceAway":0,"Latitude":0,"Longitude":0,"SuburbName":"String","StateShortName":"String","PostCode":"String","CountryName":"String","ISOCountryCode":"String","LotNumber":"String","SubUnit":"String","BuildingNumber":"String","StreetNumber":"String","StreetName":"String","AddressLineOne":"String","AddressLineTwo":"String","AddressFull":"String","IsPhysical":false,"Notes":"String","AutoMapCoordinates":false,"LocationCoordinates":{"Latitude":0,"Longitude":0,"Altitude":0,"Accuracy":0,"AltitudeAccuracy":0,"Heading":0,"Speed":0,"VerticalSpeed":0}},"CustomerContactGroup":{"AlternateKey":"String","IgnoreValidation":false},"PrimaryProjectPhotoUrl":"String","PrimaryProjectThumbnailUrl":"String","PrimaryProjectPhotoHeight":0,"PrimaryProjectPhotoWidth":0,"DynamicContent":"String","DocumentableObjectConnection":"\u0000","DimensionValues":[{"Name":"String","Description":"String","ShortName":"String","TrafficLightColour":"String","RecordStatus":"String"}],"Calendars":["00000000-0000-0000-0000-000000000000"],"DocumentSiteId":"00000000-0000-0000-0000-000000000000"}