GetItDoneGetItDone Docs

Update a note

Rewrites a note's title and/or body. Requires `base_updated_at` (the `updated_at` from the last read) — the update is refused with 409 `conflict` if the note has been modified since, preventing agents from silently overwriting each other.

PATCH
/v1/notes/{note_id}

Rewrites a note's title and/or body. Requires base_updated_at (the updated_at from the last read) — the update is refused with 409 conflict if the note has been modified since, preventing agents from silently overwriting each other.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A gid_ API key (Settings → API keys) or an OAuth 2.1 access token.

Path Parameters

note_id*string

Request Body

application/json
  1. body

Fields for updating a note. Requires the base_updated_at compare-and-set value.

title?string

New title (1-200 characters after trimming).

Length1 <= length <= 200
body?string

New body (max 100000 characters). Replaces the entire body.

Lengthlength <= 100000
base_updated_at*string

The updated_at value from the last read of this note. The update is refused with 409 conflict if the note has been modified since this timestamp — re-read the note and rebase your changes. This prevents agents from silently overwriting each other's edits.

Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time

Response Body

The updated note.

application/json
  1. response

A workspace shared note.

id*string

Stable opaque note id.

title*string

Note title, unique within the organization.

body*string

Full note body (plain text or Markdown). Only returned by the get-one endpoint; list returns a preview.

project_id*|

Project the note belongs to, or null when workspace-wide.

project_name*|

Project display name, or null.

archived*boolean

True when the note is archived.

length*integer

Character count of the full body.

Range-9007199254740991 <= value <= 9007199254740991
updated_at*string

Last-modified time, ISO-8601 UTC.

Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
updated_by_name*|

Display name of the last person or agent who wrote to this note.

Example Request
curl -X PATCH 'https://app.nowgetitdone.com/v1/notes/string' \  -H 'Content-Type: application/json' \  -d '{  "base_updated_at": "2019-08-24T14:15:22Z"}'
Example Response
{  "id": "string",  "title": "string",  "body": "string",  "project_id": "string",  "project_name": "string",  "archived": true,  "length": -9007199254740991,  "updated_at": "2019-08-24T14:15:22Z",  "updated_by_name": "string"}