Skip to content

Commit

Permalink
feat: Support is_secondary for domain updates to indicate that the su…
Browse files Browse the repository at this point in the history
…bdomain is significant

If `is_secondary` is `true` and the application supports it, then the full domain name provided will be stored as the domain, including any subdomain(s).

i.e. we will not be storing the eTLD+1 as the domain in case a subdomain is provided.
  • Loading branch information
Mark Pitsilos committed Jul 30, 2024
1 parent 685118c commit 684091a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions domain/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ func (c *Client) Create(ctx context.Context, params *CreateParams) (*clerk.Domai

type UpdateParams struct {
clerk.APIParams
Name *string `json:"name,omitempty"`
ProxyURL *string `json:"proxy_url,omitempty"`
Name *string `json:"name,omitempty"`
ProxyURL *string `json:"proxy_url,omitempty"`
IsSecondary bool `json:"is_secondary"`
}

// Update updates a domain's properties.
Expand Down

0 comments on commit 684091a

Please sign in to comment.