API
HQ APIGoogle calendar

Create Google Calendar connection

Creates a new Google Calendar connection for the user.

POST/v1/hq/user/google_calendar_connection

Authorization

BearerTokenAuth

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

Request Body

application/json

sync_events?boolean

Whether events should be synced between Noona and Google Calendar.

Defaulttrue
Exampletrue
sync_blocked_times_to_google?boolean

Whether blocked times should be synced from Noona to Google.

Defaulttrue
Exampletrue
sync_blocked_times_to_noona?boolean

Whether blocked times should be synced from Google to Noona.

Defaulttrue
Exampletrue

Response Body

application/json

curl -X POST "https://api.noona.is/v1/hq/user/google_calendar_connection" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "7awdXwZoedakjad37a",
  "name": "Noona",
  "sync_events": true,
  "sync_blocked_times_to_google": true,
  "sync_blocked_times_to_noona": true
}