POST Api/Users/AceptTYCAndPrivacity

Metodo para Aceptar los "terminos y condiciones" y "contrato de privacidad de datos"

Request Information

URI Parameters

None.

Body Parameters

AceptTYCPrivRequest
NameDescriptionTypeAdditional information
idUser

ID del usuario

integer

None.

tyc

Bool Terminos y condiciones

boolean

None.

privacity

Bool aviso de privacidad

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "idUser": 1,
  "tyc": true,
  "privacity": true
}

application/xml, text/xml

Sample:
<AceptTYCPrivRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <idUser>1</idUser>
  <tyc>true</tyc>
  <privacity>true</privacity>
</AceptTYCPrivRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Bool: Operacion completada, String: Error en la solicitud

GenericResponse
NameDescriptionTypeAdditional 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>