Create a rule set
Creates a rule set for a company.
/v1/hq/rule_setsThe Noona HQ API uses Bearer token for authentication.
Endpoints that return generic information that does not contain sensitive data do not require authentication. Endpoints that require authentication are specifically marked in the documentation.
Authorization: Bearer your-token
In: header
Query Parameters
Request Body
application/json
The date of the rule set.
For recurring rule sets, this is the date where the recurrance rule starts.
"2020-08-24"RRULE string.
The dtstart property is ignored, and the date attribute of the rule set is used to define the beginnin of the reccurence.
The template that was used to create this rule set
"7awdXwZoedakjad37a"Start time
"11:00"End time
"13:00"Lower numbers have higher priority.
This can be used to explicitly overwrite certain rules on dates where multiple rules apply.
int321Response Body
application/json
curl -X POST "https://api.noona.is/v1/hq/rule_sets" \ -H "Content-Type: application/json" \ -d '{ "company": "string", "date": "2020-08-24", "starts_at": "11:00", "ends_at": "13:00" }'{
"date": "2020-08-24",
"rrule": "string",
"rule_set_template_id": "7awdXwZoedakjad37a",
"id": "7awdXwZoedakjad37a",
"company": "string",
"title": "string",
"starts_at": "11:00",
"ends_at": "13:00",
"priority": 1,
"rules": [
{
"starts_at": "11:00",
"ends_at": "13:00",
"type": "availability",
"open": true
}
],
"future_instance_count": 1,
"next_instance": "2020-08-24",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}