POST api/v3/createtenants

Request Information

URI Parameters

None.

Body Parameters

TenantEmpresaInput
NameDescriptionTypeAdditional information
TenantId

globally unique identifier

None.

TenantAlias

string

None.

FiliaisDeRetirada

Collection of TenantFiliaisDeRetiradaInput

None.

CriarEmpresa

boolean

None.

Senha

string

None.

TenantGroup_Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "TenantId": "2d3c66fb-28f6-401c-b7af-f8eb20962f63",
  "TenantAlias": "sample string 2",
  "FiliaisDeRetirada": [
    {
      "Identificador": 1,
      "TenantId": "ef3b6522-31b7-4b02-9a99-56ef3c36441c",
      "TenantAlias": "sample string 2"
    },
    {
      "Identificador": 1,
      "TenantId": "ef3b6522-31b7-4b02-9a99-56ef3c36441c",
      "TenantAlias": "sample string 2"
    }
  ],
  "CriarEmpresa": true,
  "Senha": "sample string 4",
  "TenantGroup_Id": 1
}

application/xml, text/xml

Sample:
<TenantEmpresaInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Common.Input.v3">
  <CriarEmpresa>true</CriarEmpresa>
  <FiliaisDeRetirada>
    <TenantFiliaisDeRetiradaInput>
      <Identificador>1</Identificador>
      <TenantAlias>sample string 2</TenantAlias>
      <TenantId>ef3b6522-31b7-4b02-9a99-56ef3c36441c</TenantId>
    </TenantFiliaisDeRetiradaInput>
    <TenantFiliaisDeRetiradaInput>
      <Identificador>1</Identificador>
      <TenantAlias>sample string 2</TenantAlias>
      <TenantId>ef3b6522-31b7-4b02-9a99-56ef3c36441c</TenantId>
    </TenantFiliaisDeRetiradaInput>
  </FiliaisDeRetirada>
  <Senha>sample string 4</Senha>
  <TenantAlias>sample string 2</TenantAlias>
  <TenantGroup_Id>1</TenantGroup_Id>
  <TenantId>2d3c66fb-28f6-401c-b7af-f8eb20962f63</TenantId>
</TenantEmpresaInput>

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.