POST api/Supervisor/Insert

Request Information

URI Parameters

None.

Body Parameters

Collection of SupervisorDto
NameDescriptionTypeAdditional information
gerenteId

integer

None.

gerenteNome

string

None.

gerenteCodigoErp

string

None.

codigoErp

string

None.

nome

string

None.

status

string

None.

photoUrl

string

None.

rolesList

Collection of piLookupModelOfString

None.

email

string

None.

senha

string

Data type: Password

String length: inclusive between 8 and 100

telefone

string

None.

key

integer

None.

id

integer

None.

isNew

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "gerenteId": 1,
    "gerenteNome": "sample string 2",
    "gerenteCodigoErp": "sample string 3",
    "codigoErp": "sample string 4",
    "nome": "sample string 5",
    "status": "sample string 6",
    "photoUrl": "sample string 7",
    "rolesList": [
      {
        "value": "sample string 1",
        "text": "sample string 2",
        "group": "sample string 3"
      },
      {
        "value": "sample string 1",
        "text": "sample string 2",
        "group": "sample string 3"
      }
    ],
    "email": "sample string 8",
    "senha": "sample string 9",
    "telefone": "10",
    "key": 11,
    "id": 11,
    "isNew": true
  },
  {
    "gerenteId": 1,
    "gerenteNome": "sample string 2",
    "gerenteCodigoErp": "sample string 3",
    "codigoErp": "sample string 4",
    "nome": "sample string 5",
    "status": "sample string 6",
    "photoUrl": "sample string 7",
    "rolesList": [
      {
        "value": "sample string 1",
        "text": "sample string 2",
        "group": "sample string 3"
      },
      {
        "value": "sample string 1",
        "text": "sample string 2",
        "group": "sample string 3"
      }
    ],
    "email": "sample string 8",
    "senha": "sample string 9",
    "telefone": "10",
    "key": 11,
    "id": 11,
    "isNew": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfSupervisorDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Linkcards.Webapi.Models.Tenant">
  <SupervisorDto>
    <isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew>
    <key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">11</key>
    <email>sample string 8</email>
    <nome>sample string 5</nome>
    <photoUrl>sample string 7</photoUrl>
    <rolesList xmlns:d3p1="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models.Pesquisa">
      <d3p1:piLookupModelOfstring>
        <d3p1:group>sample string 3</d3p1:group>
        <d3p1:text>sample string 2</d3p1:text>
        <d3p1:value>sample string 1</d3p1:value>
      </d3p1:piLookupModelOfstring>
      <d3p1:piLookupModelOfstring>
        <d3p1:group>sample string 3</d3p1:group>
        <d3p1:text>sample string 2</d3p1:text>
        <d3p1:value>sample string 1</d3p1:value>
      </d3p1:piLookupModelOfstring>
    </rolesList>
    <senha>sample string 9</senha>
    <status>sample string 6</status>
    <telefone>10</telefone>
    <codigoErp>sample string 4</codigoErp>
    <gerenteCodigoErp>sample string 3</gerenteCodigoErp>
    <gerenteId>1</gerenteId>
    <gerenteNome>sample string 2</gerenteNome>
  </SupervisorDto>
  <SupervisorDto>
    <isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew>
    <key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">11</key>
    <email>sample string 8</email>
    <nome>sample string 5</nome>
    <photoUrl>sample string 7</photoUrl>
    <rolesList xmlns:d3p1="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models.Pesquisa">
      <d3p1:piLookupModelOfstring>
        <d3p1:group>sample string 3</d3p1:group>
        <d3p1:text>sample string 2</d3p1:text>
        <d3p1:value>sample string 1</d3p1:value>
      </d3p1:piLookupModelOfstring>
      <d3p1:piLookupModelOfstring>
        <d3p1:group>sample string 3</d3p1:group>
        <d3p1:text>sample string 2</d3p1:text>
        <d3p1:value>sample string 1</d3p1:value>
      </d3p1:piLookupModelOfstring>
    </rolesList>
    <senha>sample string 9</senha>
    <status>sample string 6</status>
    <telefone>10</telefone>
    <codigoErp>sample string 4</codigoErp>
    <gerenteCodigoErp>sample string 3</gerenteCodigoErp>
    <gerenteId>1</gerenteId>
    <gerenteNome>sample string 2</gerenteNome>
  </SupervisorDto>
</ArrayOfSupervisorDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.