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
NameDescriptionTypeAdditional information
ElementType

The element type

Itslearning.RestApi.Entities.ElementType

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",
  "Text": "sample string 1",
  "FolderId": 2,
  "PlanId": 3,
  "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>2</FolderId>
  <PlanId>3</PlanId>
  <Text>sample string 1</Text>
</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.IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.