---
updatedAt: 2025-09-11T20:07:31.000Z
agentTools:
  projectIndex: https://docs.makaira.io/llms.txt
---

# patch

Overwrites values of an record in the persistence layer. Only the values which should be changed need to be sent.

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "Makaira Persistence Layer API",
    "version": "1.0",
    "contact": {
      "name": "Makaira GmbH",
      "url": "https://www.makaira.io/",
      "email": "support@makaira.io"
    },
    "description": "API of the persistence layer of Makaira"
  },
  "servers": [
    {
      "url": "https://{yourinstance}.makaira.io"
    }
  ],
  "paths": {
    "/persistence/revisions": {
      "patch": {
        "summary": "",
        "description": "Overwrites values of an record in the persistence layer. Only the values which should be changed need to be sent.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "language_id": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "description": "Data structure of Makaira types"
                  }
                }
              },
              "examples": {
                "Patch the title of a record": {
                  "value": {
                    "language_id": "en",
                    "data": {
                      "id": "150",
                      "title": "Super T-Shirt Emma"
                    }
                  }
                },
                "Patch the price of a record": {
                  "value": {
                    "language_id": "en",
                    "data": {
                      "id": "153",
                      "price": 8
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/response"
                },
                "examples": {
                  "ok": {
                    "value": {
                      "status": "ok",
                      "data": "[]"
                    }
                  },
                  "error": {
                    "value": {
                      "status": "error",
                      "message": "Validation failed.",
                      "errors": {
                        "field": "languageId",
                        "message": "This value should not be blank.",
                        "value": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "message: Invalid credentials."
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/instance"
          },
          {
            "$ref": "#/components/parameters/customer"
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "response": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Result of the call",
            "enum": [
              "ok",
              "error"
            ]
          },
          "message": {
            "type": "string",
            "description": "If an error occurs you the message contains a description"
          },
          "data": {
            "type": "object"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string",
                  "description": "The field where the error occured"
                },
                "message": {
                  "type": "string",
                  "description": "Describes the error"
                },
                "value": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "parameters": {
      "customer": {
        "in": "query",
        "name": "customer",
        "required": true,
        "description": "Makaira customer name",
        "schema": {
          "type": "string"
        }
      },
      "instance": {
        "in": "query",
        "name": "instance",
        "required": true,
        "description": "Makaira instance name",
        "schema": {
          "type": "string"
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```