POST restapi/personal/ai/elements/v1
Method for creating elements
Request Information
URI Parameters
None.
Body Parameters
The create element request
Itslearning.RestApi.Entities.Personal.Ai.CreateElementRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ElementType |
The element type |
Itslearning.RestApi.Entities.ElementType |
None. |
| Title |
The title |
string |
None. |
| Text |
The text |
string |
None. |
| FolderId |
The folder id |
integer |
None. |
| PlanId |
If created element belongs to a plan |
integer |
None. |
| Feature |
The AI feature type of the element (e.g. Assignment, Article, Inspire me etc.). Used to measure KPI when a user saves an element created by AI. |
Itslearning.RestApi.Entities.Personal.Ai.AiFeatureType |
None. |
Request Formats
application/json, text/json
Sample:
{
"ElementType": "Unknown",
"Title": "sample string 1",
"Text": "sample string 2",
"FolderId": 3,
"PlanId": 4,
"Feature": 0
}
application/xml, text/xml
Sample:
<CreateElementRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Itslearning.RestApi.Entities.Personal.Ai"> <ElementType>Unknown</ElementType> <Feature>None</Feature> <FolderId>3</FolderId> <PlanId>4</PlanId> <Text>sample string 2</Text> <Title>sample string 1</Title> </CreateElementRequest>
application/x-www-form-urlencoded
Sample:
No sample available
Response Information
Resource Description
The element identifier for the newly created element
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.