|
| 1 | +# helloasso-python.OrganizationApi |
| 2 | + |
| 3 | +All URIs are relative to *https://api.helloasso.com/v5* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**organizations_legal_informations_organization_slug_configuration_put**](OrganizationApi.md#organizations_legal_informations_organization_slug_configuration_put) | **PUT** /organizations/legal-informations/{organizationSlug}/configuration | Mettre à jour la configuration des informations juridiques de l'organisation. |
| 8 | + |
| 9 | + |
| 10 | +# **organizations_legal_informations_organization_slug_configuration_put** |
| 11 | +> organizations_legal_informations_organization_slug_configuration_put(organization_slug, hello_asso_api_v5_models_organization_legal_informations_update_organization_legal_information_configuration_body=hello_asso_api_v5_models_organization_legal_informations_update_organization_legal_information_configuration_body) |
| 12 | +
|
| 13 | +Mettre à jour la configuration des informations juridiques de l'organisation. |
| 14 | + |
| 15 | +<br/><br/><b>Votre token doit avoir l'un de ces rôles : </b><br/>OrganizationAdmin<br/><br/>Si vous êtes une <b>association</b>, vous pouvez obtenir ces rôles avec votre client.<br/>Si vous êtes un <b>partenaire</b>, vous pouvez obtenir ces rôles par le flux d'autorisation.<br/><br/><b>Votre clientId doit être autorisé à tous ces privilèges : </b> <br/> OrganizationAdministration<br/><br/> |
| 16 | + |
| 17 | +### Example |
| 18 | + |
| 19 | +* OAuth Authentication (OAuth2): |
| 20 | + |
| 21 | +```python |
| 22 | +import helloasso-python |
| 23 | +from helloasso-python.models.hello_asso_api_v5_models_organization_legal_informations_update_organization_legal_information_configuration_body import HelloAssoApiV5ModelsOrganizationLegalInformationsUpdateOrganizationLegalInformationConfigurationBody |
| 24 | +from helloasso-python.rest import ApiException |
| 25 | +from pprint import pprint |
| 26 | + |
| 27 | +# Defining the host is optional and defaults to https://api.helloasso.com/v5 |
| 28 | +# See configuration.py for a list of all supported configuration parameters. |
| 29 | +configuration = helloasso-python.Configuration( |
| 30 | + host = "https://api.helloasso.com/v5" |
| 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 | +configuration.access_token = os.environ["ACCESS_TOKEN"] |
| 39 | + |
| 40 | +# Enter a context with an instance of the API client |
| 41 | +with helloasso-python.ApiClient(configuration) as api_client: |
| 42 | + # Create an instance of the API class |
| 43 | + api_instance = helloasso-python.OrganizationApi(api_client) |
| 44 | + organization_slug = 'organization_slug_example' # str | |
| 45 | + hello_asso_api_v5_models_organization_legal_informations_update_organization_legal_information_configuration_body = helloasso-python.HelloAssoApiV5ModelsOrganizationLegalInformationsUpdateOrganizationLegalInformationConfigurationBody() # HelloAssoApiV5ModelsOrganizationLegalInformationsUpdateOrganizationLegalInformationConfigurationBody | (optional) |
| 46 | + |
| 47 | + try: |
| 48 | + # Mettre à jour la configuration des informations juridiques de l'organisation. |
| 49 | + api_instance.organizations_legal_informations_organization_slug_configuration_put(organization_slug, hello_asso_api_v5_models_organization_legal_informations_update_organization_legal_information_configuration_body=hello_asso_api_v5_models_organization_legal_informations_update_organization_legal_information_configuration_body) |
| 50 | + except Exception as e: |
| 51 | + print("Exception when calling OrganizationApi->organizations_legal_informations_organization_slug_configuration_put: %s\n" % e) |
| 52 | +``` |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | +### Parameters |
| 57 | + |
| 58 | + |
| 59 | +Name | Type | Description | Notes |
| 60 | +------------- | ------------- | ------------- | ------------- |
| 61 | + **organization_slug** | **str**| | |
| 62 | + **hello_asso_api_v5_models_organization_legal_informations_update_organization_legal_information_configuration_body** | [**HelloAssoApiV5ModelsOrganizationLegalInformationsUpdateOrganizationLegalInformationConfigurationBody**](HelloAssoApiV5ModelsOrganizationLegalInformationsUpdateOrganizationLegalInformationConfigurationBody.md)| | [optional] |
| 63 | + |
| 64 | +### Return type |
| 65 | + |
| 66 | +void (empty response body) |
| 67 | + |
| 68 | +### Authorization |
| 69 | + |
| 70 | +[OAuth2](../README.md#OAuth2) |
| 71 | + |
| 72 | +### HTTP request headers |
| 73 | + |
| 74 | + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json |
| 75 | + - **Accept**: Not defined |
| 76 | + |
| 77 | +### HTTP response details |
| 78 | + |
| 79 | +| Status code | Description | Response headers | |
| 80 | +|-------------|-------------|------------------| |
| 81 | +**200** | Success | - | |
| 82 | +**401** | Unauthorized, you must add a valid JWT into Authorization Header with the format : `Bearer TOKEN` | - | |
| 83 | +**403** | The JWT token hasn't the privileges or Roles for this action | - | |
| 84 | +**404** | Not Found | - | |
| 85 | + |
| 86 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 87 | + |
0 commit comments