training.section

Manage an individual training section (parent group category)

SUPPORTED METHODS:

GET

Parameters

Type

Description

token (required)

Valid token

id (required)

integer

Training section id

UPDATE

Parameters

Type

Description

token (required)

Valid token

id (required)

integer

Training section id

title (accepted)

varchar

Title

global (accepted)

enum (0, 1)

DELETE

Parameters

Type

Description

token (required)

Valid token

id (required)

integer

Training section id

CREATE

Parameters

Type

Description

token (required)

Valid token

title (required)

varchar

Section 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"
}