API version v1

Method reference

POST /projects/{id}/reserve

Reserve or release equipment for a project

Scope: equipment:write

Authenticate with Authorization: Bearer rv_live_…; see authentication.

Request

curl -X POST "https://api.rentevio.ru/api/public/v1/projects/00000000-0000-0000-0000-000000000000/reserve" \
  -H "Authorization: Bearer rv_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: …" \
  -d '{
  "equipment": [
    {
      "equipment_id": "00000000-0000-0000-0000-000000000000",
      "quantity": 0
    }
  ],
  "start_date": "string",
  "end_date": "string",
  "reserve": true,
  "holder_type": "string",
  "holder_id": "string"
}'

Parameters

ParameterTypeRequiredDescription
idstringyes—

Request body

FieldTypeRequiredDescription
equipmentarrayyes—
start_datestringyes—
end_datestringyes—
reservebooleanno—
holder_typestringno—
holder_idstringno—
{
  "equipment": [
    {
      "equipment_id": "00000000-0000-0000-0000-000000000000",
      "quantity": 0
    }
  ],
  "start_date": "string",
  "end_date": "string",
  "reserve": true,
  "holder_type": "string",
  "holder_id": "string"
}

Response

{
  "success": true,
  "data": [
    {
      "equipment_id": "00000000-0000-0000-0000-000000000000",
      "success": true,
      "error": "string"
    }
  ]
}

Errors

CodeHTTPWhen
VALIDATION400Invalid request parameters
UNAUTHORIZED401Invalid, missing, revoked, or expired API key
FORBIDDEN403The key does not have the required scope
NextReconcile warehouse reservations with the project lineup
Was this helpful?