OnTime REST API
OnTime REST API / REST Endpoints Resource Group / api/user/updatePosition (Post)
In This Topic
    Postapi/user/updatePosition
    In This Topic

    Resource Path: /sites/{company-id}/api/user/updatePosition

    Uri: https://secure.ontime360.com/sites/{company-id}/api/user/updatePosition

    Description
    Updates the position of a User relative to a given date and time.
    Parameters
    NameDescriptionData Type
    The unique identifier of the User as a Guid.string
    The User's current latitude coordinate as a Decimal. Value must be between -90 and 90.number
    The User's current longitude coordinate as a Decimal. Value must be between -180 and 180.number
    The exact date and time the User's coordinates were recorded as a Date.string
    Request

    The request body is of type object.

    200 Response

    The response body is of type object.

    Returns true if the User's position was successfully updated. Otherwise, returns false.
    Fault Responses
    FaultDescription
    Request was improperly formatted, contained invalid data, or contained incorrect values. See response body for more information.
    Authorization key is invalid or no longer exists.
    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.
    See Also