API version v1

Method reference

PATCH /equipment/{id}/status

Change equipment status

Scope: equipment:write

Authenticate with Authorization: Bearer rv_live_…; see authentication.

Request

curl -X PATCH "https://api.rentevio.ru/api/public/v1/equipment/00000000-0000-0000-0000-000000000000/status" \
  -H "Authorization: Bearer rv_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: …" \
  -d '{
  "status": "string",
  "comment": "string"
}'

Parameters

ParameterTypeRequiredDescription
idstringyes—

Request body

FieldTypeRequiredDescription
statusstringyes—
commentstringno—
{
  "status": "string",
  "comment": "string"
}

Response

{
  "success": true,
  "data": {
    "id": "5268d91f-f2a0-4516-9086-d8ac9e5b4634",
    "category_id": "94b83f83-bb99-49ee-baa1-0fa80c7706da",
    "category_name": "Видео",
    "name": "Shure SM58",
    "article": "AU-SM58",
    "accounting_type": "serial",
    "unit": "шт",
    "status": "in_stock",
    "price_day": 800,
    "price_week": 4200,
    "price_month": 14000,
    "deposit_amount": 0,
    "manufacturer": "Shure",
    "model": "SM58",
    "serial_number": "SM58-0001",
    "quantity_total": 12,
    "quantity_available": 9,
    "barcode": "RENTEVIO://EQ/5268d91f",
    "tags": [
      "вокал",
      "микрофон"
    ],
    "description": "Динамический вокальный микрофон",
    "unit_count": 12
  }
}

Errors

CodeHTTPWhen
VALIDATION400Invalid request parameters
UNAUTHORIZED401Invalid, missing, revoked, or expired API key
FORBIDDEN403The key does not have the required scope
NOT_FOUND404Resource not found or does not belong to the key’s company
NextReserve or release equipment for a project
Was this helpful?