Remove User From Project
client.Organizations.Users.RemoveFromProject(ctx, projectID, body) (*OrganizationUserRemoveFromProjectResponse, error)
DELETE/api/v1/organizations/{organization_id}/users/{user_id}/projects/{project_id}
Remove a user from a project.
Remove User From Project
package main
import (
"context"
"fmt"
"github.com/run-llama/llamacloud-admin-go"
"github.com/run-llama/llamacloud-admin-go/option"
)
func main() {
client := llamacloudadmin.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.Organizations.Users.RemoveFromProject(
context.TODO(),
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
llamacloudadmin.OrganizationUserRemoveFromProjectParams{
OrganizationID: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
UserID: "user_id",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response)
}
{}Returns Examples
{}