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

# put

Put one or more items to the persistence layer. The data value is and array of Makaira types see https://docs.makaira.io/docs/other-systems

# 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": {
      "put": {
        "summary": "",
        "description": "Put one or more items to the persistence layer. The data value is and array of Makaira types see https://docs.makaira.io/docs/other-systems",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "items",
                  "import_timestamp"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source_revision": {
                          "type": "string"
                        },
                        "delete": {
                          "type": "boolean"
                        },
                        "language_id": {
                          "type": "string"
                        },
                        "data": {
                          "type": "object",
                          "description": "Data structure of Makaira types"
                        }
                      }
                    }
                  },
                  "import_timestamp": {
                    "type": "string"
                  },
                  "source_identifier": {
                    "description": "An identifier that indicates the source where the data came from. By using this we can import data from different sources.",
                    "type": "string"
                  },
                  "rebuild": {
                    "description": "This indicates if this is a rebuilding request or not",
                    "nullable": true,
                    "type": "boolean"
                  }
                }
              },
              "examples": {
                "Put one item": {
                  "value": {
                    "items": [
                      {
                        "source_revision": "1",
                        "delete": false,
                        "language_id": "en",
                        "data": {
                          "id": "150",
                          "type": "product",
                          "title": "T-Shirt Emma",
                          "ean": "48690A",
                          "isVariant": false,
                          "active": true,
                          "stock": 25,
                          "insert": "2019-09-27 15:34:42",
                          "...": "<more values see Makaira data types>"
                        }
                      }
                    ],
                    "import_timestamp": "2022-07-13 01:00:00",
                    "source_identifier": "this_is_an_identifier",
                    "rebuild": false
                  }
                },
                "Put multiple items": {
                  "value": {
                    "items": [
                      {
                        "source_revision": "1",
                        "delete": false,
                        "language_id": "en",
                        "data": {
                          "id": "1",
                          "type": "product",
                          "title": "T-Shirt Emma",
                          "ean": "48690A",
                          "isVariant": false,
                          "active": true,
                          "stock": 25,
                          "insert": "2019-09-27 15:34:42",
                          "...": "<more values see Makaira data types>"
                        }
                      },
                      {
                        "source_revision": "2",
                        "delete": false,
                        "language_id": "en",
                        "data": {
                          "id": "153",
                          "parent_id": "150",
                          "type": "product",
                          "title": "T-Shirt Emma red",
                          "ean": "48690A",
                          "isVariant": true,
                          "active": true,
                          "stock": 25,
                          "price": 9.99,
                          "insert": "2019-09-27 15:34:42",
                          "...": "<more values see Makaira data types>"
                        }
                      }
                    ],
                    "import_timestamp": "2022-07-13 01:00:00",
                    "source_identifier": "this_is_an_identifier",
                    "rebuild": false
                  }
                },
                "Delete one item": {
                  "value": {
                    "items": [
                      {
                        "language_id": "en",
                        "delete": true,
                        "data": {
                          "id": "150",
                          "type": "product"
                        }
                      }
                    ],
                    "import_timestamp": "2022-07-13 01:00:00",
                    "source_identifier": "this_is_an_identifier",
                    "rebuild": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/response"
                },
                "examples": {
                  "ok": {
                    "value": {
                      "status": "ok",
                      "data": "[]"
                    }
                  },
                  "single error": {
                    "value": {
                      "status": "error",
                      "message": "Validation failed.",
                      "errors": {
                        "field": "items[0].data.id",
                        "message": "This field is missing.",
                        "value": null
                      }
                    }
                  },
                  "multiple errors": {
                    "value": {
                      "status": "error",
                      "message": "Validation failed.",
                      "errors": [
                        {
                          "field": "items[0].data.id",
                          "message": "This field is missing.",
                          "value": null
                        },
                        {
                          "field": "items[1].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
  }
}
```