Skip to main content
PUT
/
api
/
documents
/
weekly-note
Upsert weekly note
curl --request PUT \
  --url https://api.example.com/api/documents/weekly-note \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "week_start": "2023-12-25",
  "content": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "week_start": "2023-12-25",
  "content": "<string>",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
week_start
string<date>
required
content
string
required

Response

Successful Response

id
string<uuid>
required
week_start
string<date>
required
content
string
required
updated_at
string<date-time>
required