GET api/perfil/Editar

Request Information

URI Parameters

None.

Body Parameters

PerfilDTO
NameDescriptionTypeAdditional information
idperfil

integer

None.

perfil

string

String length: inclusive between 0 and 50

codcia

string

String length: inclusive between 0 and 10

nivel1

string

String length: inclusive between 0 and 1

nivel2

string

String length: inclusive between 0 and 1

nivel3

string

String length: inclusive between 0 and 1

nivel4

string

String length: inclusive between 0 and 1

padre

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "idperfil": 1,
  "perfil": "sample string 2",
  "codcia": "sample string 3",
  "nivel1": "sample string 4",
  "nivel2": "sample string 5",
  "nivel3": "sample string 6",
  "nivel4": "sample string 7",
  "padre": 8
}

application/xml, text/xml

Sample:
<PerfilDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.PeruOnline.Entidades">
  <codcia>sample string 3</codcia>
  <idperfil>1</idperfil>
  <nivel1>sample string 4</nivel1>
  <nivel2>sample string 5</nivel2>
  <nivel3>sample string 6</nivel3>
  <nivel4>sample string 7</nivel4>
  <padre>8</padre>
  <perfil>sample string 2</perfil>
</PerfilDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfICollectionOfPerfilDTO
NameDescriptionTypeAdditional information
status_code

HttpStatusCode

None.

message

string

None.

error

Exception

None.

result

Collection of PerfilDTO

None.

data

Collection of PerfilDTO

None.

resultado

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status_code": 100,
  "message": "sample string 1",
  "error": {
    "ClassName": "System.Exception",
    "Message": null,
    "Data": null,
    "InnerException": null,
    "HelpURL": "sample string 1",
    "StackTraceString": null,
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": 3,
    "Source": "sample string 2",
    "WatsonBuckets": null
  },
  "result": [
    {
      "idperfil": 1,
      "perfil": "sample string 2",
      "codcia": "sample string 3",
      "nivel1": "sample string 4",
      "nivel2": "sample string 5",
      "nivel3": "sample string 6",
      "nivel4": "sample string 7",
      "padre": 8
    },
    {
      "idperfil": 1,
      "perfil": "sample string 2",
      "codcia": "sample string 3",
      "nivel1": "sample string 4",
      "nivel2": "sample string 5",
      "nivel3": "sample string 6",
      "nivel4": "sample string 7",
      "padre": 8
    }
  ],
  "data": [
    {
      "idperfil": 1,
      "perfil": "sample string 2",
      "codcia": "sample string 3",
      "nivel1": "sample string 4",
      "nivel2": "sample string 5",
      "nivel3": "sample string 6",
      "nivel4": "sample string 7",
      "padre": 8
    },
    {
      "idperfil": 1,
      "perfil": "sample string 2",
      "codcia": "sample string 3",
      "nivel1": "sample string 4",
      "nivel2": "sample string 5",
      "nivel3": "sample string 6",
      "nivel4": "sample string 7",
      "padre": 8
    }
  ],
  "resultado": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseOfArrayOfPerfilDTOfJKJdik2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.PeruOnline.Models">
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Data.PeruOnline.Entidades">
    <d2p1:PerfilDTO>
      <d2p1:codcia>sample string 3</d2p1:codcia>
      <d2p1:idperfil>1</d2p1:idperfil>
      <d2p1:nivel1>sample string 4</d2p1:nivel1>
      <d2p1:nivel2>sample string 5</d2p1:nivel2>
      <d2p1:nivel3>sample string 6</d2p1:nivel3>
      <d2p1:nivel4>sample string 7</d2p1:nivel4>
      <d2p1:padre>8</d2p1:padre>
      <d2p1:perfil>sample string 2</d2p1:perfil>
    </d2p1:PerfilDTO>
    <d2p1:PerfilDTO>
      <d2p1:codcia>sample string 3</d2p1:codcia>
      <d2p1:idperfil>1</d2p1:idperfil>
      <d2p1:nivel1>sample string 4</d2p1:nivel1>
      <d2p1:nivel2>sample string 5</d2p1:nivel2>
      <d2p1:nivel3>sample string 6</d2p1:nivel3>
      <d2p1:nivel4>sample string 7</d2p1:nivel4>
      <d2p1:padre>8</d2p1:padre>
      <d2p1:perfil>sample string 2</d2p1:perfil>
    </d2p1:PerfilDTO>
  </data>
  <error xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
    <Message i:nil="true" xmlns="" />
    <Data i:nil="true" xmlns="" />
    <InnerException i:nil="true" xmlns="" />
    <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
    <StackTraceString i:nil="true" xmlns="" />
    <RemoteStackTraceString i:nil="true" xmlns="" />
    <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
    <ExceptionMethod i:nil="true" xmlns="" />
    <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
    <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
    <WatsonBuckets i:nil="true" xmlns="" />
  </error>
  <message>sample string 1</message>
  <result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Data.PeruOnline.Entidades">
    <d2p1:PerfilDTO>
      <d2p1:codcia>sample string 3</d2p1:codcia>
      <d2p1:idperfil>1</d2p1:idperfil>
      <d2p1:nivel1>sample string 4</d2p1:nivel1>
      <d2p1:nivel2>sample string 5</d2p1:nivel2>
      <d2p1:nivel3>sample string 6</d2p1:nivel3>
      <d2p1:nivel4>sample string 7</d2p1:nivel4>
      <d2p1:padre>8</d2p1:padre>
      <d2p1:perfil>sample string 2</d2p1:perfil>
    </d2p1:PerfilDTO>
    <d2p1:PerfilDTO>
      <d2p1:codcia>sample string 3</d2p1:codcia>
      <d2p1:idperfil>1</d2p1:idperfil>
      <d2p1:nivel1>sample string 4</d2p1:nivel1>
      <d2p1:nivel2>sample string 5</d2p1:nivel2>
      <d2p1:nivel3>sample string 6</d2p1:nivel3>
      <d2p1:nivel4>sample string 7</d2p1:nivel4>
      <d2p1:padre>8</d2p1:padre>
      <d2p1:perfil>sample string 2</d2p1:perfil>
    </d2p1:PerfilDTO>
  </result>
  <resultado>sample string 2</resultado>
  <status_code>Continue</status_code>
</ResponseOfArrayOfPerfilDTOfJKJdik2>