Curl Command:
curl -X POST -H "X-Platform: desktop-website" -H "Authorization: Bearer 22900|TQDofJvwV870ZZdPwHeO5x6GL7NHPmCnVGy8ckBy42021cd9" -H "sec-ch-ua-platform: "macOS"" -H "withCredentials: true" -H "sec-ch-ua: "Chromium";v="140", "Not=A?Brand";v="24", "Google Chrome";v="140"" -H "sec-ch-ua-mobile: ?0" -H "X-Subdomain: 9d1d9a2f-e37b-49fd-b36a-9edb3cc3234b" -H "X-Tenant: 1c55a579-98f3-4e10-bb8b-1750dabe79f5" -H "Accept: application/json" -H "Content-Type: application/json" -H "X-Channel: offline" -d '{"name":"close","start_at":"2025-09-30","end_at":"2025-10-31","start_time":"04:00:00","end_time":"03:59:00","no_of_assets":5,"type":"quantity+capacity","closure_days":[0,1,2,3,4,5,6],"is_specific_time_every_day":false,"all_day":true,"quota":"5+0","ignore_bookings_check":false}' "https://api.betarez.com/api/v1/asset-closures/9eac46ba-fe35-4fb2-9370-2caab61ef0bc/"
Request Headers:
{'Accept': 'application/json',
'Authorization': 'Bearer '
'22900|TQDofJvwV870ZZdPwHeO5x6GL7NHPmCnVGy8ckBy42021cd9',
'Content-Type': 'application/json',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) '
'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 '
'Safari/537.36',
'X-Channel': 'offline',
'X-Platform': 'desktop-website',
'X-Subdomain': '9d1d9a2f-e37b-49fd-b36a-9edb3cc3234b',
'X-Tenant': '1c55a579-98f3-4e10-bb8b-1750dabe79f5',
'sec-ch-ua': '"Chromium";v="140", "Not=A?Brand";v="24", "Google '
'Chrome";v="140"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"macOS"',
'withCredentials': 'true'}
Request Body:
{"name":"close","start_at":"2025-09-30","end_at":"2025-10-31","start_time":"04:00:00","end_time":"03:59:00","no_of_assets":5,"type":"quantity+capacity","closure_days":[0,1,2,3,4,5,6],"is_specific_time_every_day":false,"all_day":true,"quota":"5+0","ignore_bookings_check":false}