# Update Existing Auth Module

## Request

```CURL
POST [[[<REST API URL>|Hub-Rest-Api-URL.html]]]/authmodules/auth module id
```

### Request Body

#### authmodule

extends [idItem](HUB-REST-API_JSON-Scheme.html#idItem)

extended by [azureauthmodule](HUB-REST-API_JSON-Scheme.html#azureauthmodule), [coreauthmodule](HUB-REST-API_JSON-Scheme.html#coreauthmodule), [externalauthmodule](HUB-REST-API_JSON-Scheme.html#externalauthmodule), [externaloauth2module](HUB-REST-API_JSON-Scheme.html#externaloauth2module), [externalpasswordauthmodule](HUB-REST-API_JSON-Scheme.html#externalpasswordauthmodule), [githubauthmodule](HUB-REST-API_JSON-Scheme.html#githubauthmodule), [googleauthmodule](HUB-REST-API_JSON-Scheme.html#googleauthmodule), [jbaHydraMigrationAuthModule](HUB-REST-API_JSON-Scheme.html#jbaHydraMigrationAuthModule), [jbaoauthauthmodule](HUB-REST-API_JSON-Scheme.html#jbaoauthauthmodule), [jiraauthmodule](HUB-REST-API_JSON-Scheme.html#jiraauthmodule), [ldapauthmodule](HUB-REST-API_JSON-Scheme.html#ldapauthmodule), [oauth2authmodule](HUB-REST-API_JSON-Scheme.html#oauth2authmodule), [oidcauthmodule](HUB-REST-API_JSON-Scheme.html#oidcauthmodule), [oktaAuthmodule](HUB-REST-API_JSON-Scheme.html#oktaAuthmodule), [openidauthmodule](HUB-REST-API_JSON-Scheme.html#openidauthmodule), [samlAuthModule](HUB-REST-API_JSON-Scheme.html#samlAuthModule), [userCreationAuthModule](HUB-REST-API_JSON-Scheme.html#userCreationAuthModule)

```JSON
{
  "name": string, 
  "ordinal": int, 
  "accountsSize": int, 
  "disabled": boolean, 
  "isDefault": boolean, 
  "autoJoinGroups": [[[[userGroup|HUB-REST-API_JSON-Scheme.html#userGroup]]], ...], 
  "orgId": string, 
    "id": string , 
    "aliases": [[[[alias|HUB-REST-API_JSON-Scheme.html#alias]]], ...] 
}
```

## Response

|  Response Code  |  Meaning  |
| --- | --- |
|  200 OK  |  Successful request.  |
|  400 Bad Request  |  At least one of the request parameters is invalid. For example, a required field in the passed JSON object is missing. For details, check the error message in the response.  |
|  403 Forbidden  |  The requester has no access to the requested resource.  |
|  404 Not Found  |  The requested resource was not found.  |
|  500 Internal Server Error  |  Failed to process request because of the server error. For details, check the error message in the response.  |

