Create a Time Frame

POST/?object=timeframe&action=create

Request URL

POST
https://uc.hopdial.com/ns-api/?object=timeframe&action=create

Send 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

NameTypeDescription
time_frame
requiredbody
string

Name of the Time Frame

enable
optionalbody
string

yes/no

user
optionalbody
string

User Ex. 204 or * if timeframe for the domain

domain
optionalbody
string

Domain the timeframe should exist in

owner
optionalbody
string

User Ex. 204 or * if timeframe for the domain

owner_domain
optionalbody
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.