- Resource: Note
- Attachment
- Permission
- Role
- User
- Group
- Family
- Section
- TextContent
- ListContent
- ListItem
- Methods
Resource: Note
A single note.
| JSON representation | 
|---|
| { "name": string, "createTime": string, "updateTime": string, "trashTime": string, "trashed": boolean, "attachments": [ { object ( | 
| Fields | |
|---|---|
| name | 
 Output only. The resource name of this note. See general note on identifiers in KeepService. | 
| createTime | 
 Output only. When this note was created. | 
| updateTime | 
 Output only. When this note was last modified. | 
| trashTime | 
 Output only. When this note was trashed. If  | 
| trashed | 
 Output only.  | 
| attachments[] | 
 Output only. The attachments attached to this note. | 
| permissions[] | 
 Output only. The list of permissions set on the note. Contains at least one entry for the note owner. | 
| title | 
 The title of the note. Length must be less than 1,000 characters. | 
| body | 
 The body of the note. | 
Attachment
An attachment to a note.
| JSON representation | 
|---|
| { "name": string, "mimeType": [ string ] } | 
| Fields | |
|---|---|
| name | 
 The resource name; | 
| mimeType[] | 
 The MIME types (IANA media types) in which the attachment is available. | 
Permission
A single permission on the note. Associates a member with a role.
| JSON representation | 
|---|
| { "name": string, "role": enum ( | 
| Fields | |
|---|---|
| name | 
 Output only. The resource name. | 
| role | 
 The role granted by this permission. The role determines the entity’s ability to read, write, and share notes. | 
| email | 
 The email associated with the member. If set on create, the  | 
| deleted | 
 Output only. Whether this member has been deleted. If the member is recovered, this value is set to false and the recovered member retains the role on the note. | 
| Union field member. Specifies the identity granted the role. Member is unset if the member has been deleted.membercan be only one of the following: | |
| user | 
 Output only. The user to whom this role applies. | 
| group | 
 Output only. The group to which this role applies. | 
| family | 
 Output only. The Google Family to which this role applies. | 
Role
Defines the various roles an entity can have.
| Enums | |
|---|---|
| ROLE_UNSPECIFIED | An undefined role. | 
| OWNER | A role granting full access. This role cannot be added or removed. Defined by the creator of the note. | 
| WRITER | A role granting the ability to contribute content and modify note permissions. | 
User
Describes a single user.
| JSON representation | 
|---|
| { "email": string } | 
| Fields | |
|---|---|
| email | 
 The user's email. | 
Group
Describes a single Group.
| JSON representation | 
|---|
| { "email": string } | 
| Fields | |
|---|---|
| email | 
 The group email. | 
Family
This type has no fields.
Describes a single Google Family.
Section
The content of the note.
| JSON representation | 
|---|
| { // Union field | 
| Fields | |
|---|---|
| Union field Content. The section's content must be one of these value types.Contentcan be only one of the following: | |
| text | 
 Used if this section's content is a block of text. The length of the text content must be less than 20,000 characters. | 
| list | 
 Used if this section's content is a list. | 
TextContent
The block of text for a single text section or list item.
| JSON representation | 
|---|
| { "text": string } | 
| Fields | |
|---|---|
| text | 
 The text of the note. The limits on this vary with the specific field using this type. | 
ListContent
The list of items for a single list note.
| JSON representation | 
|---|
| {
  "listItems": [
    {
      object ( | 
| Fields | |
|---|---|
| listItems[] | 
 The items in the list. The number of items must be less than 1,000. | 
ListItem
A single list item in a note's list.
| JSON representation | 
|---|
| { "childListItems": [ { object ( | 
| Fields | |
|---|---|
| childListItems[] | 
 If set, list of list items nested under this list item. Only one level of nesting is allowed. | 
| text | 
 The text of this item. Length must be less than 1,000 characters. | 
| checked | 
 Whether this item has been checked off or not. | 
| Methods | |
|---|---|
| 
 | Creates a new note. | 
| 
 | Deletes a note. | 
| 
 | Gets a note. | 
| 
 | Lists notes. |