Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORGS-67: Update user serializer to add CreateOrganizationsLimit field #305

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type User struct {
VerificationAttemptsRemaining *int64 `json:"verification_attempts_remaining"`
DeleteSelfEnabled bool `json:"delete_self_enabled"`
CreateOrganizationEnabled bool `json:"create_organization_enabled"`
CreateOrganizationsLimit *int `json:"create_organizations_limit,omitempty"`
LastActiveAt *int64 `json:"last_active_at"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
Expand Down
1 change: 1 addition & 0 deletions user/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ type UpdateParams struct {
BackupCodes *[]string `json:"backup_codes,omitempty"`
DeleteSelfEnabled *bool `json:"delete_self_enabled,omitempty"`
CreateOrganizationEnabled *bool `json:"create_organization_enabled,omitempty"`
CreateOrganizationsLimit *int `json:"create_organizations_limit,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Is support for this field coming soon or already available?

I can't find it in our docs: https://clerk.com/docs/reference/backend-api/tag/Users#operation/UpdateUser

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet, it's pending on this PR https://github.com/clerk/clerk_go/pull/7124! I'll add to the readme a warning

// Specified in RFC3339 format
CreatedAt *string `json:"created_at,omitempty"`
}
Expand Down
Loading