Create model
Creates a model and its associated content type. Note that this only creates the model. It will still need to be trained in the content center (see example).
HTTP request
POST /_api/machinelearning/models HTTP/1.1
URI Parameters
None
Request headers
Header | Value |
---|---|
Accept | application/json;odata=verbose |
Content-Type | application/json;odata=verbose;charset=utf-8 |
x-requestdigest | The appropriate digest for current site |
Request body
Name | Type | Description |
---|---|---|
_metadata | Set the object meta on the SPO. Always use the value: {"type": "Microsoft.Office.Server.ContentCenter.SPMachineLearningModelEntityData"}. | |
ContentTypeGroup | string | The associated content type group associated with the model. Defaulted to "Intelligent Document Content Types". |
ContentTypeName | string | The associated content type name. The created model file will have the same name. |
Responses
Name | Type | Description |
---|---|---|
201 Created | Success |
Examples
Create a new document understanding model called "Contoso Contract"
Sample request
{
"__metadata": {
"type": "Microsoft.Office.Server.ContentCenter.SPMachineLearningModelEntityData"
},
"ContentTypeGroup": "Intelligent Document Content Types",
"ContentTypeName": "Contoso Contract"
}
Sample response
Status code: 201