# OryClient::ProjectApi All URIs are relative to *https://.projects.oryapis.com* | Method | HTTP request | Description | | ------ | ------------ | ----------- | | [**create_organization**](ProjectApi.md#create_organization) | **POST** /projects/{project_id}/organizations | Create an Enterprise SSO Organization | | [**create_project**](ProjectApi.md#create_project) | **POST** /projects | Create a Project | | [**create_project_api_key**](ProjectApi.md#create_project_api_key) | **POST** /projects/{project}/tokens | Create project API token | | [**delete_organization**](ProjectApi.md#delete_organization) | **DELETE** /projects/{project_id}/organizations/{organization_id} | Delete Enterprise SSO Organization | | [**delete_project_api_key**](ProjectApi.md#delete_project_api_key) | **DELETE** /projects/{project}/tokens/{token_id} | Delete project API token | | [**get_organization**](ProjectApi.md#get_organization) | **GET** /projects/{project_id}/organizations/{organization_id} | Get Enterprise SSO Organization by ID | | [**get_project**](ProjectApi.md#get_project) | **GET** /projects/{project_id} | Get a Project | | [**get_project_members**](ProjectApi.md#get_project_members) | **GET** /projects/{project}/members | Get all members associated with this project | | [**list_organizations**](ProjectApi.md#list_organizations) | **GET** /projects/{project_id}/organizations | List all Enterprise SSO organizations | | [**list_project_api_keys**](ProjectApi.md#list_project_api_keys) | **GET** /projects/{project}/tokens | List a project's API Tokens | | [**list_projects**](ProjectApi.md#list_projects) | **GET** /projects | List All Projects | | [**patch_project**](ProjectApi.md#patch_project) | **PATCH** /projects/{project_id} | Patch an Ory Network Project Configuration | | [**purge_project**](ProjectApi.md#purge_project) | **DELETE** /projects/{project_id} | Irrecoverably purge a project | | [**remove_project_member**](ProjectApi.md#remove_project_member) | **DELETE** /projects/{project}/members/{member} | Remove a member associated with this project | | [**set_project**](ProjectApi.md#set_project) | **PUT** /projects/{project_id} | Update an Ory Network Project Configuration | | [**update_organization**](ProjectApi.md#update_organization) | **PUT** /projects/{project_id}/organizations/{organization_id} | Update an Enterprise SSO Organization | ## create_organization > create_organization(project_id, opts) Create an Enterprise SSO Organization Creates an Enterprise SSO Organization in a project. ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new project_id = 'project_id_example' # String | Project ID The project's ID. opts = { organization_body: OryClient::OrganizationBody.new # OrganizationBody | } begin # Create an Enterprise SSO Organization result = api_instance.create_organization(project_id, opts) p result rescue OryClient::ApiError => e puts "Error when calling ProjectApi->create_organization: #{e}" end ``` #### Using the create_organization_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_organization_with_http_info(project_id, opts) ```ruby begin # Create an Enterprise SSO Organization data, status_code, headers = api_instance.create_organization_with_http_info(project_id, opts) p status_code # => 2xx p headers # => { ... } p data # => rescue OryClient::ApiError => e puts "Error when calling ProjectApi->create_organization_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **project_id** | **String** | Project ID The project's ID. | | | **organization_body** | [**OrganizationBody**](OrganizationBody.md) | | [optional] | ### Return type [**Organization**](Organization.md) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_project > create_project(opts) Create a Project Creates a new project. ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new opts = { create_project_body: OryClient::CreateProjectBody.new({environment: 'prod', name: 'name_example'}) # CreateProjectBody | } begin # Create a Project result = api_instance.create_project(opts) p result rescue OryClient::ApiError => e puts "Error when calling ProjectApi->create_project: #{e}" end ``` #### Using the create_project_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_project_with_http_info(opts) ```ruby begin # Create a Project data, status_code, headers = api_instance.create_project_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => rescue OryClient::ApiError => e puts "Error when calling ProjectApi->create_project_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **create_project_body** | [**CreateProjectBody**](CreateProjectBody.md) | | [optional] | ### Return type [**Project**](Project.md) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_project_api_key > create_project_api_key(project, opts) Create project API token Create an API token for a project. ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new project = 'project_example' # String | The Project ID or Project slug opts = { create_project_api_key_request: OryClient::CreateProjectApiKeyRequest.new({name: 'name_example'}) # CreateProjectApiKeyRequest | } begin # Create project API token result = api_instance.create_project_api_key(project, opts) p result rescue OryClient::ApiError => e puts "Error when calling ProjectApi->create_project_api_key: #{e}" end ``` #### Using the create_project_api_key_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_project_api_key_with_http_info(project, opts) ```ruby begin # Create project API token data, status_code, headers = api_instance.create_project_api_key_with_http_info(project, opts) p status_code # => 2xx p headers # => { ... } p data # => rescue OryClient::ApiError => e puts "Error when calling ProjectApi->create_project_api_key_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **project** | **String** | The Project ID or Project slug | | | **create_project_api_key_request** | [**CreateProjectApiKeyRequest**](CreateProjectApiKeyRequest.md) | | [optional] | ### Return type [**ProjectApiKey**](ProjectApiKey.md) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## delete_organization > delete_organization(project_id, organization_id) Delete Enterprise SSO Organization Irrecoverably deletes an Enterprise SSO Organization in a project by its ID. ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new project_id = 'project_id_example' # String | Project ID The project's ID. organization_id = 'organization_id_example' # String | Organization ID The Organization's ID. begin # Delete Enterprise SSO Organization api_instance.delete_organization(project_id, organization_id) rescue OryClient::ApiError => e puts "Error when calling ProjectApi->delete_organization: #{e}" end ``` #### Using the delete_organization_with_http_info variant This returns an Array which contains the response data (`nil` in this case), status code and headers. > delete_organization_with_http_info(project_id, organization_id) ```ruby begin # Delete Enterprise SSO Organization data, status_code, headers = api_instance.delete_organization_with_http_info(project_id, organization_id) p status_code # => 2xx p headers # => { ... } p data # => nil rescue OryClient::ApiError => e puts "Error when calling ProjectApi->delete_organization_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **project_id** | **String** | Project ID The project's ID. | | | **organization_id** | **String** | Organization ID The Organization's ID. | | ### Return type nil (empty response body) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## delete_project_api_key > delete_project_api_key(project, token_id) Delete project API token Deletes an API token and immediately removes it. ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new project = 'project_example' # String | The Project ID or Project slug token_id = 'token_id_example' # String | The Token ID begin # Delete project API token api_instance.delete_project_api_key(project, token_id) rescue OryClient::ApiError => e puts "Error when calling ProjectApi->delete_project_api_key: #{e}" end ``` #### Using the delete_project_api_key_with_http_info variant This returns an Array which contains the response data (`nil` in this case), status code and headers. > delete_project_api_key_with_http_info(project, token_id) ```ruby begin # Delete project API token data, status_code, headers = api_instance.delete_project_api_key_with_http_info(project, token_id) p status_code # => 2xx p headers # => { ... } p data # => nil rescue OryClient::ApiError => e puts "Error when calling ProjectApi->delete_project_api_key_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **project** | **String** | The Project ID or Project slug | | | **token_id** | **String** | The Token ID | | ### Return type nil (empty response body) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_organization > get_organization(project_id, organization_id) Get Enterprise SSO Organization by ID Retrieves an Enterprise SSO Organization for a project by its ID ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new project_id = 'project_id_example' # String | Project ID The project's ID. organization_id = 'organization_id_example' # String | Organization ID The Organization's ID. begin # Get Enterprise SSO Organization by ID result = api_instance.get_organization(project_id, organization_id) p result rescue OryClient::ApiError => e puts "Error when calling ProjectApi->get_organization: #{e}" end ``` #### Using the get_organization_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_organization_with_http_info(project_id, organization_id) ```ruby begin # Get Enterprise SSO Organization by ID data, status_code, headers = api_instance.get_organization_with_http_info(project_id, organization_id) p status_code # => 2xx p headers # => { ... } p data # => rescue OryClient::ApiError => e puts "Error when calling ProjectApi->get_organization_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **project_id** | **String** | Project ID The project's ID. | | | **organization_id** | **String** | Organization ID The Organization's ID. | | ### Return type [**GetOrganizationResponse**](GetOrganizationResponse.md) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_project > get_project(project_id) Get a Project Get a projects you have access to by its ID. ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new project_id = 'project_id_example' # String | Project ID The project's ID. begin # Get a Project result = api_instance.get_project(project_id) p result rescue OryClient::ApiError => e puts "Error when calling ProjectApi->get_project: #{e}" end ``` #### Using the get_project_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_project_with_http_info(project_id) ```ruby begin # Get a Project data, status_code, headers = api_instance.get_project_with_http_info(project_id) p status_code # => 2xx p headers # => { ... } p data # => rescue OryClient::ApiError => e puts "Error when calling ProjectApi->get_project_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **project_id** | **String** | Project ID The project's ID. | | ### Return type [**Project**](Project.md) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_project_members > > get_project_members(project) Get all members associated with this project This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`. ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new project = 'project_example' # String | begin # Get all members associated with this project result = api_instance.get_project_members(project) p result rescue OryClient::ApiError => e puts "Error when calling ProjectApi->get_project_members: #{e}" end ``` #### Using the get_project_members_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> get_project_members_with_http_info(project) ```ruby begin # Get all members associated with this project data, status_code, headers = api_instance.get_project_members_with_http_info(project) p status_code # => 2xx p headers # => { ... } p data # => > rescue OryClient::ApiError => e puts "Error when calling ProjectApi->get_project_members_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **project** | **String** | | | ### Return type [**Array<ProjectMember>**](ProjectMember.md) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## list_organizations > list_organizations(project_id, opts) List all Enterprise SSO organizations Lists all Enterprise SSO organizations in a project. ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new project_id = 'project_id_example' # String | Project ID The project's ID. opts = { page_size: 789, # Integer | Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). page_token: 'page_token_example', # String | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). domain: 'domain_example' # String | Domain If set, only organizations with that domain will be returned. } begin # List all Enterprise SSO organizations result = api_instance.list_organizations(project_id, opts) p result rescue OryClient::ApiError => e puts "Error when calling ProjectApi->list_organizations: #{e}" end ``` #### Using the list_organizations_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> list_organizations_with_http_info(project_id, opts) ```ruby begin # List all Enterprise SSO organizations data, status_code, headers = api_instance.list_organizations_with_http_info(project_id, opts) p status_code # => 2xx p headers # => { ... } p data # => rescue OryClient::ApiError => e puts "Error when calling ProjectApi->list_organizations_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **project_id** | **String** | Project ID The project's ID. | | | **page_size** | **Integer** | Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional][default to 250] | | **page_token** | **String** | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] | | **domain** | **String** | Domain If set, only organizations with that domain will be returned. | [optional] | ### Return type [**ListOrganizationsResponse**](ListOrganizationsResponse.md) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## list_project_api_keys > > list_project_api_keys(project) List a project's API Tokens A list of all the project's API tokens. ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new project = 'project_example' # String | The Project ID or Project slug begin # List a project's API Tokens result = api_instance.list_project_api_keys(project) p result rescue OryClient::ApiError => e puts "Error when calling ProjectApi->list_project_api_keys: #{e}" end ``` #### Using the list_project_api_keys_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> list_project_api_keys_with_http_info(project) ```ruby begin # List a project's API Tokens data, status_code, headers = api_instance.list_project_api_keys_with_http_info(project) p status_code # => 2xx p headers # => { ... } p data # => > rescue OryClient::ApiError => e puts "Error when calling ProjectApi->list_project_api_keys_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **project** | **String** | The Project ID or Project slug | | ### Return type [**Array<ProjectApiKey>**](ProjectApiKey.md) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## list_projects > > list_projects List All Projects Lists all projects you have access to. ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new begin # List All Projects result = api_instance.list_projects p result rescue OryClient::ApiError => e puts "Error when calling ProjectApi->list_projects: #{e}" end ``` #### Using the list_projects_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> list_projects_with_http_info ```ruby begin # List All Projects data, status_code, headers = api_instance.list_projects_with_http_info p status_code # => 2xx p headers # => { ... } p data # => > rescue OryClient::ApiError => e puts "Error when calling ProjectApi->list_projects_with_http_info: #{e}" end ``` ### Parameters This endpoint does not need any parameter. ### Return type [**Array<ProjectMetadata>**](ProjectMetadata.md) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## patch_project > patch_project(project_id, opts) Patch an Ory Network Project Configuration Deprecated: Use the `patchProjectWithRevision` endpoint instead to specify the exact revision the patch was generated for. This endpoints allows you to patch individual Ory Network project configuration keys for Ory's services (identity, permission, ...). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed. ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new project_id = 'project_id_example' # String | Project ID The project's ID. opts = { json_patch: [OryClient::JsonPatch.new({op: 'add', path: '/name'})] # Array | } begin # Patch an Ory Network Project Configuration result = api_instance.patch_project(project_id, opts) p result rescue OryClient::ApiError => e puts "Error when calling ProjectApi->patch_project: #{e}" end ``` #### Using the patch_project_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> patch_project_with_http_info(project_id, opts) ```ruby begin # Patch an Ory Network Project Configuration data, status_code, headers = api_instance.patch_project_with_http_info(project_id, opts) p status_code # => 2xx p headers # => { ... } p data # => rescue OryClient::ApiError => e puts "Error when calling ProjectApi->patch_project_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **project_id** | **String** | Project ID The project's ID. | | | **json_patch** | [**Array<JsonPatch>**](JsonPatch.md) | | [optional] | ### Return type [**SuccessfulProjectUpdate**](SuccessfulProjectUpdate.md) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## purge_project > purge_project(project_id) Irrecoverably purge a project !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. Calling this endpoint will additionally delete custom domains and other related data. If the project is linked to a subscription, the subscription needs to be unlinked first. ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new project_id = 'project_id_example' # String | Project ID The project's ID. begin # Irrecoverably purge a project api_instance.purge_project(project_id) rescue OryClient::ApiError => e puts "Error when calling ProjectApi->purge_project: #{e}" end ``` #### Using the purge_project_with_http_info variant This returns an Array which contains the response data (`nil` in this case), status code and headers. > purge_project_with_http_info(project_id) ```ruby begin # Irrecoverably purge a project data, status_code, headers = api_instance.purge_project_with_http_info(project_id) p status_code # => 2xx p headers # => { ... } p data # => nil rescue OryClient::ApiError => e puts "Error when calling ProjectApi->purge_project_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **project_id** | **String** | Project ID The project's ID. | | ### Return type nil (empty response body) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## remove_project_member > remove_project_member(project, member) Remove a member associated with this project This also sets their invite status to `REMOVED`. This endpoint requires the user to be a member of the project with the role `OWNER`. ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new project = 'project_example' # String | member = 'member_example' # String | begin # Remove a member associated with this project api_instance.remove_project_member(project, member) rescue OryClient::ApiError => e puts "Error when calling ProjectApi->remove_project_member: #{e}" end ``` #### Using the remove_project_member_with_http_info variant This returns an Array which contains the response data (`nil` in this case), status code and headers. > remove_project_member_with_http_info(project, member) ```ruby begin # Remove a member associated with this project data, status_code, headers = api_instance.remove_project_member_with_http_info(project, member) p status_code # => 2xx p headers # => { ... } p data # => nil rescue OryClient::ApiError => e puts "Error when calling ProjectApi->remove_project_member_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **project** | **String** | | | | **member** | **String** | | | ### Return type nil (empty response body) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## set_project > set_project(project_id, opts) Update an Ory Network Project Configuration This endpoints allows you to update the Ory Network project configuration for individual services (identity, permission, ...). The configuration is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed. Be aware that updating any service's configuration will completely override your current configuration for that service! ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new project_id = 'project_id_example' # String | Project ID The project's ID. opts = { set_project: OryClient::SetProject.new({cors_admin: OryClient::ProjectCors.new, cors_public: OryClient::ProjectCors.new, name: 'name_example', services: OryClient::ProjectServices.new}) # SetProject | } begin # Update an Ory Network Project Configuration result = api_instance.set_project(project_id, opts) p result rescue OryClient::ApiError => e puts "Error when calling ProjectApi->set_project: #{e}" end ``` #### Using the set_project_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> set_project_with_http_info(project_id, opts) ```ruby begin # Update an Ory Network Project Configuration data, status_code, headers = api_instance.set_project_with_http_info(project_id, opts) p status_code # => 2xx p headers # => { ... } p data # => rescue OryClient::ApiError => e puts "Error when calling ProjectApi->set_project_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **project_id** | **String** | Project ID The project's ID. | | | **set_project** | [**SetProject**](SetProject.md) | | [optional] | ### Return type [**SuccessfulProjectUpdate**](SuccessfulProjectUpdate.md) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## update_organization > update_organization(project_id, organization_id, opts) Update an Enterprise SSO Organization Updates an Enterprise SSO Organization in a project by its ID. ### Examples ```ruby require 'time' require 'ory-client' # setup authorization OryClient.configure do |config| # Configure Bearer authorization: oryWorkspaceApiKey config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = OryClient::ProjectApi.new project_id = 'project_id_example' # String | Project ID The project's ID. organization_id = 'organization_id_example' # String | Organization ID The Organization's ID. opts = { organization_body: OryClient::OrganizationBody.new # OrganizationBody | } begin # Update an Enterprise SSO Organization result = api_instance.update_organization(project_id, organization_id, opts) p result rescue OryClient::ApiError => e puts "Error when calling ProjectApi->update_organization: #{e}" end ``` #### Using the update_organization_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> update_organization_with_http_info(project_id, organization_id, opts) ```ruby begin # Update an Enterprise SSO Organization data, status_code, headers = api_instance.update_organization_with_http_info(project_id, organization_id, opts) p status_code # => 2xx p headers # => { ... } p data # => rescue OryClient::ApiError => e puts "Error when calling ProjectApi->update_organization_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **project_id** | **String** | Project ID The project's ID. | | | **organization_id** | **String** | Organization ID The Organization's ID. | | | **organization_body** | [**OrganizationBody**](OrganizationBody.md) | | [optional] | ### Return type [**Organization**](Organization.md) ### Authorization [oryWorkspaceApiKey](../README.md#oryWorkspaceApiKey) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json