API

Update a rule set template

Updates a rule set template at a company.

POST/v1/hq/rule_set_templates/{rule_set_template_id}
AuthorizationBearer <token>

The 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

Path Parameters

rule_set_template_id*string

Rule Set Template ID

Query Parameters

select?array<string>
expand?array<string>

Request Body

application/json

company*string|
title?string
starts_at?string

Start time

Example"11:00"
ends_at?string

End time

Example"13:00"
priority?integer

Lower numbers have higher priority.

This can be used to explicitly overwrite certain rules on dates where multiple rules apply.

Formatint32
Example1
rules?

Response Body

application/json

curl -X POST "https://api.noona.is/v1/hq/rule_set_templates/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "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"
}