Day Notes
Ask
List day notes
GET/v1/teams/{teamId}/days/{dayId}/notesLists notes for a day that the caller can access. Private notes are returned only to their creator, including when another caller is a team Admin or has Day Notes manage-all access.
Required scopes: day_note:read
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.dayIdrequired | string:uuidDay identifier. |
query.limit | integerMaximum number of records to return. Defaults to 50 and is capped at 200. |
query.cursor | stringOpaque cursor returned by page.nextCursor. Reuse the same credential, endpoint, and filters within 24 hours; restart pagination after expiration or credential changes. |
Response 200
data | object[] |
|---|---|
data[].dayId | string:uuid |
data[].title | stringOptional day note title. |
data[].body | stringDay note body. May be empty when the note has a title. New lines are represented with \n characters, and basic Markdown formatting is supported. |
data[].visibility | objectDay note visibility restrictions. A note restricted to only its creator is private and remains visible only to that creator, including when another member is an Admin or has notes:manage-all. |
data[].visibility.groupIds | string:uuid[] |
data[].visibility.userIds | string:uuid[] |
data[].id | string:uuid |
data[].orgId | string:uuid |
data[].isDeleted | boolean |
data[].version | integerCurrent day note aggregate version. |
data[].createdAt | string:date-timeISO 8601 timestamp when the day note was created. |
data[].createdBy | stringUser identifier that created the day note. |
data[].updatedAt | string:date-timeISO 8601 timestamp when the day note was last updated. |
data[].updatedBy | stringUser identifier that last updated the day note. |
data[].deletedAt | string:date-timeISO 8601 timestamp when the day note was deleted. |
data[].cursor | integerLatest cursor projected into this day note record. |
page | object |
page.limit | integerMaximum number of records returned in this page. |
page.nextCursor | string | nullOpaque cursor to pass as the next request's cursor query parameter with the same credential, endpoint, and filters within 24 hours, or null when there are no more results. Restart pagination after expiration or credential changes. |
meta | object |
meta.cursor | number | nullHighest record cursor represented by this response. |
Create a day note
POST/v1/teams/{teamId}/days/{dayId}/notesAccepts a command to create a day note. Either title or body must contain non-whitespace content.
Required scopes: day_note:write
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.dayIdrequired | string:uuidDay identifier. |
header.Idempotency-Key | string:uuidOptional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request. |
Request body (application/json)
title | stringOptional day note title. |
|---|---|
bodyrequired | stringDay note body. May be empty when the note has a title. New lines are represented with \n characters, and basic Markdown formatting is supported. |
visibility | objectDay note visibility restrictions. A note restricted to only its creator is private and remains visible only to that creator, including when another member is an Admin or has notes:manage-all. |
visibility.groupIds | string:uuid[] |
visibility.userIds | string:uuid[] |
id | string:uuidOptional caller-supplied day note ID. RoadOps generates one when omitted. |
Response 202
commandId | string:uuidCommand identifier accepted into the RoadOps command ledger. |
|---|---|
resourceId | string:uuidIdentifier of the resource targeted by the command. |
resourceType | stringResource type targeted by the command. |
status | "applied"Command dispatch status. |
aggregateVersion | integerAggregate version produced by the accepted command. |
cursor | integerCursor for the accepted update. Refetch until returned records reach this cursor. |
links | object |
links.refetch | stringRelative URL to refetch the affected resource. |
Retrieve a day note
GET/v1/teams/{teamId}/days/{dayId}/notes/{noteId}Returns one accessible day note by ID. Another user's private note is masked as not found.
Required scopes: day_note:read
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.dayIdrequired | string:uuidDay identifier. |
path.noteIdrequired | string:uuidDay note identifier. |
Response 200
data | object |
|---|---|
data.dayId | string:uuid |
data.title | stringOptional day note title. |
data.body | stringDay note body. May be empty when the note has a title. New lines are represented with \n characters, and basic Markdown formatting is supported. |
data.visibility | objectDay note visibility restrictions. A note restricted to only its creator is private and remains visible only to that creator, including when another member is an Admin or has notes:manage-all. |
data.visibility.groupIds | string:uuid[] |
data.visibility.userIds | string:uuid[] |
data.id | string:uuid |
data.orgId | string:uuid |
data.isDeleted | boolean |
data.version | integerCurrent day note aggregate version. |
data.createdAt | string:date-timeISO 8601 timestamp when the day note was created. |
data.createdBy | stringUser identifier that created the day note. |
data.updatedAt | string:date-timeISO 8601 timestamp when the day note was last updated. |
data.updatedBy | stringUser identifier that last updated the day note. |
data.deletedAt | string:date-timeISO 8601 timestamp when the day note was deleted. |
data.cursor | integerLatest cursor projected into this day note record. |
meta | object |
meta.cursor | integerHighest record cursor represented by this response. |
Update a day note
PATCH/v1/teams/{teamId}/days/{dayId}/notes/{noteId}Accepts a command to update accessible day note fields. The resulting note must retain a nonblank title or body. Private notes can be updated only by their creator.
Required scopes: day_note:write
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.dayIdrequired | string:uuidDay identifier. |
path.noteIdrequired | string:uuidDay note identifier. |
header.Idempotency-Key | string:uuidOptional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request. |
Request body (application/json)
expectedVersion | integerOptional aggregate version guard. |
|---|---|
updatesrequired | objectDay note fields to update. |
updates.title | string | nullUpdated note title, or null to clear it. |
updates.body | stringUpdated note body. May be empty when the resulting note retains a title. New lines are represented with \n characters, and basic Markdown formatting is supported. |
updates.visibility | object | nullUpdated visibility, or null to clear custom visibility. |
updates.visibility.groupIds | string:uuid[] |
updates.visibility.userIds | string:uuid[] |
Response 202
commandId | string:uuidCommand identifier accepted into the RoadOps command ledger. |
|---|---|
resourceId | string:uuidIdentifier of the resource targeted by the command. |
resourceType | stringResource type targeted by the command. |
status | "applied"Command dispatch status. |
aggregateVersion | integerAggregate version produced by the accepted command. |
cursor | integerCursor for the accepted update. Refetch until returned records reach this cursor. |
links | object |
links.refetch | stringRelative URL to refetch the affected resource. |
Delete a day note
DELETE/v1/teams/{teamId}/days/{dayId}/notes/{noteId}Accepts a command to delete an accessible day note. Private notes can be deleted only by their creator.
Required scopes: day_note:write
Parameters
path.teamIdrequired | string:uuidTeam identifier. |
|---|---|
path.dayIdrequired | string:uuidDay identifier. |
path.noteIdrequired | string:uuidDay note identifier. |
header.Idempotency-Key | string:uuidOptional caller-generated UUID used to make mutation retries safe. Reuse the same UUID only when retrying the same request. |
Response 202
commandId | string:uuidCommand identifier accepted into the RoadOps command ledger. |
|---|---|
resourceId | string:uuidIdentifier of the resource targeted by the command. |
resourceType | stringResource type targeted by the command. |
status | "applied"Command dispatch status. |
aggregateVersion | integerAggregate version produced by the accepted command. |
cursor | integerCursor for the accepted update. Refetch until returned records reach this cursor. |
links | object |
links.refetch | stringRelative URL to refetch the affected resource. |