Skip to content

Latest commit

 

History

History
146 lines (91 loc) · 4.17 KB

InstitutionMembersAPI.md

File metadata and controls

146 lines (91 loc) · 4.17 KB

\InstitutionMembersAPI

All URIs are relative to https://api.paxos.com/v2

Method HTTP request Description
AddInstitutionMembers Post /identity/institution-members Add Institution Members
DeleteInstitutionMember Delete /identity/institution-members/{id} Remove Institution Member

AddInstitutionMembers

AddInstitutionMembersResponse AddInstitutionMembers(ctx).AddInstitutionMembersRequest(addInstitutionMembersRequest).Execute()

Add Institution Members

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/avianlabs/paxos-go"
)

func main() {
	addInstitutionMembersRequest := *openapiclient.NewAddInstitutionMembersRequest("InstitutionId_example", []openapiclient.InstitutionMember{*openapiclient.NewInstitutionMember()}) // AddInstitutionMembersRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.InstitutionMembersAPI.AddInstitutionMembers(context.Background()).AddInstitutionMembersRequest(addInstitutionMembersRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `InstitutionMembersAPI.AddInstitutionMembers``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `AddInstitutionMembers`: AddInstitutionMembersResponse
	fmt.Fprintf(os.Stdout, "Response from `InstitutionMembersAPI.AddInstitutionMembers`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiAddInstitutionMembersRequest struct via the builder pattern

Name Type Description Notes
addInstitutionMembersRequest AddInstitutionMembersRequest

Return type

AddInstitutionMembersResponse

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteInstitutionMember

map[string]interface{} DeleteInstitutionMember(ctx, id).Execute()

Remove Institution Member

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/avianlabs/paxos-go"
)

func main() {
	id := "id_example" // string | The institution member ID that should be removed from the institution.

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.InstitutionMembersAPI.DeleteInstitutionMember(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `InstitutionMembersAPI.DeleteInstitutionMember``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteInstitutionMember`: map[string]interface{}
	fmt.Fprintf(os.Stdout, "Response from `InstitutionMembersAPI.DeleteInstitutionMember`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string The institution member ID that should be removed from the institution.

Other Parameters

Other parameters are passed through a pointer to a apiDeleteInstitutionMemberRequest struct via the builder pattern

Name Type Description Notes

Return type

map[string]interface{}

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]