MCPcopy Index your code
hub / github.com/harness/harness / UserUpdate

Method UserUpdate

client/client.go:132–137  ·  view source on GitHub ↗

UserUpdate updates a user account by ID or email.

(ctx context.Context, key string, user *types.UserInput)

Source from the content-addressed store, hash-verified

130
131// UserUpdate updates a user account by ID or email.
132func (c *HTTPClient) UserUpdate(ctx context.Context, key string, user *types.UserInput) (*types.User, error) {
133 out := new(types.User)
134 uri := fmt.Sprintf("%s/api/v1/users/%s", c.base, key)
135 err := c.patch(ctx, uri, user, out)
136 return out, err
137}
138
139// UserDelete deletes a user account by ID or email.
140func (c *HTTPClient) UserDelete(ctx context.Context, key string) error {

Callers

nothing calls this directly

Calls 1

patchMethod · 0.95

Tested by

no test coverage detected