MCPcopy Index your code
hub / github.com/supabase/auth / NewPutAdminUsersUserIdRequestWithBody

Function NewPutAdminUsersUserIdRequestWithBody

client/admin/client.go:1065–1098  ·  view source on GitHub ↗

NewPutAdminUsersUserIdRequestWithBody generates requests for PutAdminUsersUserId with any type of body

(server string, userId openapi_types.UUID, contentType string, body io.Reader)

Source from the content-addressed store, hash-verified

1063
1064// NewPutAdminUsersUserIdRequestWithBody generates requests for PutAdminUsersUserId with any type of body
1065func NewPutAdminUsersUserIdRequestWithBody(server string, userId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) {
1066 var err error
1067
1068 var pathParam0 string
1069
1070 pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
1071 if err != nil {
1072 return nil, err
1073 }
1074
1075 serverURL, err := url.Parse(server)
1076 if err != nil {
1077 return nil, err
1078 }
1079
1080 operationPath := fmt.Sprintf("/admin/users/%s", pathParam0)
1081 if operationPath[0] == '/' {
1082 operationPath = "." + operationPath
1083 }
1084
1085 queryURL, err := serverURL.Parse(operationPath)
1086 if err != nil {
1087 return nil, err
1088 }
1089
1090 req, err := http.NewRequest("PUT", queryURL.String(), body)
1091 if err != nil {
1092 return nil, err
1093 }
1094
1095 req.Header.Add("Content-Type", contentType)
1096
1097 return req, nil
1098}
1099
1100// NewGetAdminUsersUserIdFactorsRequest generates requests for GetAdminUsersUserIdFactors
1101func NewGetAdminUsersUserIdFactorsRequest(server string, userId openapi_types.UUID) (*http.Request, error) {

Callers 2

Calls 2

AddMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…