|
| 1 | +<a name="__pageTop"></a> |
| 2 | +# phasetwo.apis.tags.organization_invitation_api.OrganizationInvitationApi |
| 3 | + |
| 4 | +All URIs are relative to *https://app.phasetwo.io/realms* |
| 5 | + |
| 6 | +Method | HTTP request | Description |
| 7 | +------------- | ------------- | ------------- |
| 8 | +[**get_organization_invitation_by_id**](#get_organization_invitation_by_id) | **get** /{realm}/orgs/{orgId}/invitations/{invitationId} | Get organization invitation by ID |
| 9 | +[**resend_organization_invitation**](#resend_organization_invitation) | **put** /{realm}/orgs/{orgId}/invitations/{invitationId}/resend-email | Resend an Organization Invitation |
| 10 | + |
| 11 | +# **get_organization_invitation_by_id** |
| 12 | +<a name="get_organization_invitation_by_id"></a> |
| 13 | +> InvitationRepresentation get_organization_invitation_by_id(realmorg_idinvitation_id) |
| 14 | +
|
| 15 | +Get organization invitation by ID |
| 16 | + |
| 17 | +Get an invitation to an organization by its uuid. |
| 18 | + |
| 19 | +### Example |
| 20 | + |
| 21 | +* Bearer Authentication (access_token): |
| 22 | +```python |
| 23 | +import phasetwo |
| 24 | +from phasetwo.apis.tags import organization_invitation_api |
| 25 | +from phasetwo.model.invitation_representation import InvitationRepresentation |
| 26 | +from pprint import pprint |
| 27 | +# Defining the host is optional and defaults to https://app.phasetwo.io/realms |
| 28 | +# See configuration.py for a list of all supported configuration parameters. |
| 29 | +configuration = phasetwo.Configuration( |
| 30 | + host = "https://app.phasetwo.io/realms" |
| 31 | +) |
| 32 | + |
| 33 | +# The client must configure the authentication and authorization parameters |
| 34 | +# in accordance with the API server security policy. |
| 35 | +# Examples for each auth method are provided below, use the example that |
| 36 | +# satisfies your auth use case. |
| 37 | + |
| 38 | +# Configure Bearer authorization: access_token |
| 39 | +configuration = phasetwo.Configuration( |
| 40 | + access_token = 'YOUR_BEARER_TOKEN' |
| 41 | +) |
| 42 | +# Enter a context with an instance of the API client |
| 43 | +with phasetwo.ApiClient(configuration) as api_client: |
| 44 | + # Create an instance of the API class |
| 45 | + api_instance = organization_invitation_api.OrganizationInvitationApi(api_client) |
| 46 | + |
| 47 | + # example passing only required values which don't have defaults set |
| 48 | + path_params = { |
| 49 | + 'realm': "realm_example", |
| 50 | + 'orgId': "orgId_example", |
| 51 | + 'invitationId': "invitationId_example", |
| 52 | + } |
| 53 | + try: |
| 54 | + # Get organization invitation by ID |
| 55 | + api_response = api_instance.get_organization_invitation_by_id( |
| 56 | + path_params=path_params, |
| 57 | + ) |
| 58 | + pprint(api_response) |
| 59 | + except phasetwo.ApiException as e: |
| 60 | + print("Exception when calling OrganizationInvitationApi->get_organization_invitation_by_id: %s\n" % e) |
| 61 | +``` |
| 62 | +### Parameters |
| 63 | + |
| 64 | +Name | Type | Description | Notes |
| 65 | +------------- | ------------- | ------------- | ------------- |
| 66 | +path_params | RequestPathParams | | |
| 67 | +accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client |
| 68 | +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file |
| 69 | +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client |
| 70 | +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned |
| 71 | + |
| 72 | +### path_params |
| 73 | +#### RequestPathParams |
| 74 | + |
| 75 | +Name | Type | Description | Notes |
| 76 | +------------- | ------------- | ------------- | ------------- |
| 77 | +realm | RealmSchema | | |
| 78 | +orgId | OrgIdSchema | | |
| 79 | +invitationId | InvitationIdSchema | | |
| 80 | + |
| 81 | +# RealmSchema |
| 82 | + |
| 83 | +## Model Type Info |
| 84 | +Input Type | Accessed Type | Description | Notes |
| 85 | +------------ | ------------- | ------------- | ------------- |
| 86 | +str, | str, | | |
| 87 | + |
| 88 | +# OrgIdSchema |
| 89 | + |
| 90 | +## Model Type Info |
| 91 | +Input Type | Accessed Type | Description | Notes |
| 92 | +------------ | ------------- | ------------- | ------------- |
| 93 | +str, | str, | | |
| 94 | + |
| 95 | +# InvitationIdSchema |
| 96 | + |
| 97 | +## Model Type Info |
| 98 | +Input Type | Accessed Type | Description | Notes |
| 99 | +------------ | ------------- | ------------- | ------------- |
| 100 | +str, | str, | | |
| 101 | + |
| 102 | +### Return Types, Responses |
| 103 | + |
| 104 | +Code | Class | Description |
| 105 | +------------- | ------------- | ------------- |
| 106 | +n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned |
| 107 | +200 | [ApiResponseFor200](#get_organization_invitation_by_id.ApiResponseFor200) | success |
| 108 | + |
| 109 | +#### get_organization_invitation_by_id.ApiResponseFor200 |
| 110 | +Name | Type | Description | Notes |
| 111 | +------------- | ------------- | ------------- | ------------- |
| 112 | +response | urllib3.HTTPResponse | Raw response | |
| 113 | +body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | |
| 114 | +headers | Unset | headers were not defined | |
| 115 | + |
| 116 | +# SchemaFor200ResponseBodyApplicationJson |
| 117 | +Type | Description | Notes |
| 118 | +------------- | ------------- | ------------- |
| 119 | +[**InvitationRepresentation**](../../models/InvitationRepresentation.md) | | |
| 120 | + |
| 121 | + |
| 122 | +### Authorization |
| 123 | + |
| 124 | +[access_token](../../../README.md#access_token) |
| 125 | + |
| 126 | +[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) |
| 127 | + |
| 128 | +# **resend_organization_invitation** |
| 129 | +<a name="resend_organization_invitation"></a> |
| 130 | +> resend_organization_invitation(realmorg_idinvitation_id) |
| 131 | +
|
| 132 | +Resend an Organization Invitation |
| 133 | + |
| 134 | +Resend the email for an existing Organization Invitation |
| 135 | + |
| 136 | +### Example |
| 137 | + |
| 138 | +* Bearer Authentication (access_token): |
| 139 | +```python |
| 140 | +import phasetwo |
| 141 | +from phasetwo.apis.tags import organization_invitation_api |
| 142 | +from pprint import pprint |
| 143 | +# Defining the host is optional and defaults to https://app.phasetwo.io/realms |
| 144 | +# See configuration.py for a list of all supported configuration parameters. |
| 145 | +configuration = phasetwo.Configuration( |
| 146 | + host = "https://app.phasetwo.io/realms" |
| 147 | +) |
| 148 | + |
| 149 | +# The client must configure the authentication and authorization parameters |
| 150 | +# in accordance with the API server security policy. |
| 151 | +# Examples for each auth method are provided below, use the example that |
| 152 | +# satisfies your auth use case. |
| 153 | + |
| 154 | +# Configure Bearer authorization: access_token |
| 155 | +configuration = phasetwo.Configuration( |
| 156 | + access_token = 'YOUR_BEARER_TOKEN' |
| 157 | +) |
| 158 | +# Enter a context with an instance of the API client |
| 159 | +with phasetwo.ApiClient(configuration) as api_client: |
| 160 | + # Create an instance of the API class |
| 161 | + api_instance = organization_invitation_api.OrganizationInvitationApi(api_client) |
| 162 | + |
| 163 | + # example passing only required values which don't have defaults set |
| 164 | + path_params = { |
| 165 | + 'realm': "realm_example", |
| 166 | + 'orgId': "orgId_example", |
| 167 | + 'invitationId': "invitationId_example", |
| 168 | + } |
| 169 | + try: |
| 170 | + # Resend an Organization Invitation |
| 171 | + api_response = api_instance.resend_organization_invitation( |
| 172 | + path_params=path_params, |
| 173 | + ) |
| 174 | + except phasetwo.ApiException as e: |
| 175 | + print("Exception when calling OrganizationInvitationApi->resend_organization_invitation: %s\n" % e) |
| 176 | +``` |
| 177 | +### Parameters |
| 178 | + |
| 179 | +Name | Type | Description | Notes |
| 180 | +------------- | ------------- | ------------- | ------------- |
| 181 | +path_params | RequestPathParams | | |
| 182 | +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file |
| 183 | +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client |
| 184 | +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned |
| 185 | + |
| 186 | +### path_params |
| 187 | +#### RequestPathParams |
| 188 | + |
| 189 | +Name | Type | Description | Notes |
| 190 | +------------- | ------------- | ------------- | ------------- |
| 191 | +realm | RealmSchema | | |
| 192 | +orgId | OrgIdSchema | | |
| 193 | +invitationId | InvitationIdSchema | | |
| 194 | + |
| 195 | +# RealmSchema |
| 196 | + |
| 197 | +## Model Type Info |
| 198 | +Input Type | Accessed Type | Description | Notes |
| 199 | +------------ | ------------- | ------------- | ------------- |
| 200 | +str, | str, | | |
| 201 | + |
| 202 | +# OrgIdSchema |
| 203 | + |
| 204 | +## Model Type Info |
| 205 | +Input Type | Accessed Type | Description | Notes |
| 206 | +------------ | ------------- | ------------- | ------------- |
| 207 | +str, | str, | | |
| 208 | + |
| 209 | +# InvitationIdSchema |
| 210 | + |
| 211 | +## Model Type Info |
| 212 | +Input Type | Accessed Type | Description | Notes |
| 213 | +------------ | ------------- | ------------- | ------------- |
| 214 | +str, | str, | | |
| 215 | + |
| 216 | +### Return Types, Responses |
| 217 | + |
| 218 | +Code | Class | Description |
| 219 | +------------- | ------------- | ------------- |
| 220 | +n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned |
| 221 | +204 | [ApiResponseFor204](#resend_organization_invitation.ApiResponseFor204) | success |
| 222 | + |
| 223 | +#### resend_organization_invitation.ApiResponseFor204 |
| 224 | +Name | Type | Description | Notes |
| 225 | +------------- | ------------- | ------------- | ------------- |
| 226 | +response | urllib3.HTTPResponse | Raw response | |
| 227 | +body | Unset | body was not defined | |
| 228 | +headers | Unset | headers were not defined | |
| 229 | + |
| 230 | +### Authorization |
| 231 | + |
| 232 | +[access_token](../../../README.md#access_token) |
| 233 | + |
| 234 | +[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) |
| 235 | + |
0 commit comments