staff.skill

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
id (required)integerSkill id

CREATE

ParametersTypeDescription
token (required)Valid token
name (required)varcharSkill name

UPDATE

ParametersTypeDescription
token (required)Valid token
id (required)integerSkill id
name (required)varcharSkill name

DELETE

ParametersTypeDescription
token (required)Valid token
id (required)integerSkill id

DOCUMENTATION

GET
Returns skill specified by id.
Level 5 is required

--

Example Request:

{
   "module":"staff.skill",
   "method":"GET",
   "request":{
      "id":"374"
   }
}

Example Response:

{
   "status":1,
   "data":{
      "id":"374",
      "title":"Word"
   },
   "token":"xxxxxxx"
}

CREATE
Creates new skill.
Level 5 is required

--

Example Request:

{
   "module":"staff.skill",
   "method":"CREATE",
   "request":{
      "name":"jQuery"
   }
}

Example Response:

{
    "status":1,
    "data":{
    "id":"1496",
    "title":"JQuery"
    },
    "token":"xxxxxxx"
}

UPDATE
Updates skill.
Level 5 is required

--

Example Request:

{
   "module":"staff.skill",
   "method":"UPDATE",
   "request":{
      "id":"1496",
      "name":"jQuery - updated"
   }
}

Example Response:

{
    "status":1,
    "data":{
    "id":"1496",
    "title":"JQuery - updated"
    },
    "token":"xxxxxxx"
}

DELETE
Deletes skill.
Level 5 is required

--

Example Request:

{
   "module":"staff.skill",
   "method":"DELETE",
   "request":{
      "id":"1496"
   }
}

Example Response:

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