PUT api/CadastroPaciente/PutAtualizar?codClienteSSN={codClienteSSN}&idCliente={idCliente}

PUT api/CadastroPaciente/PutAtualizar?codClienteSSN=X&idCliente=Y — corpo {Alteracoes[{Campo, Original, Valor}], CidadeCodigoIBGE?, Usuario}. 200 {Cadastro, SomenteLeitura, Avisos, NadaAlterado} / 400 {Erros} / 404 / 409 {Conflitos[{Campo, ValorAtual}], Cadastro, SomenteLeitura}.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
codClienteSSN

string

Required

idCliente

integer

Required

Body Parameters

AtualizarCadastroPacienteRequest
NameDescriptionTypeAdditional information
Alteracoes

Collection of AlteracaoCampoRequest

None.

CidadeCodigoIBGE

Código IBGE devolvido pela busca de CEP (resolve CidadeFK).

string

None.

Usuario

Login de quem está salvando (histórico de status e log).

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Alteracoes": [
    {
      "Campo": "sample string 1",
      "Original": null,
      "Valor": null
    },
    {
      "Campo": "sample string 1",
      "Original": null,
      "Valor": null
    }
  ],
  "CidadeCodigoIBGE": "sample string 1",
  "Usuario": "sample string 2"
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AtualizarCadastroPacienteRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.