Api doc


SDK's


Api Modules

training.section

Manage an individual training section (parent group category)



Supported Methods:

GET
Params
  • token (Required): valid token
  • id (Required): integer


UPDATE
Params
  • token (Required): valid token
  • id (Required): integer
  • title: varchar
  • global: enum (0, 1)


DELETE
Params
  • token (Required): valid token
  • id (Required): integer


CREATE
Params
  • token (Required): valid token
  • title (Required): varchar


Documentation

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

--

Parameters:

  1. "id": required //Training section id (integer)
  2. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "method":"GET",
  3. "module":"training.section",
  4. "request":{
  5. "id":"454"
  6. }
  7. }

Example Response:

  1. {
  2. "status":1,
  3. "data":{
  4. "id":"454",
  5. "store":"11",
  6. "title":"Scheduling",
  7. "created":"1334806092",
  8. "created_by":"123",
  9. "deleted":"0",
  10. "deleted_by":"0"
  11. },
  12. "token":"xxxxxxx"
  13. }

---

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

--

Parameters:

  1. "title": required //Title (varchar)
  2. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"training.section",
  3. "method":"CREATE",
  4. "request":{
  5. "title":"New Section"
  6. }
  7. }

Example response:

  1. {
  2. "status":1,
  3. "data":{
  4. "id":"456",
  5. "store":"11",
  6. "title":"New Section",
  7. "created":"1334806092",
  8. "created_by":"123",
  9. "deleted":"0",
  10. "deleted_by":"0"
  11. },
  12. "token":"xxxxxxx"
  13. }

---

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

--

Parameters:

  1. "id": required //Training section id (integer)
  2. "title": required //Title (varchar)
  3. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"training.section",
  3. "method":"UPDATE",
  4. "request":{
  5. "id":"456",
  6. "title":"New title"
  7. }
  8. }

Example Response:

  1. {
  2. "status":1,
  3. "data":{
  4. "id":"456",
  5. "store":"11",
  6. "title":"New Title",
  7. "created":"1334806092",
  8. "created_by":"123",
  9. "deleted":"0",
  10. "deleted_by":"0"
  11. },
  12. "token":"xxxxxxx"
  13. }

---

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

--

Parameters:

  1. "id": required //Training section id (integer)
  2. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"training.section",
  3. "method":"DELETE",
  4. "request":{
  5. "id":"489"
  6. }
  7. }

Example Response:

  1. {
  2. "status":1,
  3. "data":"",
  4. "token":"xxxxxxx"
  5. }

GET STARTED NOW

Free Trial. No Credit Card Required.

close
(e.g.+14158675309 or +1415-8675-309)

By clicking "Create my Humanity Account" you agree to the Terms of Service and Privacy Policy.

Have a promotional code?Click Here


LIVE CHAT DEMO REQUEST!

Please provide information below.

close
INSTANT DEMOSCHEDULED DEMO
Connect with a Humanity Team Member for a live demo right now!
 

RESELLER REQUEST!

Please provide information below.

close