Updates the position of a User relative to a given date and time.
Post | api/user/updatePosition |
Resource Path: /sites/{company-id}/api/user/updatePosition
Uri: https://secure.ontime360.com/sites/{company-id}/api/user/updatePosition
Name | Description | Data Type |
---|---|---|
userID | The unique identifier of the User as a Guid. | string |
latitude | The User's current latitude coordinate as a Decimal. Value must be between -90 and 90. | number |
longitude | The User's current longitude coordinate as a Decimal. Value must be between -180 and 180. | number |
timeStamp | The exact date and time the User's coordinates were recorded as a Date. | string |
The request body is of type object.
The response body is of type object.
Returns true if the User's position was successfully updated. Otherwise, returns false.Fault | Description |
---|---|
400 | Request was improperly formatted, contained invalid data, or contained incorrect values. See response body for more information. |
401 | Authorization key is invalid or no longer exists. |
403 | Authorization key does not have permission to perform this action, or does not have permission to access the requested data. See response body for more information. |