API version v1
Method reference
PATCH /projects/{id}/schedule/{entry_id}
Update a schedule entry
Scope: projects:write
Authenticate with Authorization: Bearer rv_live_…; see authentication.
Request
curl -X PATCH "https://api.rentevio.ru/api/public/v1/projects/00000000-0000-0000-0000-000000000000/schedule/00000000-0000-0000-0000-000000000000" \
-H "Authorization: Bearer rv_live_…" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: …" \
-d '{
"title": "string",
"description": "string",
"entry_type": "string",
"start_datetime": "string",
"end_datetime": "string",
"equipment_ids": [
"00000000-0000-0000-0000-000000000000"
],
"staff_ids": [
"00000000-0000-0000-0000-000000000000"
],
"color": "string",
"sort_order": 0
}'
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | — |
entry_id | string | yes | — |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
title | string | yes | — |
description | string | no | — |
entry_type | string | yes | — |
start_datetime | string | yes | — |
end_datetime | string | yes | — |
equipment_ids | array | no | — |
staff_ids | array | no | — |
color | string | no | — |
sort_order | integer | no | — |
{
"title": "string",
"description": "string",
"entry_type": "string",
"start_datetime": "string",
"end_datetime": "string",
"equipment_ids": [
"00000000-0000-0000-0000-000000000000"
],
"staff_ids": [
"00000000-0000-0000-0000-000000000000"
],
"color": "string",
"sort_order": 0
}
Response
{
"success": true,
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"project_id": "00000000-0000-0000-0000-000000000000",
"title": "string",
"description": "string",
"entry_type": "string",
"start_datetime": "string",
"end_datetime": "string",
"equipment_ids": [
"00000000-0000-0000-0000-000000000000"
],
"staff_ids": [
"00000000-0000-0000-0000-000000000000"
],
"color": "string",
"sort_order": 0
}
}
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 |
NOT_FOUND | 404 | Resource not found or does not belong to the key’s company |
Was this helpful?