---
updatedAt: 2026-11-06T08:14:40.000Z
agentTools:
  projectIndex: https://roappua.readme.io/llms.txt
---

# Оновити замовлення

Оновіть вже створене замовлення.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "ro-app-public-api-v2_1",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.roapp.io/v2"
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "api_key": []
    }
  ],
  "paths": {
    "/orders/{order_id}": {
      "patch": {
        "summary": "Оновити замовлення",
        "description": "Оновіть вже створене замовлення.",
        "operationId": "update-order",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "description": "ID замовлення",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "branch_id": {
                    "type": "integer",
                    "description": "ID локації",
                    "format": "int32"
                  },
                  "order_type_id": {
                    "type": "integer",
                    "description": "ID типу кошторису/замовлення",
                    "format": "int32"
                  },
                  "manager_id": {
                    "type": "integer",
                    "description": "ID менеджера",
                    "format": "int32"
                  },
                  "assignee_id": {
                    "type": "integer",
                    "description": "ID виконавця",
                    "format": "int32"
                  },
                  "asset_id": {
                    "type": "integer",
                    "description": "ID виробу",
                    "format": "int32"
                  },
                  "client_id": {
                    "type": "integer",
                    "description": "ID клієнта (особи/організації)",
                    "format": "int32"
                  },
                  "payer_id": {
                    "type": "integer",
                    "description": "ID платника (особи/організації)",
                    "format": "int32"
                  },
                  "ad_campaign_id": {
                    "type": "integer",
                    "description": "ID рекламної кампанії",
                    "format": "int32"
                  },
                  "scheduled_for": {
                    "type": "string",
                    "description": "Дата і час \"Заплановано з\" (ISO 8601)",
                    "format": "date-time"
                  },
                  "scheduled_to": {
                    "type": "string",
                    "description": "Дата і час \"Заплановано до\" (ISO 8601)",
                    "format": "date-time"
                  },
                  "resource_id": {
                    "type": "integer",
                    "description": "ID ресурсу",
                    "format": "int32"
                  },
                  "malfunction": {
                    "type": "string",
                    "description": "Опис несправності"
                  },
                  "manager_notes": {
                    "type": "string",
                    "description": "Нотатки менеджера"
                  },
                  "engineer_notes": {
                    "type": "string",
                    "description": "Нотатки виконавця"
                  },
                  "resume": {
                    "type": "string",
                    "description": "Висновок / рекомендації клієнту"
                  },
                  "estimated_price": {
                    "type": "string",
                    "description": "Орієнтовна ціна або діапазон цін"
                  },
                  "due_date": {
                    "type": "string",
                    "description": "Кінцевий термін замовлення (ISO 8601)",
                    "format": "date-time"
                  },
                  "urgent": {
                    "type": "boolean",
                    "description": "Чи є замовлення терміновим?"
                  },
                  "custom_fields": {
                    "type": "string",
                    "description": "Користувальницькі поля у форматі {\"f123\": \"value\", \"f234\": \"value\"}, де \"f123\" та \"f234\" – це id користувальницьких полів.",
                    "format": "json"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```