API version v1

Method reference

POST /projects/{id}/schedule

Create a schedule entry

Scope: projects: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/schedule" \
  -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

ParameterTypeRequiredDescription
idstringyes—

Request body

FieldTypeRequiredDescription
titlestringyes—
descriptionstringno—
entry_typestringyes—
start_datetimestringyes—
end_datetimestringyes—
equipment_idsarrayno—
staff_idsarrayno—
colorstringno—
sort_orderintegerno—
{
  "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

CodeHTTPWhen
VALIDATION400Invalid request parameters
UNAUTHORIZED401Invalid, missing, revoked, or expired API key
FORBIDDEN403The key does not have the required scope
NextUpdate a schedule entry
Was this helpful?