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.

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.

Request Formats

application/json, text/json

Sample:
{
  "ElementType": "Unknown",
  "Title": "sample string 1",
  "Text": "sample string 2",
  "FolderId": 3,
  "PlanId": 4
}

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>
  <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.IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.