POST v2/alterar-senha?codigoUsuario={codigoUsuario}&senhaUsuario={senhaUsuario}&codigoOperacao={codigoOperacao}&novaSenha={novaSenha}&senhaConfirmada={senhaConfirmada}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| codigoUsuario | integer |
Required |
|
| senhaUsuario | string |
Required |
|
| codigoOperacao | string |
Required |
|
| novaSenha | string |
Required |
|
| senhaConfirmada | string |
Required |
Body Parameters
None.
Response Information
Resource Description
AlterarSenhaDetranBaV2Retorno| Name | Description | Type | Additional information |
|---|---|---|---|
| isOk | boolean |
None. |
|
| pages | Pages2 |
None. |
|
| messages | Collection of Message2 |
None. |
|
| items | Collection of Item2 |
None. |
|
| status | integer |
None. |
|
| detail | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"isOk": true,
"pages": {
"totalItems": 1,
"total": 2,
"actual": 3,
"offset": 4
},
"messages": [
{
"messageId": "sample string 1",
"objectId": "sample string 2",
"type": 3,
"message": "sample string 4",
"messageUs": "sample string 5",
"lastUpdate": "2025-12-07T23:19:48.7511958-03:00",
"showBadge": true
},
{
"messageId": "sample string 1",
"objectId": "sample string 2",
"type": 3,
"message": "sample string 4",
"messageUs": "sample string 5",
"lastUpdate": "2025-12-07T23:19:48.7511958-03:00",
"showBadge": true
}
],
"items": [
{
"retornoCritica": 1,
"mensagem": "sample string 2",
"codigoUsuario": 3,
"senhaUsuario": "sample string 4",
"codigoOperacao": "sample string 5",
"novaSenha": "sample string 6",
"senhaConfirmada": "sample string 7"
},
{
"retornoCritica": 1,
"mensagem": "sample string 2",
"codigoUsuario": 3,
"senhaUsuario": "sample string 4",
"codigoOperacao": "sample string 5",
"novaSenha": "sample string 6",
"senhaConfirmada": "sample string 7"
}
],
"status": 2,
"detail": "sample string 3"
}
application/xml, text/xml
Sample:
<AlterarSenhaDetranBaV2Retorno xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartPlacas.Services.UI.Detran.Models">
<detail>sample string 3</detail>
<isOk>true</isOk>
<items>
<AlterarSenhaDetranBaV2Retorno.Item2>
<codigoOperacao>sample string 5</codigoOperacao>
<codigoUsuario>3</codigoUsuario>
<mensagem>sample string 2</mensagem>
<novaSenha>sample string 6</novaSenha>
<retornoCritica>1</retornoCritica>
<senhaConfirmada>sample string 7</senhaConfirmada>
<senhaUsuario>sample string 4</senhaUsuario>
</AlterarSenhaDetranBaV2Retorno.Item2>
<AlterarSenhaDetranBaV2Retorno.Item2>
<codigoOperacao>sample string 5</codigoOperacao>
<codigoUsuario>3</codigoUsuario>
<mensagem>sample string 2</mensagem>
<novaSenha>sample string 6</novaSenha>
<retornoCritica>1</retornoCritica>
<senhaConfirmada>sample string 7</senhaConfirmada>
<senhaUsuario>sample string 4</senhaUsuario>
</AlterarSenhaDetranBaV2Retorno.Item2>
</items>
<messages>
<AlterarSenhaDetranBaV2Retorno.Message2>
<lastUpdate>2025-12-07T23:19:48.7511958-03:00</lastUpdate>
<message>sample string 4</message>
<messageId>sample string 1</messageId>
<messageUs>sample string 5</messageUs>
<objectId>sample string 2</objectId>
<showBadge>true</showBadge>
<type>3</type>
</AlterarSenhaDetranBaV2Retorno.Message2>
<AlterarSenhaDetranBaV2Retorno.Message2>
<lastUpdate>2025-12-07T23:19:48.7511958-03:00</lastUpdate>
<message>sample string 4</message>
<messageId>sample string 1</messageId>
<messageUs>sample string 5</messageUs>
<objectId>sample string 2</objectId>
<showBadge>true</showBadge>
<type>3</type>
</AlterarSenhaDetranBaV2Retorno.Message2>
</messages>
<pages>
<actual>3</actual>
<offset>4</offset>
<total>2</total>
<totalItems>1</totalItems>
</pages>
<status>2</status>
</AlterarSenhaDetranBaV2Retorno>