API version v1

Method reference

POST /projects

Create a project

Scope: projects:write

Authenticate with Authorization: Bearer rv_live_…; see authentication.

Request

curl -X POST "https://api.rentevio.ru/api/public/v1/projects" \
  -H "Authorization: Bearer rv_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: …" \
  -d '{
  "name": "string",
  "client_id": "00000000-0000-0000-0000-000000000000",
  "start_date": "string",
  "end_date": "string",
  "start_time": "string",
  "end_time": "string",
  "venue_id": "00000000-0000-0000-0000-000000000000",
  "description": "string",
  "internal_notes": "string",
  "tags": [
    "string"
  ],
  "equipment": [
    {
      "equipment_id": "00000000-0000-0000-0000-000000000000",
      "quantity": 0,
      "status": "string"
    }
  ],
  "staff": [
    {
      "staff_profile_id": "00000000-0000-0000-0000-000000000000",
      "role": "string",
      "start_date": "string",
      "end_date": "string",
      "start_datetime": "string",
      "end_datetime": "string",
      "pay_basis": "string",
      "client_rate": 0,
      "cost_rate": 0,
      "rate_per_hour": 0,
      "notes": "string"
    }
  ],
  "transport": [
    {
      "transport_id": "00000000-0000-0000-0000-000000000000",
      "start_date": "string",
      "end_date": "string",
      "start_datetime": "string",
      "end_datetime": "string",
      "comment": "string"
    }
  ]
}'

Request body

FieldTypeRequiredDescription
namestringyes—
client_idstringno—
start_datestringno—
end_datestringno—
start_timestringno—
end_timestringno—
venue_idstringno—
descriptionstringno—
internal_notesstringno—
tagsarrayno—
equipmentarrayno—
staffarrayno—
transportarrayno—
{
  "name": "string",
  "client_id": "00000000-0000-0000-0000-000000000000",
  "start_date": "string",
  "end_date": "string",
  "start_time": "string",
  "end_time": "string",
  "venue_id": "00000000-0000-0000-0000-000000000000",
  "description": "string",
  "internal_notes": "string",
  "tags": [
    "string"
  ],
  "equipment": [
    {
      "equipment_id": "00000000-0000-0000-0000-000000000000",
      "quantity": 0,
      "status": "string"
    }
  ],
  "staff": [
    {
      "staff_profile_id": "00000000-0000-0000-0000-000000000000",
      "role": "string",
      "start_date": "string",
      "end_date": "string",
      "start_datetime": "string",
      "end_datetime": "string",
      "pay_basis": "string",
      "client_rate": 0,
      "cost_rate": 0,
      "rate_per_hour": 0,
      "notes": "string"
    }
  ],
  "transport": [
    {
      "transport_id": "00000000-0000-0000-0000-000000000000",
      "start_date": "string",
      "end_date": "string",
      "start_datetime": "string",
      "end_datetime": "string",
      "comment": "string"
    }
  ]
}

Response

{
  "success": true,
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "number": "string",
    "name": "string",
    "status": "draft",
    "client_id": "00000000-0000-0000-0000-000000000000",
    "client_name": "string",
    "start_date": "string",
    "end_date": "string",
    "start_time": "string",
    "end_time": "string",
    "venue_id": "00000000-0000-0000-0000-000000000000",
    "venue_name": "string",
    "description": "string",
    "tags": [
      "string"
    ],
    "equipment": [
      {}
    ],
    "staff": [
      {}
    ],
    "transport": [
      {}
    ],
    "created_at": "string",
    "updated_at": "string"
  }
}

Errors

CodeHTTPWhen
VALIDATION400Invalid request parameters
UNAUTHORIZED401Invalid, missing, revoked, or expired API key
FORBIDDEN403The key does not have the required scope
NextProject by ID
Was this helpful?