---
updatedAt: 2026-02-04T12:37:22.000Z
agentTools:
  projectIndex: https://apidocs.officient.io/llms.txt
---

# Edit vehicle

Scope required: basics:write

Fuel type used. Can either be "", "gas", "diesel", "electric", fuel\_cells", "natural\_gas", "lpg", "hybrid\_diesel", "hybrid\_gas", "fake\_hybrid\_diesel", "fake\_hybrid\_gas"

Contract types: Can either be "", "buy", "hire", "op\_lease" or "fin\_lease"

Fields 'plate' and 'fuel' are only required for types 'car' and 'bike'.

Field 'end\_date\_previously\_assigned\_employee' is only required when the integration requires it. (format : d/m/Y 18/01/2023)

The 'commissioning\_date' field uses the format: d/m/Y (e.g., 18/01/2023)

Field utility\_vehicle can be either : 1 (Yes), 0 (No), -1 (Unknown)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "officient-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.officient.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/1.0/fleet/{vehicle_id}": {
      "patch": {
        "summary": "Edit vehicle",
        "description": "",
        "operationId": "edit-vehicle",
        "parameters": [
          {
            "name": "vehicle_id",
            "in": "path",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"success\": 1\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"status_code\": 400,\n    \"reason_phrase\": \"Employee not found or you have no access.\"\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "status_code": {
                          "type": "integer",
                          "example": 400,
                          "default": 0
                        },
                        "reason_phrase": {
                          "type": "string",
                          "example": "Vehicle not found or you have no access."
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status_code": {
                          "type": "integer",
                          "example": 400,
                          "default": 0
                        },
                        "reason_phrase": {
                          "type": "string",
                          "example": "'fuel' should either be 'gas', 'diesel', 'electric', 'fuel_cells', 'natural_gas' or ''"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status_code": {
                          "type": "integer",
                          "example": 400,
                          "default": 0
                        },
                        "reason_phrase": {
                          "type": "string",
                          "example": "'contract_type' should either be 'buy', 'hire', 'op_lease', 'fin_lease' or ''"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status_code": {
                          "type": "integer",
                          "example": 400,
                          "default": 0
                        },
                        "reason_phrase": {
                          "type": "string",
                          "example": "Employee not found or you have no access."
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "http",
              "code": "{\n\t\"owner_id\": 21001,\n\t\"brand\": \"Audi\",\n\t\"model\": \"A7\",\n\t\"fuel\": \"gas\",\n\t\"plate\": \"1-ABC-123\",\n\t\"hp\": 335,\n\t\"co2_g_km\": 117,\n\t\"chassis_number\": \"123456789\",\n\t\"color\": \"black\",\n\t\"specifics\": \"\",\n\t\"supplier\": \"Audi\",\n\t\"contract_type\": \"op_lease\",\n\t\"yearly_cost_base\": \"14000\",\n\t\"yearly_cost_operational\": \"0\",\n  \"catalogue_value\": \"67000\",\n\t\"commissioning_date\" : \"18/01/2023\",\n  \"utility_vehicle\": 1,\n  \"co2_g_km_wltp\": \"50\",\n\t\"co2_g_km\": \"50\"\n}"
            }
          ],
          "samples-languages": [
            "http"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```