GalaxyMobile Client API

<back to all web services

UpdateVehicleLicense

The following routes are available for this service:
POST/galaxy/vehicle/updateUpdate a user's vehicle license.
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports WebService.ClientServiceModel.Vehicles
Imports WebService.ClientServiceModel.Base
Imports CommonService.Api.Models.Base

Namespace Global

    Namespace CommonService.Api.Models.Base

        Public Partial Class ApiServiceResponse
            Implements IServiceResponse
            Public Overridable Property Description As String
            Public Overridable Property Heading As String
            Public Overridable Property WasSuccessful As Boolean
            Public Overridable Property ModelState As Object
        End Class
    End Namespace

    Namespace WebService.ClientServiceModel.Base

        Public Partial Class ApiServiceRequest
            Implements IServiceRequest
            Implements IHasApiKey
            '''<Summary>
            '''The API Key required for authentication
            '''</Summary>
            <ApiMember(DataType:="string", Description:="The API Key required for authentication", IsRequired:=true)>
            Public Overridable Property ApiKey As String
        End Class
    End Namespace

    Namespace WebService.ClientServiceModel.Vehicles

        Public Partial Class UpdateVehicleLicense
            Inherits ApiServiceRequest
            '''<Summary>
            '''ID Number of the user making this request.
            '''</Summary>
            <ApiMember(Description:="ID Number of the user making this request.", IsRequired:=true)>
            Public Overridable Property IdNumber As String

            '''<Summary>
            '''The scanned vehicle license disk information.
            '''</Summary>
            <ApiMember(Description:="The scanned vehicle license disk information.", IsRequired:=true)>
            Public Overridable Property Vehicle As VehicleData
        End Class

        Public Partial Class UpdateVehicleLicenseResponse
            Inherits ApiServiceResponse
            '''<Summary>
            '''The newly update vehicle information.
            '''</Summary>
            <ApiMember(Description:="The newly update vehicle information.", IsRequired:=true)>
            Public Overridable Property Vehicle As VehicleData
        End Class

        Public Partial Class VehicleData
            '''<Summary>
            '''The ID of the vehicle.
            '''</Summary>
            <ApiMember(Description:="The ID of the vehicle.")>
            Public Overridable Property Id As Integer

            '''<Summary>
            '''Whether the vehicle has license disk information.
            '''</Summary>
            <ApiMember(Description:="Whether the vehicle has license disk information.")>
            Public Overridable Property HasLicense As Boolean

            '''<Summary>
            '''The vehicle license number.
            '''</Summary>
            <ApiMember(Description:="The vehicle license number.")>
            Public Overridable Property LicenseNumber As String

            '''<Summary>
            '''The vehicle registration number.
            '''</Summary>
            <ApiMember(Description:="The vehicle registration number.")>
            Public Overridable Property RegistrationNumber As String

            '''<Summary>
            '''The vehicle VIN number.
            '''</Summary>
            <ApiMember(Description:="The vehicle VIN number.")>
            Public Overridable Property Vin As String

            '''<Summary>
            '''The vehicle make.
            '''</Summary>
            <ApiMember(Description:="The vehicle make.")>
            Public Overridable Property Make As String

            '''<Summary>
            '''The vehicle series.
            '''</Summary>
            <ApiMember(Description:="The vehicle series.")>
            Public Overridable Property Series As String

            '''<Summary>
            '''The vehicle colour.
            '''</Summary>
            <ApiMember(Description:="The vehicle colour.")>
            Public Overridable Property Colour As String

            '''<Summary>
            '''The vehicle license expiry date in ISO 8601 format.
            '''</Summary>
            <ApiMember(Description:="The vehicle license expiry date in ISO 8601 format.")>
            Public Overridable Property Expiry As String

            '''<Summary>
            '''True if this vehicle's licence expiring soon.
            '''</Summary>
            <ApiMember(Description:="True if this vehicle's licence expiring soon.")>
            Public Overridable Property ExpiresSoon As Boolean

            '''<Summary>
            '''True if this vehicle's license expired.
            '''</Summary>
            <ApiMember(Description:="True if this vehicle's license expired.")>
            Public Overridable Property Expired As Boolean
        End Class
    End Namespace
End Namespace

VB.NET UpdateVehicleLicense DTOs

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

HTTP + OTHER

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

POST /galaxy/vehicle/update HTTP/1.1 
Host: galaxymobile.api.client.prod.86degrees.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"IdNumber":"String","Vehicle":{"Id":0,"HasLicense":false,"LicenseNumber":"String","RegistrationNumber":"String","Vin":"String","Make":"String","Series":"String","Colour":"String","Expiry":"String","ExpiresSoon":false,"Expired":false},"ApiKey":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Vehicle":{"Id":0,"HasLicense":false,"LicenseNumber":"String","RegistrationNumber":"String","Vin":"String","Make":"String","Series":"String","Colour":"String","Expiry":"String","ExpiresSoon":false,"Expired":false},"Description":"String","Heading":"String","WasSuccessful":false,"ModelState":{}}