curl -X POST " https://api.playground.try.be/shop/calendar-notes " \
-H " Authorization: Bearer YOUR_API_KEY " \
-H " Accept: application/json " \
-H " Content-Type: application/json " \
-d ' {
"body": "Public holiday — front desk closes at 16:00.",
"date": "2026-05-25",
"site_id": "11111111-1111-1111-1111-111111111111"
} ' const response = await fetch ( ' https://api.playground.try.be/shop/calendar-notes ' , {
method : ' POST ' ,
headers : {
Authorization : ' Bearer YOUR_API_KEY ' ,
' Content-Type ' : ' application/json ' ,
Accept : ' application/json ' ,
},
body : JSON . stringify ( {
" body " : " Public holiday — front desk closes at 16:00. " ,
" date " : " 2026-05-25 " ,
" site_id " : " 11111111-1111-1111-1111-111111111111 "
} ) ,
} )
if ( ! response . ok ) {
throw new Error ( ` Trybe API ${ response . status } : ${ await response . text () }` )
}
const data = await response . json () import httpx
response = httpx . post (
" https://api.playground.try.be/shop/calendar-notes " ,
headers = {
" Authorization " : " Bearer YOUR_API_KEY " ,
" Accept " : " application/json " ,
" Content-Type " : " application/json " ,
},
json = {
" body " : " Public holiday — front desk closes at 16:00. " ,
" date " : " 2026-05-25 " ,
" site_id " : " 11111111-1111-1111-1111-111111111111 "
},
)
response . raise_for_status ()
data = response . json () <? php
$ client = new \ GuzzleHttp \ Client ();
$ response = $ client -> request ( ' POST ' , ' https://api.playground.try.be/shop/calendar-notes ' , [
' headers ' => [
' Authorization ' => ' Bearer YOUR_API_KEY ' ,
' Accept ' => ' application/json ' ,
' Content-Type ' => ' application/json ' ,
],
' json ' => [
' body ' => ' Public holiday — front desk closes at 16:00. ' ,
' date ' => ' 2026-05-25 ' ,
' site_id ' => ' 11111111-1111-1111-1111-111111111111 '
],
]);
$ data = json_decode ($ response -> getBody (), true ); package main
import (
" bytes "
" encoding/json "
" net/http "
)
func main () {
payload , _ := json . Marshal ( map [ string ] interface {}{
" body " : " Public holiday — front desk closes at 16:00. " ,
" date " : " 2026-05-25 " ,
" site_id " : " 11111111-1111-1111-1111-111111111111 " ,
})
req , _ := http . NewRequest ( " POST " , " https://api.playground.try.be/shop/calendar-notes " , bytes . NewBuffer ( payload ))
req . Header . Set ( " Authorization " , " Bearer YOUR_API_KEY " )
req . Header . Set ( " Accept " , " application/json " )
req . Header . Set ( " Content-Type " , " application/json " )
resp , err := http . DefaultClient . Do ( req )
if err != nil {
panic ( err )
}
defer resp . Body . Close ()
var data map [ string ] interface {}
json . NewDecoder ( resp . Body ). Decode ( & data )
} 201 401 403 422
A single `CalendarNote`.
{
" data " : {
" id " : " 5f1234567890abcdef123456 " ,
" site_id " : " 11111111-1111-1111-1111-111111111111 " ,
" body " : " Public holiday — front desk closes at 16:00. " ,
" date " : " 2026-05-25 " ,
" created_by_id " : " 33333333-3333-3333-3333-333333333333 " ,
" created_by " : {
" id " : " 64a9f3b2c3d8e1f4a5b6c7d8 " ,
" avatar " : {
" id " : " 00000000-0000-0000-0000-000000000000 " ,
" file_name " : " super-cool-photo.jpg " ,
" mime_type " : " image/jpeg " ,
" original_url " : " https://example.com/media/super-cool-photo.jpg " ,
" size " : 84256 ,
" url " : " https://example.com/media/super-cool-photo-thumbnail@2x.jpg "
},
" email " : " guest@example.com " ,
" first_name " : " Jane " ,
" full_name " : " Jane Smith " ,
" last_name " : " Smith "
},
" updated_by_id " : " 33333333-3333-3333-3333-333333333333 " ,
" updated_by " : {
" id " : " 64a9f3b2c3d8e1f4a5b6c7d8 " ,
" avatar " : {
" id " : " 00000000-0000-0000-0000-000000000000 " ,
" file_name " : " super-cool-photo.jpg " ,
" mime_type " : " image/jpeg " ,
" original_url " : " https://example.com/media/super-cool-photo.jpg " ,
" size " : 84256 ,
" url " : " https://example.com/media/super-cool-photo-thumbnail@2x.jpg "
},
" email " : " guest@example.com " ,
" first_name " : " Jane " ,
" full_name " : " Jane Smith " ,
" last_name " : " Smith "
},
" deleted_by " : {
" id " : " 64a9f3b2c3d8e1f4a5b6c7d8 " ,
" avatar " : {
" id " : " 00000000-0000-0000-0000-000000000000 " ,
" file_name " : " super-cool-photo.jpg " ,
" mime_type " : " image/jpeg " ,
" original_url " : " https://example.com/media/super-cool-photo.jpg " ,
" size " : 84256 ,
" url " : " https://example.com/media/super-cool-photo-thumbnail@2x.jpg "
},
" email " : " guest@example.com " ,
" first_name " : " Jane " ,
" full_name " : " Jane Smith " ,
" last_name " : " Smith "
},
" created_at " : " 2026-05-23T09:30:00Z " ,
" updated_at " : " 2026-05-23T09:30:00Z "
}
} {
" message " : " Unauthenticated "
} {
" message " : " This action is unauthorized. "
} {
" errors " : {},
" message " : " The request didn't pass validation "
}