Saves custom Mile
This Java function saves custom mileage for a dealer and handles migration-related checks.
Path Parameters
dealerUUID string required
The dealerUuid
parameter in the saveCustomMiles
method is a path variable representing the
unique identifier of a dealer. It is extracted from the URL path and used to identify the specific dealer for whom
the custom mileage is being saved.
application/json
Request Body required
The saveCustomMilesRequest
parameter in the saveCustomMiles
method is of type
SaveCustomMilesRequest
. It is annotated with @RequestBody
, indicating that the data for this parameter will be
extracted from the request body of the HTTP POST request.
requesterUserUUID string
name string
mileageDTOList object[]
Responses
- 200
- 400
- 401
- 403
- 500
A ResponseEntity
containing a SaveCustomMileageResponse
object is being returned from this method.
*/*
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
statusCode int32
apiRequestId string
mileageName string
mileageUuid string
{
"errors": [
{
"errorName": "string",
"errorMessage": "string",
"errorCode": 0
}
],
"warnings": [
{
"warningCode": "string",
"warningTitle": "string",
"warningMessage": "string"
}
],
"statusCode": 0,
"apiRequestId": "string",
"mileageName": "string",
"mileageUuid": "string"
}
Bad Request
*/*
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
statusCode int32
apiRequestId string
{
"errors": [
{
"errorName": "string",
"errorMessage": "string",
"errorCode": 0
}
],
"warnings": [
{
"warningCode": "string",
"warningTitle": "string",
"warningMessage": "string"
}
],
"statusCode": 0,
"apiRequestId": "string"
}
Unauthorized
*/*
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
statusCode int32
apiRequestId string
{
"errors": [
{
"errorName": "string",
"errorMessage": "string",
"errorCode": 0
}
],
"warnings": [
{
"warningCode": "string",
"warningTitle": "string",
"warningMessage": "string"
}
],
"statusCode": 0,
"apiRequestId": "string"
}
Forbidden
*/*
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
statusCode int32
apiRequestId string
{
"errors": [
{
"errorName": "string",
"errorMessage": "string",
"errorCode": 0
}
],
"warnings": [
{
"warningCode": "string",
"warningTitle": "string",
"warningMessage": "string"
}
],
"statusCode": 0,
"apiRequestId": "string"
}
Internal Server Error
*/*
Schema
Example (from schema)
Schema
errors object[]
warnings object[]
statusCode int32
apiRequestId string
{
"errors": [
{
"errorName": "string",
"errorMessage": "string",
"errorCode": 0
}
],
"warnings": [
{
"warningCode": "string",
"warningTitle": "string",
"warningMessage": "string"
}
],
"statusCode": 0,
"apiRequestId": "string"
}
POST /v1/dealers/:dealerUUID/mileages
Authorization
name: basicAuthtype: httpin: headerscheme: basic
Request
Request
curl / cURL
curl -L -X POST '/opcodes/v1/dealers/:dealerUUID/mileages' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"requesterUserUUID": "string",
"name": "string",
"mileageDTOList": [
{
"startMileage": 0,
"repeatInterval": 0,
"endMileage": 0
}
]
}'
python / requests
curl -L -X POST '/opcodes/v1/dealers/:dealerUUID/mileages' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"requesterUserUUID": "string",
"name": "string",
"mileageDTOList": [
{
"startMileage": 0,
"repeatInterval": 0,
"endMileage": 0
}
]
}'
go / native
curl -L -X POST '/opcodes/v1/dealers/:dealerUUID/mileages' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"requesterUserUUID": "string",
"name": "string",
"mileageDTOList": [
{
"startMileage": 0,
"repeatInterval": 0,
"endMileage": 0
}
]
}'
nodejs / axios
curl -L -X POST '/opcodes/v1/dealers/:dealerUUID/mileages' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"requesterUserUUID": "string",
"name": "string",
"mileageDTOList": [
{
"startMileage": 0,
"repeatInterval": 0,
"endMileage": 0
}
]
}'
ruby / Net::HTTP
curl -L -X POST '/opcodes/v1/dealers/:dealerUUID/mileages' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"requesterUserUUID": "string",
"name": "string",
"mileageDTOList": [
{
"startMileage": 0,
"repeatInterval": 0,
"endMileage": 0
}
]
}'
csharp / RestSharp
curl -L -X POST '/opcodes/v1/dealers/:dealerUUID/mileages' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"requesterUserUUID": "string",
"name": "string",
"mileageDTOList": [
{
"startMileage": 0,
"repeatInterval": 0,
"endMileage": 0
}
]
}'
php / cURL
curl -L -X POST '/opcodes/v1/dealers/:dealerUUID/mileages' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"requesterUserUUID": "string",
"name": "string",
"mileageDTOList": [
{
"startMileage": 0,
"repeatInterval": 0,
"endMileage": 0
}
]
}'
java / OkHttp
curl -L -X POST '/opcodes/v1/dealers/:dealerUUID/mileages' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"requesterUserUUID": "string",
"name": "string",
"mileageDTOList": [
{
"startMileage": 0,
"repeatInterval": 0,
"endMileage": 0
}
]
}'
powershell / RestMethod
curl -L -X POST '/opcodes/v1/dealers/:dealerUUID/mileages' \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
--data-raw '{
"requesterUserUUID": "string",
"name": "string",
"mileageDTOList": [
{
"startMileage": 0,
"repeatInterval": 0,
"endMileage": 0
}
]
}'