Update the name of an MFA method

Change the name of an existing Multi-Factor Authentication (MFA) method. This can be useful for clearly identifying different MFA devices or methods associated with your account. The API returns an ID that can be used to track the update process.

Headers

Accept Example
Content-Type Example

Body

required
application/json
methodId integer required
name string required

Responses

200
success boolean
timestamp string
requestId string
data object
PATCH https://cloud.hostup.se/api/mfa/methods
For AI assistants
cURL
curl -X PATCH "https://cloud.hostup.se/api/mfa/methods" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "methodId": 0,
    "name": "string"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true
  }
}
Request Body
{
  "methodId": 0,
  "name": "string"
}