training.section

Manage an individual training section (parent group category)

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
id (required)integerTraining section id

UPDATE

ParametersTypeDescription
token (required)Valid token
id (required)integerTraining section id
title (accepted)varcharTitle
global (accepted)enum (0, 1)

DELETE

ParametersTypeDescription
token (required)Valid token
id (required)integerTraining section id

CREATE

ParametersTypeDescription
token (required)Valid token
title (required)varcharSection titile

DOCUMENTATION

GET
Retrieves an individual training section (parent group category)
Level 3 is required.

--

Example Request:

{
   "method":"GET",
   "module":"training.section",
   "request":{
      "id":"454"
   }
}

Example Response:

{
   "status":1,
   "data":{
      "id":"454",
      "store":"11",
      "title":"Scheduling",
      "created":"1334806092",
      "created_by":"123",
      "deleted":"0",
      "deleted_by":"0"
   },
   "token":"xxxxxxx"
}

CREATE
Creates an individual training section (parent group category)
Level 3 is required.

--
Example Request:

{
   "module":"training.section",
   "method":"CREATE",
   "request":{
      "title":"New Section"
   }
}

Example Response:

{
   "status":1,
   "data":{
      "id":"456",
      "store":"11",
      "title":"New Section",
      "created":"1334806092",
      "created_by":"123",
      "deleted":"0",
      "deleted_by":"0"
   },
   "token":"xxxxxxx"
}

UPDATE
Updates an individual training section (parent group category)
Level 3 is required.

--
Example Request:

{
   "module":"training.section",
   "method":"UPDATE",
   "request":{
      "id":"456",
      "title":"New title"
   }
}

Example Response:

{
   "status":1,
   "data":{
      "id":"456",
      "store":"11",
      "title":"New Title",
      "created":"1334806092",
      "created_by":"123",
      "deleted":"0",
      "deleted_by":"0"
   },
   "token":"xxxxxxx"
}

DELETE
Deletes an individual training section (parent group category)
Level 3 is required.

--

Example Request:

{
   "module":"training.section",
   "method":"DELETE",
   "request":{
      "id":"489"
   }
}

Example Response:

{
   "status":1,
   "data":"",
   "token":"xxxxxxx"
}