
### invite <a name="invite"></a>
Invite a user to an organization with a specific role



**API Endpoint**: `POST /user/invite`

#### Example Snippet

```rust
let client = sideko_rest_api::SidekoClient::default()
    .with_api_key_auth(&std::env::var("API_KEY").unwrap())
    .with_cookie_auth(&std::env::var("API_KEY").unwrap());
let res = client
    .user()
    .invite(sideko_rest_api::resources::user::InviteRequest {
        email: "user@example.com".to_string(),
        role_definition_id: sideko_rest_api::models::RoleDefinitionIdEnum::ApiProjectAdmin,
    })
    .await;
```
