---
updatedAt: 2025-06-05T21:41:23.000Z
agentTools:
  projectIndex: https://apidocs.officient.io/llms.txt
---

# Edit custom field value

Update the custom field value for a specific object (either a person, car, asset, contract,..)

Scope required: custom.fields:write

# 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/custom_fields/{custom_field_id}/{object_type}/{object_id}": {
      "patch": {
        "summary": "Edit custom field value",
        "description": "Update the custom field value for a specific object (either a person, car, asset, contract,..)",
        "operationId": "edit-custom-field-value",
        "parameters": [
          {
            "name": "custom_field_id",
            "in": "path",
            "description": "Id of the custom field",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "object_type",
            "in": "path",
            "description": "type of object to be edited. It can be: employee, asset, car, contract, software_license, training_participant, training",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "object_id",
            "in": "path",
            "description": "ID of the object to be edited",
            "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\": \"This custom field is an integer, and the given value was not an integer.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status_code": {
                      "type": "integer",
                      "example": 400,
                      "default": 0
                    },
                    "reason_phrase": {
                      "type": "string",
                      "example": "This custom field is an integer, and the given value was not an integer."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "http",
              "code": "{\n  \"value\": \"xyz\"\n}"
            }
          ],
          "samples-languages": [
            "http"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```