POST Api/CourseKnowledge/Add
Metodo para agregar un nuevo nivel al catalogo id: solo requerido para actualización status: solo requerido para actualización
Request Information
URI Parameters
None.
Body Parameters
CourseKnowledgeRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| idKnowledge | integer |
None. |
|
| knowledge | string |
None. |
|
| estatus | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"idKnowledge": 1,
"knowledge": "sample string 2",
"estatus": true
}
application/xml, text/xml
Sample:
<CourseKnowledgeRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <idKnowledge>1</idKnowledge> <knowledge>sample string 2</knowledge> <estatus>true</estatus> </CourseKnowledgeRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GenericResponse
GenericResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| success |
La solicitud se realizo correctamente |
boolean |
None. |
| error |
Error arrojado por la API |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"error": "sample string 2"
}
application/xml, text/xml
Sample:
<GenericResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <success>true</success> <error>sample string 2</error> </GenericResponse>