PUT api/v2/CustomerGroup

mise à jour d'un groupe

Request Information

URI Parameters

None.

Body Parameters

CustomerGroupDto
NameDescriptionTypeAdditional information
Id

identifiant ( null = create )

globally unique identifier

None.

CustomerId

client id

globally unique identifier

None.

Name

nom

string

None.

ProfilEcoDriveId

Identifiant du profi éco-conduite

globally unique identifier

None.

Vehicles

List de vehicle

Collection of VehicleLightDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "612d3fd7-3479-4fdb-89f1-7a529c242282",
  "CustomerId": "2a698a39-397d-4662-9f94-d76e75d185fb",
  "Name": "sample string 2",
  "ProfilEcoDriveId": "b50132ab-6cdf-45ed-9742-cf21220d8477",
  "Vehicles": [
    {
      "IdWS": 1,
      "AgencyAffiliationName": "sample string 2",
      "AgencyAffiliationId": "c7a9530f-2ee1-4f20-b595-cb67259f0a51",
      "CustomerGroupId": "c70333a1-7439-4b3d-9a3b-20eab0a10d33",
      "CustomerGroupName": "sample string 3",
      "VIN": "sample string 4",
      "ExternalInterfaceId": "2387293f-5dcb-477b-ae22-b7acaef8891a",
      "InitialEntryIntoService": "2025-11-30T11:53:37.9032446+00:00",
      "ExternalInterfaces": [
        {
          "Id": "ed8e3bd0-177b-49eb-a98e-afbf8d2f328f",
          "CustomerId": "0967bcf0-21b1-4fec-90d7-ff5e0a182cd9",
          "Name": "sample string 3"
        },
        {
          "Id": "ed8e3bd0-177b-49eb-a98e-afbf8d2f328f",
          "CustomerId": "0967bcf0-21b1-4fec-90d7-ff5e0a182cd9",
          "Name": "sample string 3"
        }
      ],
      "JobActivity": "sample string 6",
      "Renting": true,
      "UtcEndOfLease": "2025-11-30T11:53:37.9032446+00:00",
      "UtcStartOfLease": "2025-11-30T11:53:37.9032446+00:00",
      "KmEndOfLease": 1,
      "KmStartOfLease": 1,
      "TheoreticalConsumption": 1.1,
      "ReservoirVolume": 1,
      "Tolerance": 8,
      "MobileUnitId": "e2691402-14b3-4838-badd-65c7f75c1ca3",
      "MobileUnitName": "sample string 9",
      "Imei": "sample string 10",
      "TotalFuelUsed": 11.1,
      "CANFuelReportUtc": "2025-11-30T11:53:37.9032446+00:00",
      "Milestone": 12,
      "UtcMileageReport": "2025-11-30T11:53:37.9032446+00:00",
      "MilestoneAtAssignment": 13,
      "TachySpeedLimit": 1,
      "CameraType": 0,
      "NoGeoloc": true,
      "VehicleState": 0,
      "VehicleId": "b5e429b1-1b85-4cd3-9168-a95a8c8dfff9",
      "CustomerId": "0f8c253a-675b-4d4c-9904-4630bc20405c",
      "LicencePlate": "sample string 15",
      "Name": "sample string 16",
      "VehicleType": "sample string 17",
      "Brand": "sample string 18",
      "Model": "sample string 19",
      "State": 0,
      "FuelName": "sample string 20",
      "FullName": "sample string 16 (sample string 15)",
      "Utility": "Porteur",
      "FuelTypeId": 1,
      "FuelTypeIdSynthesis": 1,
      "IsFuelTypeConflict": true,
      "IsActive": true,
      "CompatibleDownload": true
    },
    {
      "IdWS": 1,
      "AgencyAffiliationName": "sample string 2",
      "AgencyAffiliationId": "c7a9530f-2ee1-4f20-b595-cb67259f0a51",
      "CustomerGroupId": "c70333a1-7439-4b3d-9a3b-20eab0a10d33",
      "CustomerGroupName": "sample string 3",
      "VIN": "sample string 4",
      "ExternalInterfaceId": "2387293f-5dcb-477b-ae22-b7acaef8891a",
      "InitialEntryIntoService": "2025-11-30T11:53:37.9032446+00:00",
      "ExternalInterfaces": [
        {
          "Id": "ed8e3bd0-177b-49eb-a98e-afbf8d2f328f",
          "CustomerId": "0967bcf0-21b1-4fec-90d7-ff5e0a182cd9",
          "Name": "sample string 3"
        },
        {
          "Id": "ed8e3bd0-177b-49eb-a98e-afbf8d2f328f",
          "CustomerId": "0967bcf0-21b1-4fec-90d7-ff5e0a182cd9",
          "Name": "sample string 3"
        }
      ],
      "JobActivity": "sample string 6",
      "Renting": true,
      "UtcEndOfLease": "2025-11-30T11:53:37.9032446+00:00",
      "UtcStartOfLease": "2025-11-30T11:53:37.9032446+00:00",
      "KmEndOfLease": 1,
      "KmStartOfLease": 1,
      "TheoreticalConsumption": 1.1,
      "ReservoirVolume": 1,
      "Tolerance": 8,
      "MobileUnitId": "e2691402-14b3-4838-badd-65c7f75c1ca3",
      "MobileUnitName": "sample string 9",
      "Imei": "sample string 10",
      "TotalFuelUsed": 11.1,
      "CANFuelReportUtc": "2025-11-30T11:53:37.9032446+00:00",
      "Milestone": 12,
      "UtcMileageReport": "2025-11-30T11:53:37.9032446+00:00",
      "MilestoneAtAssignment": 13,
      "TachySpeedLimit": 1,
      "CameraType": 0,
      "NoGeoloc": true,
      "VehicleState": 0,
      "VehicleId": "b5e429b1-1b85-4cd3-9168-a95a8c8dfff9",
      "CustomerId": "0f8c253a-675b-4d4c-9904-4630bc20405c",
      "LicencePlate": "sample string 15",
      "Name": "sample string 16",
      "VehicleType": "sample string 17",
      "Brand": "sample string 18",
      "Model": "sample string 19",
      "State": 0,
      "FuelName": "sample string 20",
      "FullName": "sample string 16 (sample string 15)",
      "Utility": "Porteur",
      "FuelTypeId": 1,
      "FuelTypeIdSynthesis": 1,
      "IsFuelTypeConflict": true,
      "IsActive": true,
      "CompatibleDownload": true
    }
  ]
}

application/xml, text/xml

Sample:
<CustomerGroupDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.CustomerGroup">
  <CustomerId>2a698a39-397d-4662-9f94-d76e75d185fb</CustomerId>
  <Id>612d3fd7-3479-4fdb-89f1-7a529c242282</Id>
  <Name>sample string 2</Name>
  <ProfilEcoDriveId>b50132ab-6cdf-45ed-9742-cf21220d8477</ProfilEcoDriveId>
  <Vehicles xmlns:d2p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto">
    <d2p1:VehicleLightDto>
      <d2p1:Brand>sample string 18</d2p1:Brand>
      <d2p1:CompatibleDownload>true</d2p1:CompatibleDownload>
      <d2p1:CustomerId>0f8c253a-675b-4d4c-9904-4630bc20405c</d2p1:CustomerId>
      <d2p1:FuelName>sample string 20</d2p1:FuelName>
      <d2p1:FuelTypeId>1</d2p1:FuelTypeId>
      <d2p1:FuelTypeIdSynthesis>1</d2p1:FuelTypeIdSynthesis>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:IsFuelTypeConflict>true</d2p1:IsFuelTypeConflict>
      <d2p1:LicencePlate>sample string 15</d2p1:LicencePlate>
      <d2p1:Model>sample string 19</d2p1:Model>
      <d2p1:Name>sample string 16</d2p1:Name>
      <d2p1:State>Active</d2p1:State>
      <d2p1:VehicleId>b5e429b1-1b85-4cd3-9168-a95a8c8dfff9</d2p1:VehicleId>
      <d2p1:VehicleType>sample string 17</d2p1:VehicleType>
      <d2p1:AgencyAffiliationId>c7a9530f-2ee1-4f20-b595-cb67259f0a51</d2p1:AgencyAffiliationId>
      <d2p1:AgencyAffiliationName>sample string 2</d2p1:AgencyAffiliationName>
      <d2p1:CANFuelReportUtc>2025-11-30T11:53:37.9032446+00:00</d2p1:CANFuelReportUtc>
      <d2p1:CameraType>WITHOUT_CAMERA</d2p1:CameraType>
      <d2p1:CustomerGroupId>c70333a1-7439-4b3d-9a3b-20eab0a10d33</d2p1:CustomerGroupId>
      <d2p1:CustomerGroupName>sample string 3</d2p1:CustomerGroupName>
      <d2p1:ExternalInterfaceId>2387293f-5dcb-477b-ae22-b7acaef8891a</d2p1:ExternalInterfaceId>
      <d2p1:ExternalInterfaces xmlns:d4p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.ExternalInterface">
        <d4p1:ExternalInterfaceHeaderDto>
          <d4p1:CustomerId>0967bcf0-21b1-4fec-90d7-ff5e0a182cd9</d4p1:CustomerId>
          <d4p1:Id>ed8e3bd0-177b-49eb-a98e-afbf8d2f328f</d4p1:Id>
          <d4p1:Name>sample string 3</d4p1:Name>
        </d4p1:ExternalInterfaceHeaderDto>
        <d4p1:ExternalInterfaceHeaderDto>
          <d4p1:CustomerId>0967bcf0-21b1-4fec-90d7-ff5e0a182cd9</d4p1:CustomerId>
          <d4p1:Id>ed8e3bd0-177b-49eb-a98e-afbf8d2f328f</d4p1:Id>
          <d4p1:Name>sample string 3</d4p1:Name>
        </d4p1:ExternalInterfaceHeaderDto>
      </d2p1:ExternalInterfaces>
      <d2p1:IdWS>1</d2p1:IdWS>
      <d2p1:Imei>sample string 10</d2p1:Imei>
      <d2p1:InitialEntryIntoService>2025-11-30T11:53:37.9032446+00:00</d2p1:InitialEntryIntoService>
      <d2p1:JobActivity>sample string 6</d2p1:JobActivity>
      <d2p1:KmEndOfLease>1</d2p1:KmEndOfLease>
      <d2p1:KmStartOfLease>1</d2p1:KmStartOfLease>
      <d2p1:Milestone>12</d2p1:Milestone>
      <d2p1:MilestoneAtAssignment>13</d2p1:MilestoneAtAssignment>
      <d2p1:MobileUnitId>e2691402-14b3-4838-badd-65c7f75c1ca3</d2p1:MobileUnitId>
      <d2p1:MobileUnitName>sample string 9</d2p1:MobileUnitName>
      <d2p1:NoGeoloc>true</d2p1:NoGeoloc>
      <d2p1:Renting>true</d2p1:Renting>
      <d2p1:ReservoirVolume>1</d2p1:ReservoirVolume>
      <d2p1:TachySpeedLimit>1</d2p1:TachySpeedLimit>
      <d2p1:TheoreticalConsumption>1.1</d2p1:TheoreticalConsumption>
      <d2p1:Tolerance>8</d2p1:Tolerance>
      <d2p1:TotalFuelUsed>11.1</d2p1:TotalFuelUsed>
      <d2p1:UtcEndOfLease>2025-11-30T11:53:37.9032446+00:00</d2p1:UtcEndOfLease>
      <d2p1:UtcMileageReport>2025-11-30T11:53:37.9032446+00:00</d2p1:UtcMileageReport>
      <d2p1:UtcStartOfLease>2025-11-30T11:53:37.9032446+00:00</d2p1:UtcStartOfLease>
      <d2p1:VIN>sample string 4</d2p1:VIN>
      <d2p1:VehicleState>Active</d2p1:VehicleState>
    </d2p1:VehicleLightDto>
    <d2p1:VehicleLightDto>
      <d2p1:Brand>sample string 18</d2p1:Brand>
      <d2p1:CompatibleDownload>true</d2p1:CompatibleDownload>
      <d2p1:CustomerId>0f8c253a-675b-4d4c-9904-4630bc20405c</d2p1:CustomerId>
      <d2p1:FuelName>sample string 20</d2p1:FuelName>
      <d2p1:FuelTypeId>1</d2p1:FuelTypeId>
      <d2p1:FuelTypeIdSynthesis>1</d2p1:FuelTypeIdSynthesis>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:IsFuelTypeConflict>true</d2p1:IsFuelTypeConflict>
      <d2p1:LicencePlate>sample string 15</d2p1:LicencePlate>
      <d2p1:Model>sample string 19</d2p1:Model>
      <d2p1:Name>sample string 16</d2p1:Name>
      <d2p1:State>Active</d2p1:State>
      <d2p1:VehicleId>b5e429b1-1b85-4cd3-9168-a95a8c8dfff9</d2p1:VehicleId>
      <d2p1:VehicleType>sample string 17</d2p1:VehicleType>
      <d2p1:AgencyAffiliationId>c7a9530f-2ee1-4f20-b595-cb67259f0a51</d2p1:AgencyAffiliationId>
      <d2p1:AgencyAffiliationName>sample string 2</d2p1:AgencyAffiliationName>
      <d2p1:CANFuelReportUtc>2025-11-30T11:53:37.9032446+00:00</d2p1:CANFuelReportUtc>
      <d2p1:CameraType>WITHOUT_CAMERA</d2p1:CameraType>
      <d2p1:CustomerGroupId>c70333a1-7439-4b3d-9a3b-20eab0a10d33</d2p1:CustomerGroupId>
      <d2p1:CustomerGroupName>sample string 3</d2p1:CustomerGroupName>
      <d2p1:ExternalInterfaceId>2387293f-5dcb-477b-ae22-b7acaef8891a</d2p1:ExternalInterfaceId>
      <d2p1:ExternalInterfaces xmlns:d4p1="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.ExternalInterface">
        <d4p1:ExternalInterfaceHeaderDto>
          <d4p1:CustomerId>0967bcf0-21b1-4fec-90d7-ff5e0a182cd9</d4p1:CustomerId>
          <d4p1:Id>ed8e3bd0-177b-49eb-a98e-afbf8d2f328f</d4p1:Id>
          <d4p1:Name>sample string 3</d4p1:Name>
        </d4p1:ExternalInterfaceHeaderDto>
        <d4p1:ExternalInterfaceHeaderDto>
          <d4p1:CustomerId>0967bcf0-21b1-4fec-90d7-ff5e0a182cd9</d4p1:CustomerId>
          <d4p1:Id>ed8e3bd0-177b-49eb-a98e-afbf8d2f328f</d4p1:Id>
          <d4p1:Name>sample string 3</d4p1:Name>
        </d4p1:ExternalInterfaceHeaderDto>
      </d2p1:ExternalInterfaces>
      <d2p1:IdWS>1</d2p1:IdWS>
      <d2p1:Imei>sample string 10</d2p1:Imei>
      <d2p1:InitialEntryIntoService>2025-11-30T11:53:37.9032446+00:00</d2p1:InitialEntryIntoService>
      <d2p1:JobActivity>sample string 6</d2p1:JobActivity>
      <d2p1:KmEndOfLease>1</d2p1:KmEndOfLease>
      <d2p1:KmStartOfLease>1</d2p1:KmStartOfLease>
      <d2p1:Milestone>12</d2p1:Milestone>
      <d2p1:MilestoneAtAssignment>13</d2p1:MilestoneAtAssignment>
      <d2p1:MobileUnitId>e2691402-14b3-4838-badd-65c7f75c1ca3</d2p1:MobileUnitId>
      <d2p1:MobileUnitName>sample string 9</d2p1:MobileUnitName>
      <d2p1:NoGeoloc>true</d2p1:NoGeoloc>
      <d2p1:Renting>true</d2p1:Renting>
      <d2p1:ReservoirVolume>1</d2p1:ReservoirVolume>
      <d2p1:TachySpeedLimit>1</d2p1:TachySpeedLimit>
      <d2p1:TheoreticalConsumption>1.1</d2p1:TheoreticalConsumption>
      <d2p1:Tolerance>8</d2p1:Tolerance>
      <d2p1:TotalFuelUsed>11.1</d2p1:TotalFuelUsed>
      <d2p1:UtcEndOfLease>2025-11-30T11:53:37.9032446+00:00</d2p1:UtcEndOfLease>
      <d2p1:UtcMileageReport>2025-11-30T11:53:37.9032446+00:00</d2p1:UtcMileageReport>
      <d2p1:UtcStartOfLease>2025-11-30T11:53:37.9032446+00:00</d2p1:UtcStartOfLease>
      <d2p1:VIN>sample string 4</d2p1:VIN>
      <d2p1:VehicleState>Active</d2p1:VehicleState>
    </d2p1:VehicleLightDto>
  </Vehicles>
</CustomerGroupDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseDto

ResponseDto
NameDescriptionTypeAdditional information
IsValid

Valdie ?

boolean

None.

Errors

liste d'erreurs

Collection of string

None.

Data

Objet à retourner

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "IsValid": true,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "Data": {}
}

application/xml, text/xml

Sample:
<ResponseDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto">
  <Data />
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <IsValid>true</IsValid>
</ResponseDto>