---
updatedAt: 2026-04-20T19:25:32.000Z
---

# Modify a login policy

Modifies the specified login policy. Login policies help manage the user login experience by doing such things as specifying the exact path to the Capture domain and the user profile entity type, and defining the login URL.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Hosted Login",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://{hostname}"
    }
  ],
  "paths": {
    "/{customerId}/config/loginPolicies/{loginPolicyId}": {
      "put": {
        "operationId": "put-login-policy",
        "summary": "Modify a login policy",
        "description": "Modifies the specified login policy. Login policies help manage the user login experience by doing such things as specifying the exact path to the Capture domain and the user profile entity type, and defining the login URL.",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "id": "0ba507a6-75a9-47e7-86b4-68c0a64f9f7a",
                "identityStoreDetails": {
                  "type": "janrainCapture",
                  "connectionDetails": {
                    "domain": "us-dev.janraincapture.com",
                    "applicationId": "ces7u7uwwudrxtz933jvbehzne",
                    "entityType": "user",
                    "clientId": "6s7q89env535ek49hkz6hjsh3jgs93ud",
                    "clientSecret": "8c8frzvtxuoqbb7ayewvbgvn67s5dctx"
                  }
                },
                "loginURL": "https://v1.api.us.janrain.com/e0a70b4f-1eef-4856-bcdb-f050fee66aae/auth-ui/login",
                "customClaims": {
                  "userinfo": {
                    "organization": "primaryAddress.company"
                  }
                },
                "title": "Training Login Policy"
              },
              "schema": {
                "type": "object",
                "description": "Modifies the specified login policy. Login policies help manage the user login experience.\n",
                "properties": {
                  "id": {
                    "type": "string",
                    "readOnly": true,
                    "description": "Unique identifier of the login policy.\n"
                  },
                  "type": {
                    "type": "string",
                    "readOnly": true,
                    "enum": [
                      "janrainCapture"
                    ],
                    "description": "Login policy type. This value must be set to `janrainCapture`.\n"
                  },
                  "domain": {
                    "type": "string",
                    "readOnly": true,
                    "description": "URL of your Identity Cloud Capture domain.\n"
                  },
                  "applicationId": {
                    "type": "string",
                    "readOnly": true,
                    "description": "Unique identifier of the Identity Cloud application assigned to the login policy.\n"
                  },
                  "entityType": {
                    "type": "string",
                    "readOnly": true,
                    "description": "Name of the entity type where the user profiles are stored.\n"
                  },
                  "clientId": {
                    "type": "string",
                    "description": "Unique identifier of the `owner` client assigned to the login policy.\n"
                  },
                  "clientSecret": {
                    "type": "string",
                    "description": "Client secret of the `owner` client assigned to the login policy.\n"
                  },
                  "loginURL": {
                    "type": "string",
                    "description": "URL of the web page used for Hosted Login logins and registrations.\n"
                  },
                  "title": {
                    "type": "string",
                    "description": "Name of the login policy.\n"
                  },
                  "customClaims": {
                    "type": "array",
                    "description": "Returns user profile attributes that aren't returned by any of the allowed scopes.\n",
                    "items": {
                      "type": "string",
                      "description": "Name of a custom claim.\n"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "id": "0ba507a6-75a9-47e7-86b4-68c0a64f9f7a",
                  "identityStoreDetails": {
                    "type": "janrainCapture",
                    "connectionDetails": {
                      "domain": "us-dev.janraincapture.com",
                      "applicationId": "ces7u7uwwudrxtz933jvbehzne",
                      "entityType": "user",
                      "clientId": "6s7q89env535ek49hkz6hjsh3jgs93ud",
                      "clientSecret": "8c8frzvtxuoqbb7ayewvbgvn67s5dctx"
                    }
                  },
                  "loginURL": "https://v1.api.us.janrain.com/e0a70b4f-1eef-4856-bcdb-f050fee66aae/auth-ui/login",
                  "customClaims": {
                    "userinfo": {
                      "organization": "primaryAddress.company"
                    }
                  },
                  "title": "Training Login Policy",
                  "_links": {
                    "self": {
                      "href": "/config/e0a70b4f-1eef-4856-bcdb-f050fee66aae/loginPolicies/0ba507a6-75a9-47e7-86b4-68c0a64f9f7a"
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "description": "Returns information about the specified login policy. Login policies help manage the user login experience.\n",
                  "properties": {
                    "id": {
                      "type": "string",
                      "readOnly": true,
                      "description": "Unique identifier of the login policy.\n"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "janrainCapture"
                      ],
                      "description": "Login policy type. This needs to be set to `janrainCapture`.\n"
                    },
                    "domain": {
                      "type": "string",
                      "readOnly": true,
                      "description": "URL of your Identity Cloud Capture domain.\n"
                    },
                    "applicationId": {
                      "type": "string",
                      "readOnly": true,
                      "description": "Unique identifier of the Identity Cloud application assigned to the login policy.\n"
                    },
                    "entityType": {
                      "type": "string",
                      "readOnly": true,
                      "description": "Name of the entity type where the user profiles are stored.\n"
                    },
                    "clientId": {
                      "type": "string",
                      "description": "Unique identifier of the `owner` client assigned the login policy.\n"
                    },
                    "clientSecret": {
                      "type": "string",
                      "description": "Client secret of the `owner` client assigned to the login policy.\n"
                    },
                    "loginURL": {
                      "type": "string",
                      "description": "URL of the web page used for Hosted Login logins and registrations.\n"
                    },
                    "title": {
                      "type": "string",
                      "description": "Name of the new login policy.\n"
                    },
                    "customClaims": {
                      "type": "array",
                      "description": "Provides a way to return user profile attributes bot returned by any of the allowed scopes.\n"
                    },
                    "href": {
                      "type": "string",
                      "readOnly": true,
                      "description": "Configuration URL for the login policy.\n"
                    }
                  }
                }
              }
            },
            "description": "Successful response\n"
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "$ref": "#/paths/~1%7BcustomerId%7D~1config~1clients/get/responses/403/content/application~1json/example"
                }
              }
            },
            "description": "Typically occurs when you make a call using an invalid or expired administrative access token. See [Get started](ref:get-started) for information on configuring authentication for Hosted Login.\n"
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "$ref": "#/paths/~1%7BcustomerId%7D~1login~1jwk/get/responses/404/content/application~1json/example"
                }
              }
            },
            "description": "The specified item couldn't be found.\n"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/paths/~1%7BcustomerId%7D~1login~1jwk/parameters/0"
        },
        {
          "description": "Unique identifier of a Hosted Login policy. Login policies help manage the user login experience.\n",
          "in": "path",
          "name": "loginPolicyId",
          "required": true,
          "schema": {
            "type": "string",
            "example": "1e1ab726-f4b5-4bad-ba45-877027af4097"
          }
        }
      ]
    }
  },
  "x-readme": {
    "samples-languages": [
      "curl",
      "python",
      "node"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "externalDocs": {
    "url": "https://techdocs.akamai.com/identity-cloud-hosted-login/reference",
    "description": "See documention for Akamai's Identity Cloud: Hosted Login API\n"
  }
}
```