# [Resources](https://dayschedule.com/docs/api#tag/Resources) ## Get Resources To fetch all the resources (event, webinar, services etc) ```js dayschedule.resources.list(); // To fetch a particular user resources // dayschedule.resources.list({user_id : xxx}); ``` **Response:** ```json { "offset": 0, "limit": 20, "total": 40, "returned": 20, "result": [{ "color": "#006b75", "payment": { "is_enabled": false, "gateways": [ "razorpay" ] }, "org_id": 1117, "page_id": 1000, "user_id": 3241, "name": "Test Resource", "slug": "/test-resource", "type": "event", "schedule_id": 39127, "language": "en-US", "description": "Add description for this event", "is_enabled": true, "booking_url": "https://your-domain.dayschedule.com", "rank": 1, "created_at": "2022-12-22T11:02:54.237Z", "updated_at": "2023-09-12T06:42:21.481Z", "durations": [ { "type": "minutes", "value": 30 } ], "prices": [ { "name": "Test 1", "duration": "30m", "amount": 10, "currency": "INR" } ], "is_template": false, "id": "63a4395eago29006345f7b52" }] } ``` ## Get Resource By Id To get an event, webinar or service by Id ```js dayschedule.resources.get(resource_id) ``` **Response:** ```json { "event_type": "one_on_one", "notice": { "type": "days", "value": 0 }, "durations": [ { "type": "minutes", "value": 30 } ], "slots": { "type": "minutes", "value": 30 }, "color": "#0052cc", "capacity": { "is_unlimited": true, "is_public": false, "max": 10, "type": "perday" }, "break": { "after": 0, "before": 0 }, "period": { "type": "calendar_days", "days": 60, "specific": [] }, "payment": { "is_enabled": false, "gateways": [] }, "prices": [], "members": [], "org_id": 2887, "page_id": 3343, "user_id": 7538, "name": "Test Resource", "slug": "/test-resource", "type": "event", "schedule_id": 39647, "language": "en-US", "description": "", "locations": [ { "type": "google_meet", "name": "Google Meet" } ], "questions": [ { "type": "text", "name": "1695963612423", "label": "Name", "value": "", "required": true, "options": [] }, { "type": "email", "name": "1695963612424", "label": "Email address", "value": "", "required": true, "options": [] }, { "type": "tel", "name": "1695963612425", "label": "Mobile number", "value": "", "required": true, "options": [] }, { "type": "textarea", "name": "1695963612426", "label": "Please share anything that will help prepare for our meeting", "value": "", "required": false, "options": [] } ], "settings": { "confirmation": { "redirect": {}, "link": {}, "type": "default" }, "date_format": "MMM, DD YYYY", "time_format": "h:mm a", "privacy": { "type": "public" }, "guest": { "is_allowed": true, "max_allowed": 10, "is_chargeable": false }, "policy": { "reschedule": { "is_enabled": true, "description": "", "terms": { "type": "minutes", "value": 15 } }, "cancellation": { "is_enabled": true, "description": "", "terms": { "type": "minutes", "value": 15 } } }, "prevent_duplicates": false, "require_approval": false, "email_to_host": true, "email_to_invitee": true, "skip_form": false, "hide_language": false, "hide_timezone": false, "attendees": [], "clock_24": false, "is_timezone_locked": false }, "attachments": [], "is_enabled": true, "booking_url": "https://your-domain.dayschedule.com", "rank": 1, "is_template": false, "created_at": "2023-09-28T05:52:21.175Z", "updated_at": "2023-09-29T04:54:04.711Z", "id": "63a4395eago29006345f7b52" } ``` ## Create a Resource The are 3 types of resources supported on DaySchedule - 1. Event 2. Webinar 3. Service You can use the `resources.create` method to create any type of resource. For example, to create an event an 1:1 event to take appointments - ### Create an Event Create an appointment page for 1:1, [round-robin](https://dayschedule.com/products/round-robin-scheduling-software) or group appointments on Google meet, Zoom etc for online appointment booking. ```js dayschedule.resources.create({ "language":"en-US", "locations":[{ "name":"Google Meet", "type":"google_meet" }], "questions":[ { "type":"text", "name":"name", "label":"Name", "value":"", "required":true },{ "type":"email", "name":"email", "label":"Email address", "value":"", "required":true },{ "type":"tel", "name":"mobile", "label":"Mobile number", "value":"", "required":true },{ "type":"textarea", "name":"description", "label":"Please share anything that will help prepare for our meeting", "value":"", "required":false }], "settings":{ "confirmation":{ "type":"thanks", "link":{}, "redirect":{}, "message":"Thank you for scheduling an appointment with us, we are looking forward to our meeting soon." }, "attendees":[], "guest":{ "is_allowed":true, "max_allowed":10, "is_chargeable":false }, "privacy":{ "type":"public" }, "policy":{ "reschedule":{ "is_enabled":true, "terms":{ "type":"minutes", "value":0 } }, "cancellation":{ "is_enabled":true, "terms":{ "type":"minutes", "value":0 } } }, "email_to_invitee":true, "email_to_host":true, "date_format":"MMM, DD YYYY", "time_format":"h:mm a", "is_timezone_locked":false, "hide_timezone":false, "hide_language":false, "skip_form":false}, "attachments":[], "is_enabled":true, "notice":{ "type":"minutes", "value":0 }, "slots":{ "type":"minutes", "value":30 }, "durations":[{ "type":"minutes", "value":30 }], "color":"#5319e7", "capacity":{ "is_unlimited":true }, "break":{}, "period":{ "type":"calendar_days", "days":60, "specific":[] }, "payment":{ "gateways":[] }, "prices":[], "members":[], "page_id":333, "type":"event", "user_id":758, "event_type":"one_on_one", "name":"Test Resource", "slug":"/test-resource", "description":"Description for this event" }) ``` **Parameters:** | Name | Type | Description | |---------------|-------------|---------------------------------------------| | location* | object | Specify [meeting location](https://dayschedule.com/docs/t/locations/273) whether its conference type(Google meet, Zoom etc), physical or telephonic. | | question* | array | Add [custom questions](https://dayschedule.com/docs/t/how-to-customize-the-appointment-registration-form/383) to collect more information about your customers. (e.g. their phone number, address etc.) | | page_id* | number | Id of the page you want to add this resource | | type* | string | Type of resource | | name* | string | Name of the resource | | schedule_id* | number | Resource owner schedule id | **Response:** ```json { "language": "en-US", "locations": [ { "name": "Google Meet", "type": "google_meet", "remarks": "Web conference using Google meet" } ], "questions": [ { "type": "text", "name": "name", "label": "Name", "value": "", "required": true }, { "type": "email", "name": "email", "label": "Email address", "value": "", "required": true }, { "type": "tel", "name": "mobile", "label": "Mobile number", "value": "", "required": true }, { "type": "textarea", "name": "description", "label": "Please share anything that will help prepare for our meeting", "value": "", "required": false } ], "settings": { "confirmation": { "type": "thanks", "link": {}, "redirect": {}, "message": "Thank you for scheduling an appointment with us, we are looking forward to our meeting soon." }, "attendees": [], "guest": { "is_allowed": true, "max_allowed": 10, "is_chargeable": false }, "privacy": { "type": "public" }, "policy": { "reschedule": { "is_enabled": true, "terms": { "type": "minutes", "value": 0 } }, "cancellation": { "is_enabled": true, "terms": { "type": "minutes", "value": 0 } } }, "email_to_invitee": true, "email_to_host": true, "date_format": "MMM, DD YYYY", "time_format": "h:mm a", "is_timezone_locked": false, "hide_timezone": false, "hide_language": false, "skip_form": false, "require_approval": false, "prevent_duplicates": false, "clock_24": false }, "attachments": [], "is_enabled": true, "notice": { "type": "minutes", "value": 0 }, "slots": { "type": "minutes", "value": 30 }, "durations": [ { "type": "minutes", "value": 30 } ], "color": "#5319e7", "capacity": { "is_unlimited": true }, "break": {}, "period": { "type": "calendar_days", "days": 60, "specific": [] }, "payment": { "gateways": [] }, "prices": [], "members": [], "page_id": 3233, "type": "event", "user_id": 2458, "event_type": "one_on_one", "name": "Test Resource", "slug": "/test-resource", "description": "Description for this event", "is_template": false, "rank": 1, "org_id": 2347, "booking_url": "https://your-domain.dayschedule.com", "schedule_id": 52337, "id": "6524eewed72b40081c7361c11" } ``` ### Create a Webinar To create a [webinar](https://dayschedule.com/products/webinar-software), event or conference where 100s of users can join the same event online over Zoom, Google meet or an address mentioned in the location. ```js dayschedule.resources.create({ "language": "en-US", "locations": [ { "name": "Google Meet", "type": "google_meet", "remarks": "Web conference using Google meet" } ], "questions": [ { "type": "text", "name": "name", "label": "Name", "value": "", "required": true }, { "type": "email", "name": "email", "label": "Email address", "value": "", "required": true }, { "type": "tel", "name": "mobile", "label": "Mobile number", "value": "", "required": true } ], "settings": { "confirmation": { "type": "thanks", "link": {}, "redirect": {}, "message": "Thank you for scheduling an appointment with us, we are looking forward to our meeting soon." }, "attendees": [], "guest": { "is_allowed": true, "max_allowed": 10, "is_chargeable": false }, "privacy": { "type": "public" }, "policy": { "reschedule": { "is_enabled": true, "terms": { "type": "minutes", "value": 0 } }, "cancellation": { "is_enabled": true, "terms": { "type": "minutes", "value": 0 } } }, "email_to_invitee": true, "email_to_host": true, "date_format": "MMM, DD YYYY", "time_format": "h:mm a", "is_timezone_locked": true, "hide_timezone": false, "hide_language": false, "skip_form": false }, "attachments": [], "is_enabled": true, "period": { "type": "specific", "days": 60, "specific": [ { "type": "every", "weekday": "MON", "time": "09:00", "time_zone": "Asia/Calcutta" } ] }, "notice": { "type": "minutes", "value": 0 }, "durations": [ { "type": "minutes", "value": 30 } ], "capacity": { "is_unlimited": false, "is_public": true, "max": 100, "type": "perslot" }, "payment": { "gateways": [] }, "prices": [], "members": [ { "user_id": 758, "name": "John Doe", "email": "john.doe@dayschedule.com", "avatar": "https://cdn.dayschedule.com/uploads/org-287/Avatar/758-1695969730791-a49ae2b2-9472-4de7-ad6e-d09157d8eb09.webp", "phone": "+91 xxxxxxxxxx", "time_zone": "Asia/Calcutta" } ], "banner": { "background": "#d93f0b", "url": "https://cdn.dayschedule.com/icon/bg1.png", "color": "#333333", "overlay": true, "align": "right" }, "type": "webinar", "user_id": 17358, "page_id": 23333, "name": "Digital Marketing Tips", "slug": "/digital-marketing-tips", "description": "Learn how to improve business matrices using digital marketing." }) ``` **Parameters:** | Name | Type | Description | |---------------|-------------|---------------------------------------------| | location* | object | Specify location whether its conference type, physical or telephonic. | | question* | array | Add questions to collect more information about your customers. (e.g. their phone number, address etc.) | | page_id* | number | Id of the page you want to add this resource | | type* | string | Type of resource | | name* | string | Name of the resource | | period* | object | Webinar schedule | **Response:** ```json { "language": "en-US", "locations": [ { "name": "Google Meet", "type": "google_meet", "remarks": "Web conference using Google meet" } ], "questions": [ { "type": "text", "name": "name", "label": "Name", "value": "", "required": true }, { "type": "email", "name": "email", "label": "Email address", "value": "", "required": true }, { "type": "tel", "name": "mobile", "label": "Mobile number", "value": "", "required": true } ], "settings": { "confirmation": { "type": "thanks", "link": {}, "redirect": {}, "message": "Thank you for scheduling an appointment with us, we are looking forward to our meeting soon." }, "attendees": [], "guest": { "is_allowed": true, "max_allowed": 10, "is_chargeable": false }, "privacy": { "type": "public" }, "policy": { "reschedule": { "is_enabled": true, "terms": { "type": "minutes", "value": 0 } }, "cancellation": { "is_enabled": true, "terms": { "type": "minutes", "value": 0 } } }, "email_to_invitee": true, "email_to_host": true, "date_format": "MMM, DD YYYY", "time_format": "h:mm a", "is_timezone_locked": true, "hide_timezone": false, "hide_language": false, "skip_form": false, "require_approval": false, "prevent_duplicates": false, "clock_24": false }, "attachments": [], "is_enabled": true, "period": { "type": "specific", "days": 60, "specific": [ { "type": "every", "weekday": "MON", "time": "09:00", "time_zone": "Asia/Calcutta" } ] }, "notice": { "type": "minutes", "value": 0 }, "durations": [ { "type": "minutes", "value": 30 } ], "capacity": { "is_unlimited": false, "is_public": true, "max": 100, "type": "perslot" }, "payment": { "gateways": [] }, "prices": [], "members": [ { "user_id": 758, "name": "John Doe", "email": "john.doe@dasychedule.com", "avatar": "https://cdn.dayschedule.com/uploads/org-287/Avatar/758-1695969730791-a49ae2b2-9472-4de7-ad6e-d09157d8eb09.webp", "phone": "+91 xxxxxxxxxx", "time_zone": "Asia/Calcutta" } ], "banner": { "background": "#d93f0b", "url": "https://cdn.dayschedule.com/icon/bg1.png", "color": "#333333", "overlay": true, "align": "right" }, "type": "webinar", "user_id": 758, "page_id": 333, "name": "Digital Marketing Tips", "slug": "/digital-marketing-tips", "description": "Learn how to improve business matrices using digital marketing.", "is_template": false, "rank": 1, "org_id": 287, "booking_url": "https://your-domain.dayschedule.com", "id": "6530c39ea8850ce1f3cf452c" } ``` ### Create a Service To create a service catalog and accept appointment booking on your shop like SPA, Salon, Parlour etc. ```js dayschedule.resources.create({ "categories": [ { "name": "Technical Consultation", "description": "Book For technical consultation" } ], "services": [ { "category": "Technical Consultation", "name": "Level 0 Consultation", "description": "Basic overview of dayschedule", "durations": [ { "type": "minutes", "value": 15 } ], "members": [ { "user_id": 7158, "name": "John Doe", "email": "john.doe@dayschedule.com", "avatar": "https://cdn.dayschedule.com/uploads/org-287/Avatar/758-1692781354795-shubh.webp", "phone": "+91 xxxxxxxxxx", "time_zone": "Asia/Calcutta" } ], "prices": [], "break": {} }, { "category": "Technical Consultation", "name": "Level 1 Consultaion", "description": "Complete consultation to integrate dayschedule with third party tools ", "durations": [ { "type": "minutes", "value": 30 } ], "members": [ { "user_id": 7158, "name": "Vraj", "email": "vraj@dayschedule.com", "avatar": "https://cdn.dayschedule.com/uploads/org-287/Avatar/758-1692781354795-shubh.webp", "phone": "+91 xxxxxxxxxx", "time_zone": "Asia/Calcutta" } ], "prices": [], "break": {} } ], "period": { "type": "calendar_days", "days": 60, "specific": [] }, "slots": { "value": 30, "type": "minutes" }, "notice": { "type": "minutes", "value": 0 }, "payment": { "gateways": [] }, "org_id": 287, "page_id": 333, "user_id": 758, "name": "Dayschedule Consultation", "slug": "/dayschedule-consultation", "type": "service", "schedule_id": 537, "language": "en-US", "description": "
Book this service for dayschedule consultation
\n", "locations": [ { "type": "physical", "address": "48, 1st Floor, Omaxe Galleria, Sector 14, Bahadurgarh, Haryana 124507, India", "city": "Jhajjar", "state": "Haryana", "country": "India", "zip_code": "124507", "latitude": 28.67820069999999, "longitude": 76.89873589999999, "place_id": "ChIJGcetFekNDTkRawL8h8pvl3c", "email": "", "name": "Agenty Analytics Pvt. Ltd." } ], "questions": [ { "type": "text", "name": "name", "label": "Name", "value": "", "required": true }, { "type": "email", "name": "email", "label": "Email address", "value": "", "required": true }, { "type": "tel", "name": "mobile", "label": "Mobile number", "value": "", "required": true } ], "settings": { "confirmation": { "type": "thanks", "link": {}, "redirect": {}, "message": "Thank you for scheduling an appointment with us, we are looking forward to our meeting soon." }, "attendees": [], "guest": { "is_allowed": false, "max_allowed": 10, "is_chargeable": false }, "privacy": { "type": "public" }, "policy": { "reschedule": { "is_enabled": true, "terms": { "type": "minutes", "value": 0 } }, "cancellation": { "is_enabled": true, "terms": { "type": "minutes", "value": 0 } } }, "email_to_invitee": true, "email_to_host": true, "date_format": "MMM, DD YYYY", "time_format": "h:mm a", "is_timezone_locked": true, "hide_timezone": false, "hide_language": false, "skip_form": false, "require_approval": false, "prevent_duplicates": false, "clock_24": false }, "attachments": [], "is_enabled": true, "created_at": "2023-09-19T05:36:44.356Z", "updated_at": "2023-10-19T05:54:53.663Z", }) ``` **Parameters:** | Name | Type | Description | |---------------|-------------|---------------------------------------------| | location* | object | Specify location whether its conference type, physical or telephonic. | | question* | array | Add questions to collect more information about your customers. (e.g. their phone number, address etc.) | | page_id* | number | Id of the page you want to add this resource | | type* | string | Type of resource | | name* | string | Name of the resource | | schedule_id* | number | Resource owner schedule id | | categories* | object | Categories form services | | services* | array | add services | **Response:** ```json { "categories": [ { "name": "Technical Consultation", "description": "Book For technical consultation" } ], "services": [ { "category": "Technical Consultation", "name": "Level 0 Consultation", "description": "Basic overview of dayschedule", "durations": [ { "type": "minutes", "value": 15 } ], "members": [ { "user_id": 7158, "name": "John Doe", "email": "john.doe@dayschedule.com", "avatar": "https://cdn.dayschedule.com/uploads/org-287/Avatar/758-1692781354795-shubh.webp", "phone": "+91 xxxxxxxxxx", "time_zone": "Asia/Calcutta" } ], "prices": [], "break": {} }, { "category": "Technical Consultation", "name": "Level 1 Consultaion", "description": "Complete consultation to integrate dayschedule with third party tools ", "durations": [ { "type": "minutes", "value": 30 } ], "members": [ { "user_id": 2758, "name": "vraj", "email": "vraj@dasychedule.com", "avatar": "https://cdn.dayschedule.com/uploads/org-287/Avatar/758-1692781354795-shubh.webp", "phone": "+91 xxxxxxxxxx", "time_zone": "Asia/Calcutta" } ], "prices": [], "break": {} } ], "period": { "type": "calendar_days", "days": 60, "specific": [] }, "slots": { "value": 30, "type": "minutes" }, "notice": { "type": "minutes", "value": 0 }, "payment": { "gateways": [] }, "org_id": 28227, "page_id": 3323, "user_id": 17518, "name": "Dayschedule Consultation", "slug": "/dayschedule-consultation", "type": "service", "schedule_id": 537, "language": "en-US", "description": "Book this service for dayschedule consultation
\n", "locations": [ { "type": "physical", "address": "48, 1st Floor, Omaxe Galleria, Sector 14, Bahadurgarh, Haryana 124507, India", "city": "Jhajjar", "state": "Haryana", "country": "India", "zip_code": "124507", "latitude": 28.67820069999999, "longitude": 76.89873589999999, "place_id": "ChIJGcetFekNDTkRawL8h8pvl3c", "email": "", "name": "Agenty Analytics Pvt. Ltd." } ], "questions": [ { "type": "text", "name": "name", "label": "Name", "value": "", "required": true }, { "type": "email", "name": "email", "label": "Email address", "value": "", "required": true }, { "type": "tel", "name": "mobile", "label": "Mobile number", "value": "", "required": true } ], "settings": { "confirmation": { "type": "thanks", "link": {}, "redirect": {}, "message": "Thank you for scheduling an appointment with us, we are looking forward to our meeting soon." }, "attendees": [], "guest": { "is_allowed": false, "max_allowed": 10, "is_chargeable": false }, "privacy": { "type": "public" }, "policy": { "reschedule": { "is_enabled": true, "terms": { "type": "minutes", "value": 0 } }, "cancellation": { "is_enabled": true, "terms": { "type": "minutes", "value": 0 } } }, "email_to_invitee": true, "email_to_host": true, "date_format": "MMM, DD YYYY", "time_format": "h:mm a", "is_timezone_locked": true, "hide_timezone": false, "hide_language": false, "skip_form": false, "require_approval": false, "prevent_duplicates": false, "clock_24": false }, "attachments": [], "is_enabled": true, "booking_url": "https://jaini.dayschedule.in", "rank": 1, "is_template": false, "created_at": "2023-09-19T05:36:44.356Z", "updated_at": "2023-10-19T05:54:53.663Z", "id": "6509336ccc166f78c8f67623" } ``` ## Update Resource by ID ```js dayschedule.resources.update(resource_id, { "event_type": "one_on_one", "notice": { "type": "minutes", "value": 0 }, "durations": [ { "type": "minutes", "value": 30 } ], "slots": { "type": "minutes", "value": 30 }, "color": "#5319e7", "capacity": { "is_unlimited": true }, "break": {}, "period": { "type": "calendar_days", "days": 60, "specific": [] }, "payment": { "gateways": [] }, "prices": [], "members": [], "org_id": 2547, "page_id": 33333, "user_id": 72528, "name": "Test Resource", "slug": "/test-resource", "type": "event", "schedule_id": 53437, "language": "en-US", "description": "Description for this event
\n", "locations": [ { "name": "Google Meet", "type": "google_meet", "remarks": "Web conference using Google meet" } ], "questions": [ { "type": "text", "name": "name", "label": "Name", "value": "", "required": true }, { "type": "email", "name": "email", "label": "Email address", "value": "", "required": true }, { "type": "tel", "name": "mobile", "label": "Mobile number", "value": "", "required": true }, { "type": "textarea", "name": "description", "label": "Please share anything that will help prepare for our meeting", "value": "", "required": false } ], "settings": { "confirmation": { "type": "thanks", "link": {}, "redirect": {}, "message": "Thank you for scheduling an appointment with us, we are looking forward to our meeting soon." }, "attendees": [], "guest": { "is_allowed": true, "max_allowed": 10, "is_chargeable": false }, "privacy": { "type": "public" }, "policy": { "reschedule": { "is_enabled": true, "terms": { "type": "minutes", "value": 0 } }, "cancellation": { "is_enabled": true, "terms": { "type": "minutes", "value": 0 } } }, "email_to_invitee": true, "email_to_host": true, "date_format": "MMM, DD YYYY", "time_format": "h:mm a", "is_timezone_locked": false, "hide_timezone": false, "hide_language": false, "skip_form": false, "require_approval": false, "prevent_duplicates": false, "clock_24": false }, "attachments": [], "is_enabled": true, "booking_url": "https://your-domain.dayschedule.com", "rank": 1, "is_template": false, }) ``` **Parameters:** | Name | Type | Description | |---------------|-------------|---------------------------------------------| | location* | object | Specify location whether its conference type, physical or telephonic. | | question* | array | Add questions to collect more information about your customers. (e.g. their phone number, address etc.) | | page_id* | number | Id of the page you want to add this resource | | type* | string | Type of resource | | name* | string | Name of the resource | | schedule_id* | number | Resource owner schedule id | **Response:** ```json { "language": "en-US", "locations": [ { "name": "Google Meet", "type": "google_meet", "remarks": "Web conference using Google meet" } ], "questions": [ { "type": "text", "name": "name", "label": "Name", "value": "", "required": true }, { "type": "email", "name": "email", "label": "Email address", "value": "", "required": true }, { "type": "tel", "name": "mobile", "label": "Mobile number", "value": "", "required": true }, { "type": "textarea", "name": "description", "label": "Please share anything that will help prepare for our meeting", "value": "", "required": false } ], "settings": { "confirmation": { "type": "thanks", "link": {}, "redirect": {}, "message": "Thank you for scheduling an appointment with us, we are looking forward to our meeting soon." }, "attendees": [], "guest": { "is_allowed": true, "max_allowed": 10, "is_chargeable": false }, "privacy": { "type": "public" }, "policy": { "reschedule": { "is_enabled": true, "terms": { "type": "minutes", "value": 0 } }, "cancellation": { "is_enabled": true, "terms": { "type": "minutes", "value": 0 } } }, "email_to_invitee": true, "email_to_host": true, "date_format": "MMM, DD YYYY", "time_format": "h:mm a", "is_timezone_locked": false, "hide_timezone": false, "hide_language": false, "skip_form": false, "require_approval": false, "prevent_duplicates": false, "clock_24": false }, "attachments": [], "is_enabled": true, "notice": { "type": "minutes", "value": 0 }, "slots": { "type": "minutes", "value": 30 }, "durations": [ { "type": "minutes", "value": 30 } ], "color": "#5319e7", "capacity": { "is_unlimited": true }, "break": {}, "period": { "type": "calendar_days", "days": 60, "specific": [] }, "payment": { "gateways": [] }, "prices": [], "members": [], "page_id": 34333, "type": "event", "user_id": 75328, "event_type": "one_on_one", "name": "Test Resource", "slug": "/test-resource", "description": "Description for this event", "is_template": false, "rank": 1, "org_id": 222387, "booking_url": "https://your-domain.dayschedule.com", "schedule_id": 537, "id": "6524e2ad72b54221c7361c11" } ``` ## Delete Resource ```js dayschedule.resources.delete(resource_id) ``` **Response:** ```json { "message": "1 resource's deleted successfully" } ``` [API reference →](https://dayschedule.com/docs/api#tag/Resources/operation/ResourceController_createResource)