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
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | — |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
equipment | array | yes | — |
start_date | string | yes | — |
end_date | string | yes | — |
reserve | boolean | no | — |
holder_type | string | no | — |
holder_id | string | no | — |
{
"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
| Code | HTTP | When |
|---|---|---|
VALIDATION | 400 | Invalid request parameters |
UNAUTHORIZED | 401 | Invalid, missing, revoked, or expired API key |
FORBIDDEN | 403 | The key does not have the required scope |
Was this helpful?