Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt

Use this file to discover all available pages before exploring further.

Update calendar resource by ID
PUT https://services.leadconnectorhq.com/calendars/resources/{resourceType}/{id}

Autorizacion

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.

Path parameters

resourceType
string
required
Calendar Resource Type
id
string
required
Calendar Resource ID

Body

locationId
string
name
string
description
string
quantity
number
Quantity of the equipment.
outOfService
number
Quantity of the out of service equipment.
capacity
number
Capacity of the room.
calendarIds
string[]
Service calendar IDs to be mapped with the resource.One equipment can only be mapped with one service calendar.One room can be mapped with multiple service calendars.
isActive
boolean

Respuestas

locationId
string
required
Account ID of the resource
name
string
default:"yoga room"
required
Name of the resource
resourceType
string
required
Posibles valores: ‘equipments’, ‘rooms’
isActive
boolean
required
Whether the resource is active
description
string
Description of the resource
quantity
number
Quantity of the resource
outOfService
number
default:"0"
Indicates if the resource is out of service
capacity
number
default:"85"
Capacity of the resource
{
  "locationId": "string",
  "name": "yoga room",
  "resourceType": "equipments",
  "isActive": true,
  "description": "string",
  "quantity": 0,
  "outOfService": 0,
  "capacity": 85
}
{}
{}

Ejemplo

curl -X PUT 'https://services.leadconnectorhq.com/calendars/resources/YOUR_resourceType/YOUR_id' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "locationId": "string",
  "name": "string",
  "description": "string",
  "quantity": 0,
  "outOfService": 0,
  "capacity": 0,
  "calendarIds": [
    "string"
  ],
  "isActive": true
}'