POST | Disable password
  • 1 minute to read
  • Dark
    Light
  • PDF

POST | Disable password

  • Dark
    Light
  • PDF

Article summary

Disabled a password in MySafe.

Requirements

  • Permission to edit the password.
  • An active password in MySafe.

Request

POST api/mysafe/password/inactive/[identifier]

Request parameters

Send the parameter below in the path of the URL.

Example request

POST {{url}}api/mysafe/password/inactive/10

Response

HTTP/1.1 200 OK
{
    "code": 200,
    "response": {
        "status": 200,
        "message": "Password successfully deactivated",
        "error": false,
        "error_code": 0,
        "detail": "",
        "mensagem": "Password successfully deactivated",
        "erro": false,
        "cod_erro": 0
    }
}
Info

If the password is already inactive, the call will return a 200 response code with the message Password has already been deactivated.".

Errors

400 - Bad Request.

Message: "1005: Password not found"

Possible cause: the password wasn't found.

Solution: check the value for the identifier and resend the request.

Message: "1006: User does not have access"

Possible cause: user isn't allowed to access the item.


500 - Internal Server Error.

Message: "Unexpected error."

Possible cause: the error is in the senhasegura server.

Solution: contact the support team for more information.


No route matched with those values.

Message: "You are not authorized to access this resource."

Possíveis causas: failure in your application authentication with the senhasegura server.

Solution: check the authentication parameters such as Access Token URL, Client ID and Client Secret and request a new access token or check and correct the URL.


An invalid response was received from the upstream server .

Message: "An invalid response was received from the a seupstream server

Possible cause: the upstream server may be taking too long to respond, leading to a timeout error that is interpreted as an invalid response by the proxy/gateway server.

Solution: check the connectivity between the source of the request and the senhasegura server.


The upstream server is timing out.

Message: "The upstream server is timing out"

Possible cause: the request time has expired.

Solution: check the connectivity between the source of the request and the senhasegura server.



Was this article helpful?