List resource

Namespace: microsoft.graph

The list resource represents a list in a site. This resource contains the top level properties of the list, including template and field definitions.

Tasks on a list

The following tasks are available for list resources.

All examples below are relative to a site, for example,{site-id}.

Common task HTTP method
Get list GET /lists/{list-id}
Create list POST /lists
Enumerate list items GET /lists/{list-id}/items
Update list item PATCH /lists/{list-id}/items/{item-id}
Delete list item DELETE /lists/{list-id}/items/{item-id}
Create list item POST /lists/{list-id}
Get WebSocket channel GET /lists/{list-id}/subscriptions/socketIo
List operations GET /lists/{list-id}/operations


The list resource has the following properties.

Property name Type Description
displayName string The displayable title of the list.
list listInfo Provides additional details about the list.
system systemFacet If present, indicates that this is a system-managed list. Read-only.

The following properties are inherited from baseItem.

Property name Type Description
createdBy identitySet Identity of the creator of this item. Read-only.
createdDateTime DateTimeOffset The date and time the item was created. Read-only.
description string The descriptive text for the item.
eTag string ETag for the item.
id string The unique identifier of the item. Read-only.
name string The name of the item. Read-only.
lastModifiedBy identitySet Identity of the last modifier of this item. Read-only.
lastModifiedDateTime DateTimeOffset The date and time the item was last modified. Read-only.
parentReference itemReference Parent information, if the item has a parent. Read-write.
sharepointIds sharepointIds Returns identifiers useful for SharePoint REST compatibility. Read-only.
webUrl string (url) URL that displays the item in the browser. Read-only.


The list resource has the following relationships to other resources.

Relationship name Type Description
columns Collection(columnDefinition) The collection of field definitions for this list.
contentTypes Collection(contentType) The collection of content types present in this list.
drive drive Only present on document libraries. Allows access to the list as a drive resource with driveItems.
items Collection(listItem) All items contained in the list.
operations richLongRunningOperation collection The collection of long-running operations on the list.
subscriptions Collection(subscription) The set of subscriptions on the list.

JSON representation

The following is a JSON representation of the resource.

  "columns": [ { "@odata.type": "microsoft.graph.columnDefinition" }],
  "contentTypes": [ { "@odata.type": "microsoft.graph.contentType" }],
  "displayName": "title of list",
  "drive": { "@odata.type": "" },
  "items": [ { "@odata.type": "microsoft.graph.listItem" } ],
  "list": {
    "@odata.type": "microsoft.graph.listInfo",
    "hidden": false,
    "template": "documentLibrary | genericList | survey | links | announcements | contacts | accessRequest ..."
  "operations": [ { "@odata.type": "microsoft.graph.richLongRunningOperation" }],
  "system": false,
  "subscriptions": [ {"@odata.type": "microsoft.graph.subscription"} ],

  /* inherited from baseItem */
  "id": "string",
  "name": "name of list",
  "createdBy": { "@odata.type": "microsoft.graph.identitySet" },
  "createdDateTime": "timestamp",
  "description": "description of list",
  "eTag": "string",
  "lastModifiedBy": { "@odata.type": "microsoft.graph.identitySet" },
  "lastModifiedDateTime": "timestamp",
  "parentReference": { "@odata.type": "microsoft.graph.itemReference" },
  "sharepointIds": { "@odata.type": "microsoft.graph.sharepointIds" },
  "webUrl": "url to visit the list in a browser"