# Reset SIP Account Password

Generates a new password for the given SIP Account. The new decrypted password will be returned in the response body.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Sip Accounts API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.cm.com"
    }
  ],
  "paths": {
    "/voice-sipaccountsapi/v1/{voiceAccountGuid}/sipAccounts/{sipAccountGuid}/resetpassword": {
      "put": {
        "tags": [
          "Sip Accounts"
        ],
        "summary": "Reset SIP Account Password",
        "description": "Generates a new password for the given SIP Account. The new decrypted password will be returned in the response body.",
        "parameters": [
          {
            "name": "voiceAccountGuid",
            "in": "path",
            "description": "Unique identifier of the Voice Account.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "00000000-0000-0000-0000-000000000000"
          },
          {
            "name": "sipAccountGuid",
            "in": "path",
            "description": "Unique identifier of the SIP Account.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "00000000-0000-0000-0000-000000000000"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiSipAccountCredentials"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCollection"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCollection"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiSipAccountCredentials": {
        "title": "Sip Account Credentials",
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "Username of the SIP Account.",
            "nullable": true
          },
          "password": {
            "type": "string",
            "description": "Password of the SIP Account.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The login credentials for a SIP Account."
      },
      "Error": {
        "title": "Error",
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ErrorCollection": {
        "title": "Error Collection",
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "X-CM-PRODUCTTOKEN": {
        "type": "apiKey",
        "description": "Your producttoken",
        "name": "X-CM-PRODUCTTOKEN",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "X-CM-PRODUCTTOKEN": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 98,
      "1": 254,
      "2": 39,
      "3": 241,
      "4": 128,
      "5": 239,
      "6": 120,
      "7": 0,
      "8": 82,
      "9": 163,
      "10": 4,
      "11": 41
    }
  }
}
```