Open
Description
Usage
m365 spp model apply [options]
Description
Applies (or syncs) a trained document understanding model to a document library.
Options
Option | Description |
---|---|
-u, --webUrl <webUrl> |
The URL of the site where the library is located. |
-i, --id [id] |
The unique ID of the model to retrieve. Specify id or title but not both. |
-t, --title [title] |
The display name (case-sensitive) of the model to retrieve. Specify id or title but not both. |
--listTitle [listTitle] |
The title of the library on which to apply the model. Specify either listTitle , listId , or listUrl but not multiple. |
--listId [listId] |
The ID of the library on which to apply the model. Specify either listTitle , listId , or listUrl but not multiple. |
--listUrl [listUrl] |
Server or web-relative URL of the library on which to apply the model. Specify either listTitle , listId , or listUrl but not multiple. |
--defaultView |
Specifies whether to set the new model view as the library default |
Examples
Applies a trained document understanding model by id to a document library based on the list title.
m365 spp model apply --webUrl 'https://contoso.sharepoint.com' --id '7645e69d-21fb-4a24-a17a-9bdfa7cb63dc' --listTitle 'Shared Documents'
Applies a trained document understanding model by title to a document library based on the list title.
m365 spp model apply --webUrl 'https://contoso.sharepoint.com' --title 'ModelExample' --listTitle 'Shared Documents'
Applies a trained document understanding model by title to a document library based on the list url.
m365 spp model apply --webUrl 'https://contoso.sharepoint.com' --title 'ModelExample' --listUrl '/Shared Documents'
Applies a trained document understanding model by title to a document library based on the list id.
m365 spp model apply --webUrl 'https://contoso.sharepoint.com' --title 'ModelExample' --listId 'b4cfa0d9-b3d7-49ae-a0f0-f14ffdd005f7'
Additional Info
This endpoint can be used: https://learn.microsoft.com/en-us/sharepoint/dev/apis/syntex/rest-applymodel-method