PUT
/
environments
/
{environmentId}
/
sdkViews
/
{sdkViewType}
curl --request PUT \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/sdkViews/{sdkViewType} \
  --header 'Content-Type: application/json' \
  --data '{
  "sections": [
    {
      "type": "email",
      "label": "<string>",
      "numOfItemsToDisplay": 123,
      "defaultItem": "<string>"
    }
  ]
}'
{
  "type": "login",
  "sections": [
    {
      "type": "email",
      "label": "<string>",
      "numOfItemsToDisplay": 123,
      "defaultItem": "<string>"
    }
  ]
}

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
sdkViewType
enum<string>
required

Type of sdk view

Available options:
login

Body

application/json

Request body to update the sdk view for an environment.

sections
object[]

The sections which will be used create the view in the sdk. The sections will be displayed in the order that they appear in the array.

Response

201
application/json
Successfully created

Configs used to create the view in the sdk.

type
enum<string>
required
Available options:
login
sections
object[]

The sections which will be used create the view in the sdk. The sections will be displayed in the order that they appear in the array.