MemoService

CreateMemo creates a memo.

post/api/v1/memos

Query parameters

memoIdstring

Optional. The memo ID to use for this memo. If empty, a unique ID will be generated.

Request body

namestring

The resource name of the memo. Format: memos/{memo}, memo is the user defined id or uuid.

state'STATE_UNSPECIFIED' | 'NORMAL' | 'ARCHIVED' enum required

The state of the memo.

creatorstring

The name of the creator. Format: users/{user}

createTimestring date-time

Output only. The creation timestamp.

updateTimestring date-time

Output only. The last update timestamp.

displayTimestring date-time

The display timestamp of the memo.

contentstring required

Required. The content of the memo in Markdown format.

visibility'VISIBILITY_UNSPECIFIED' | 'PRIVATE' | 'PROTECTED' | 'PUBLIC' enum required

The visibility of the memo.

tagsstring[]

Output only. The tags extracted from the content.

pinnedboolean

Whether the memo is pinned.

parentstring

Output only. The name of the parent memo. Format: memos/{memo}

snippetstring

Output only. The snippet of the memo content. Plain text only.

Response

OK

namestring

The resource name of the memo. Format: memos/{memo}, memo is the user defined id or uuid.

state'STATE_UNSPECIFIED' | 'NORMAL' | 'ARCHIVED' enum required

The state of the memo.

creatorstring

The name of the creator. Format: users/{user}

createTimestring date-time

Output only. The creation timestamp.

updateTimestring date-time

Output only. The last update timestamp.

displayTimestring date-time

The display timestamp of the memo.

contentstring required

Required. The content of the memo in Markdown format.

visibility'VISIBILITY_UNSPECIFIED' | 'PRIVATE' | 'PROTECTED' | 'PUBLIC' enum required

The visibility of the memo.

tagsstring[]

Output only. The tags extracted from the content.

pinnedboolean

Whether the memo is pinned.

parentstring

Output only. The name of the parent memo. Format: memos/{memo}

snippetstring

Output only. The snippet of the memo content. Plain text only.

Changes