Resources

A resource is an object that can be bookable on the Kalenda platform. Resources can be anything from a meeting room to a piece of equipment. Resources can be created, updated, and deleted using the Kalenda API.

Examples of resources include:

  • Hotel rooms
  • Equipment
  • Vehicles
  • Parking spaces
  • People

Endpoints

GET /v1/resources
POST /v1/resources
GET /v1/resources/{id}
PUT /v1/resources/{id}
DELETE /v1/resources/{id}

Resource Object

A resource object represents a resource on the Kalenda platform. It has the following properties:

  • id (string): The unique identifier for the resource.
  • name (string): The name of the resource.
  • description (string): A description of the resource.

Resource Object

{
  "id": "f0acfb18-47ab-4f63-900b-0db374328051",
  "name": "Meeting Room 1",
  "description": "A small meeting room"
}

Creating a Resource

To create a resource, send a POST request to the /v1/resources endpoint with the following JSON payload:

POST /v1/resources

{
  "name": "Meeting Room 1",
  "description": "A small meeting room"
}

Updating a Resource

To update a resource, send a PUT request to the /v1/resources/{id} endpoint with the following JSON payload:

PUT /v1/resources/{id}

{
  "name": "Meeting Room 2",
  "description": "A medium meeting room"
}

Deleting a Resource

To delete a resource, send a DELETE request to the /v1/resources/{id} endpoint.

DELETE /v1/resources/{id}

curl -X DELETE https://api.kalenda.io/v1/resources/f0acfb18-47ab-4f63-900b-0db374328051