Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
title description ms.date ms.author author manager ms.reviewer audience ms.topic ms.collection ms.localizationpriority
Create model
Use REST API to create a model and its associated content type.
09/23/2022
chucked
chuckedmonson
pamgreen
ssquires
admin
reference
m365initiative-syntex
high

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

See also

Syntex document understanding model REST API