Create a Time Frame
POST
/?object=timeframe&action=createRequest URL
POST
https://uc.hopdial.com/ns-api/?object=timeframe&action=createSend your access token in the Authorization: Bearer header. Body parameters are sent as application/x-www-form-urlencoded. New to the API? Start with authentication and rate limits.
Parameters
| Name | Type | Description |
|---|---|---|
time_framerequiredbody | string | Name of the Time Frame |
enableoptionalbody | string | yes/no |
useroptionalbody | string | User Ex. 204 or * if timeframe for the domain |
domainoptionalbody | string | Domain the timeframe should exist in |
owneroptionalbody | string | User Ex. 204 or * if timeframe for the domain |
owner_domainoptionalbody | string | Domain of the user |
Example request
shell
curl https://uc.hopdial.com/ns-api/ \
-H 'Authorization: Bearer 7bet078rqljh451l31uh34lsd0f80dsf' \
-d object='timeframe' \
-d action='create' \
-d domain='abc-company.11111.service' \
-d user='*' \
-d enable= 'yes' \
-d owner= '*' \
-d owner_domain= 'abc-company.11111.service' \
-d time_frame = 'Business Hours'
Responses
400 · application/json
{}More Time Frames endpoints
Create the business-hours schedules that answering rules use.
Need a Client ID and Client Secret or help with this endpoint? Contact HopDial support or call (866) 305-0407.