Add Maintenance Status Policy (POST)
Adds a new maintenance status policy.
http://api2.carmd.com/v2.0/maintstatuspolicy
Request Data
{
"name": "sm policy2",
"minMileage" : "10000",
"maxMileage" : "20000"
}
The min/max mileage is the range this status applies to a maintenance item with 0(zero) as the current assigned mileage of the item. Negative values are mileages prior the maintenance due mileage, while positive mileages are past the maintenance due mileage.
For example, a default yellow is +-100, thus minMileage=-100 and maxMileage=100.
In cases of overlapping status policies, the newer policy is always accepted over the older one.
Field | Type | Notes |
name | string | Required. The name of this policy. |
minMileage | integer | Required. The minimum mileage range for this status. |
maxMileage | integer | Required. The maximum mileage range for this status. |
Response
{
"message": {
"code": 0,
"message": "OK",
"credentials": "Valid",
"version": "v2.0.0",
"account": "Free",
"method": "Add Maintenance Status Policy",
"action": "POST",
"counter": 216
},
"data": {
"maintStatPolicyID": "54fd52c83c108153ecafd582",
"name": "sm policy2",
"minMileage": 10000,
"maxMileage": 20000,
"dateCreated": "2015-03-09T07:59:04.771Z",
"updateDate": null
}
}
Field | Type | Notes |
message | Message | |
data | MaintStatusPolicy | Object is created, use maintStatPolicyID to assign this policy to organizations, fleets or vehicles. |
Message object
Field | Type | Notes |
code | string | Message code. |
message | string | Ok or Failed. |
credentials | string | Valid or Invalid. |
version | string | v2.0.0 |
account | string | Free or Premium |
method | string | Name of the API called |
action | string | returns a GET, POST, PUT, DELETE |
counter | integer | Counter for this request. Increments by one for every request made. This is only important for free users who have a limited number of API requests. |
MaintStatusPolicy object
Field | Type | Notes |
maintStatPolicyID | string | The ID of this policy. |
name | string | The name of this policy. |
minMileage | integer | The minimum mileage range for this status. |
maxMileage | integer | The maximum mileage range for this status. |
dateCreated | string | Date this policy was created. |
updatedDate | string | Date this policy was last updated. |
Letztendlich sollen sie zusammen essay-schreiben.de/ auf die verfasste arbeit stolz sein und den erfolg feiern