All URIs are relative to https://app.koyeb.com
Method | HTTP request | Description |
---|---|---|
CreateOrganizationInvitation | Post /v1/organization_invitations | |
DeleteOrganizationInvitation | Delete /v1/organization_invitations/{id} | |
GetOrganizationInvitation | Get /v1/organization_invitations/{id} | |
ListOrganizationInvitations | Get /v1/organization_invitations | |
ResendOrganizationInvitation | Post /v1/organization_invitations/{id}/resend |
CreateOrganizationInvitationReply CreateOrganizationInvitation(ctx).Body(body).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
body := *openapiclient.NewCreateOrganizationInvitationRequest() // CreateOrganizationInvitationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationInvitationsApi.CreateOrganizationInvitation(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationInvitationsApi.CreateOrganizationInvitation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateOrganizationInvitation`: CreateOrganizationInvitationReply
fmt.Fprintf(os.Stdout, "Response from `OrganizationInvitationsApi.CreateOrganizationInvitation`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateOrganizationInvitationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | CreateOrganizationInvitationRequest |
CreateOrganizationInvitationReply
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} DeleteOrganizationInvitation(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The id of the organization invitation to delete
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationInvitationsApi.DeleteOrganizationInvitation(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationInvitationsApi.DeleteOrganizationInvitation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteOrganizationInvitation`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `OrganizationInvitationsApi.DeleteOrganizationInvitation`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The id of the organization invitation to delete |
Other parameters are passed through a pointer to a apiDeleteOrganizationInvitationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetOrganizationInvitationReply GetOrganizationInvitation(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The id of the invitation to get
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationInvitationsApi.GetOrganizationInvitation(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationInvitationsApi.GetOrganizationInvitation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOrganizationInvitation`: GetOrganizationInvitationReply
fmt.Fprintf(os.Stdout, "Response from `OrganizationInvitationsApi.GetOrganizationInvitation`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The id of the invitation to get |
Other parameters are passed through a pointer to a apiGetOrganizationInvitationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
GetOrganizationInvitationReply
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListOrganizationInvitationsReply ListOrganizationInvitations(ctx).Limit(limit).Offset(offset).Statuses(statuses).UserId(userId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
limit := "limit_example" // string | (Optional) The number of items to return (optional)
offset := "offset_example" // string | (Optional) The offset in the list of item to return (optional)
statuses := []string{"Statuses_example"} // []string | (Optional) Filter on organization invitation statuses (optional)
userId := "userId_example" // string | (Optional) Filter on invitee ID. Will match both invitations sent to that user_id and invitations sent to the email of that user_id. The only valid value is the requester's user_id (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationInvitationsApi.ListOrganizationInvitations(context.Background()).Limit(limit).Offset(offset).Statuses(statuses).UserId(userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationInvitationsApi.ListOrganizationInvitations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListOrganizationInvitations`: ListOrganizationInvitationsReply
fmt.Fprintf(os.Stdout, "Response from `OrganizationInvitationsApi.ListOrganizationInvitations`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListOrganizationInvitationsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
limit | string | (Optional) The number of items to return | |
offset | string | (Optional) The offset in the list of item to return | |
statuses | []string | (Optional) Filter on organization invitation statuses | |
userId | string | (Optional) Filter on invitee ID. Will match both invitations sent to that user_id and invitations sent to the email of that user_id. The only valid value is the requester's user_id |
ListOrganizationInvitationsReply
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResendOrganizationInvitationReply ResendOrganizationInvitation(ctx, id).Body(body).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string | The id of the organization invitation to resend
body := map[string]interface{}{ ... } // map[string]interface{} |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationInvitationsApi.ResendOrganizationInvitation(context.Background(), id).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationInvitationsApi.ResendOrganizationInvitation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ResendOrganizationInvitation`: ResendOrganizationInvitationReply
fmt.Fprintf(os.Stdout, "Response from `OrganizationInvitationsApi.ResendOrganizationInvitation`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The id of the organization invitation to resend |
Other parameters are passed through a pointer to a apiResendOrganizationInvitationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | map[string]interface{} | |
ResendOrganizationInvitationReply
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]