LUSID Python SDK
  • Home page
  • API reference
    • sdk.lusid.api
      • sdk.lusid.api.abor_api
      • sdk.lusid.api.abor_configuration_api
      • sdk.lusid.api.address_key_definition_api
      • sdk.lusid.api.aggregated_returns_api
      • sdk.lusid.api.aggregation_api
      • sdk.lusid.api.allocations_api
      • sdk.lusid.api.amortisation_rule_sets_api
      • sdk.lusid.api.application_metadata_api
      • sdk.lusid.api.blocks_api
      • sdk.lusid.api.calendars_api
      • sdk.lusid.api.chart_of_accounts_api
      • sdk.lusid.api.check_definitions_api
      • sdk.lusid.api.complex_market_data_api
      • sdk.lusid.api.compliance_api
      • sdk.lusid.api.configuration_recipe_api
      • sdk.lusid.api.conventions_api
      • sdk.lusid.api.corporate_action_sources_api
      • sdk.lusid.api.counterparties_api
      • sdk.lusid.api.custom_data_models_api
      • sdk.lusid.api.custom_entities_api
      • sdk.lusid.api.custom_entity_definitions_api
      • sdk.lusid.api.custom_entity_types_api
      • sdk.lusid.api.cut_label_definitions_api
      • sdk.lusid.api.data_types_api
      • sdk.lusid.api.derived_transaction_portfolios_api
      • sdk.lusid.api.entities_api
      • sdk.lusid.api.executions_api
      • sdk.lusid.api.fee_types_api
      • sdk.lusid.api.fund_configuration_api
      • sdk.lusid.api.funds_api
      • sdk.lusid.api.group_reconciliations_api
      • sdk.lusid.api.identifier_definitions_api
      • sdk.lusid.api.instrument_event_types_api
      • sdk.lusid.api.instrument_events_api
      • sdk.lusid.api.instruments_api
      • sdk.lusid.api.investment_accounts_api
      • sdk.lusid.api.investor_records_api
      • sdk.lusid.api.legacy_compliance_api
      • sdk.lusid.api.legal_entities_api
        • sdk.lusid.api.legal_entities_api.LegalEntitiesApi
      • sdk.lusid.api.market_data_field_configuration_api
      • sdk.lusid.api.order_graph_api
      • sdk.lusid.api.order_instructions_api
      • sdk.lusid.api.order_management_api
      • sdk.lusid.api.orders_api
      • sdk.lusid.api.packages_api
      • sdk.lusid.api.participations_api
      • sdk.lusid.api.persons_api
      • sdk.lusid.api.placements_api
      • sdk.lusid.api.portfolio_groups_api
      • sdk.lusid.api.portfolios_api
      • sdk.lusid.api.property_definitions_api
      • sdk.lusid.api.queryable_keys_api
      • sdk.lusid.api.quotes_api
      • sdk.lusid.api.reconciliations_api
      • sdk.lusid.api.reference_lists_api
      • sdk.lusid.api.reference_portfolio_api
      • sdk.lusid.api.relation_definitions_api
      • sdk.lusid.api.relational_dataset_definition_api
      • sdk.lusid.api.relational_datasets_api
      • sdk.lusid.api.relations_api
      • sdk.lusid.api.relationship_definitions_api
      • sdk.lusid.api.relationships_api
      • sdk.lusid.api.resource_record_api
      • sdk.lusid.api.schemas_api
      • sdk.lusid.api.scopes_api
      • sdk.lusid.api.scripted_translation_api
      • sdk.lusid.api.search_api
      • sdk.lusid.api.sequences_api
      • sdk.lusid.api.simple_position_portfolios_api
      • sdk.lusid.api.staged_modifications_api
      • sdk.lusid.api.staging_rule_set_api
      • sdk.lusid.api.structured_result_data_api
      • sdk.lusid.api.system_configuration_api
      • sdk.lusid.api.tax_rule_sets_api
      • sdk.lusid.api.timelines_api
      • sdk.lusid.api.transaction_configuration_api
      • sdk.lusid.api.transaction_fee_types_api
      • sdk.lusid.api.transaction_fees_api
      • sdk.lusid.api.transaction_portfolios_api
      • sdk.lusid.api.transfer_agency_api
      • sdk.lusid.api.translation_api
      • sdk.lusid.api.workspace_api
    • sdk.lusid.api_client
    • sdk.lusid.api_response
    • sdk.lusid.configuration
    • sdk.lusid.exceptions
    • sdk.lusid.extensions
    • sdk.lusid.models
    • sdk.lusid.rest
LUSID Python SDK
  • sdk.lusid
  • sdk.lusid.api
  • sdk.lusid.api.legal_entities_api
  • sdk.lusid.api.legal_entities_api.LegalEntitiesApi

sdk.lusid.api.legal_entities_api.LegalEntitiesApi

class LegalEntitiesApi(api_client=None)[source]

NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech

Do not edit the class manually.

Methods

delete_legal_entity

DeleteLegalEntity: Delete Legal Entity # noqa: E501

delete_legal_entity_access_metadata

DeleteLegalEntityAccessMetadata: Delete a Legal Entity Access Metadata entry # noqa: E501

delete_legal_entity_access_metadata_with_http_info

DeleteLegalEntityAccessMetadata: Delete a Legal Entity Access Metadata entry # noqa: E501

delete_legal_entity_identifiers

[EARLY ACCESS] DeleteLegalEntityIdentifiers: Delete Legal Entity Identifiers # noqa: E501

delete_legal_entity_identifiers_with_http_info

[EARLY ACCESS] DeleteLegalEntityIdentifiers: Delete Legal Entity Identifiers # noqa: E501

delete_legal_entity_properties

[EARLY ACCESS] DeleteLegalEntityProperties: Delete Legal Entity Properties # noqa: E501

delete_legal_entity_properties_with_http_info

[EARLY ACCESS] DeleteLegalEntityProperties: Delete Legal Entity Properties # noqa: E501

delete_legal_entity_with_http_info

DeleteLegalEntity: Delete Legal Entity # noqa: E501

get_all_legal_entity_access_metadata

GetAllLegalEntityAccessMetadata: Get Access Metadata rules for a Legal Entity # noqa: E501

get_all_legal_entity_access_metadata_with_http_info

GetAllLegalEntityAccessMetadata: Get Access Metadata rules for a Legal Entity # noqa: E501

get_legal_entity

GetLegalEntity: Get Legal Entity # noqa: E501

get_legal_entity_access_metadata_by_key

[EARLY ACCESS] GetLegalEntityAccessMetadataByKey: Get an entry identified by a metadataKey in the Access Metadata of a Legal Entity # noqa: E501

get_legal_entity_access_metadata_by_key_with_http_info

[EARLY ACCESS] GetLegalEntityAccessMetadataByKey: Get an entry identified by a metadataKey in the Access Metadata of a Legal Entity # noqa: E501

get_legal_entity_property_time_series

GetLegalEntityPropertyTimeSeries: Get Legal Entity Property Time Series # noqa: E501

get_legal_entity_property_time_series_with_http_info

GetLegalEntityPropertyTimeSeries: Get Legal Entity Property Time Series # noqa: E501

get_legal_entity_relations

GetLegalEntityRelations: Get Relations for Legal Entity # noqa: E501

get_legal_entity_relations_with_http_info

GetLegalEntityRelations: Get Relations for Legal Entity # noqa: E501

get_legal_entity_relationships

GetLegalEntityRelationships: Get Relationships for Legal Entity # noqa: E501

get_legal_entity_relationships_with_http_info

GetLegalEntityRelationships: Get Relationships for Legal Entity # noqa: E501

get_legal_entity_with_http_info

GetLegalEntity: Get Legal Entity # noqa: E501

list_all_legal_entities

ListAllLegalEntities: List Legal Entities # noqa: E501

list_all_legal_entities_with_http_info

ListAllLegalEntities: List Legal Entities # noqa: E501

list_legal_entities

ListLegalEntities: List Legal Entities # noqa: E501

list_legal_entities_with_http_info

ListLegalEntities: List Legal Entities # noqa: E501

patch_legal_entity_access_metadata

[EARLY ACCESS] PatchLegalEntityAccessMetadata: Patch Access Metadata rules for a Legal Entity.

patch_legal_entity_access_metadata_with_http_info

[EARLY ACCESS] PatchLegalEntityAccessMetadata: Patch Access Metadata rules for a Legal Entity.

set_legal_entity_identifiers

[EARLY ACCESS] SetLegalEntityIdentifiers: Set Legal Entity Identifiers # noqa: E501

set_legal_entity_identifiers_with_http_info

[EARLY ACCESS] SetLegalEntityIdentifiers: Set Legal Entity Identifiers # noqa: E501

set_legal_entity_properties

SetLegalEntityProperties: Set Legal Entity Properties # noqa: E501

set_legal_entity_properties_with_http_info

SetLegalEntityProperties: Set Legal Entity Properties # noqa: E501

upsert_legal_entities

[EARLY ACCESS] UpsertLegalEntities: Batch upsert Legal Entities # noqa: E501

upsert_legal_entities_with_http_info

[EARLY ACCESS] UpsertLegalEntities: Batch upsert Legal Entities # noqa: E501

upsert_legal_entity

UpsertLegalEntity: Upsert Legal Entity # noqa: E501

upsert_legal_entity_access_metadata

UpsertLegalEntityAccessMetadata: Upsert a Legal Entity Access Metadata entry associated with a specific metadataKey.

upsert_legal_entity_access_metadata_with_http_info

UpsertLegalEntityAccessMetadata: Upsert a Legal Entity Access Metadata entry associated with a specific metadataKey.

upsert_legal_entity_with_http_info

UpsertLegalEntity: Upsert Legal Entity # noqa: E501

delete_legal_entity(id_type_scope, id_type_code, code, async_req=None, **kwargs)[source]

DeleteLegalEntity: Delete Legal Entity # noqa: E501

Delete a legal entity. Deletion will be valid from the legal entity’s creation datetime. This means that the legal entity will no longer exist at any effective datetime from the asAt datetime of deletion. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.delete_legal_entity(id_type_scope, id_type_code, code, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – The scope of the legal entity identifier type. (required)

  • id_type_code (str) – The code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with defined identifier type uniquely identifies the legal entity to delete. (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

DeletedEntityResponse

delete_legal_entity_access_metadata(id_type_scope, id_type_code, code, metadata_key, effective_at=None, effective_until=None, async_req=None, **kwargs)[source]

DeleteLegalEntityAccessMetadata: Delete a Legal Entity Access Metadata entry # noqa: E501

Deletes the Legal Entity Access Metadata entry that exactly matches the provided identifier parts. It is important to always check to verify success (or failure). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.delete_legal_entity_access_metadata(id_type_scope, id_type_code, code, metadata_key, effective_at, effective_until, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the Legal Entity identifier. (required)

  • id_type_code (str) – Code of the Legal Entity identifier. (required)

  • code (str) – Code of the Legal Entity under specified identifier type’s scope and code. (required)

  • metadata_key (str) – Key of the metadata entry to retrieve (required)

  • effective_at (str) – The effective date to delete at, if this is not supplied, it will delete all data found

  • effective_until (datetime) – The effective date until which the delete is valid. If not supplied this will be valid indefinitely, or until the next ‘effectiveAt’ date of the Access Metadata

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

DeletedEntityResponse

delete_legal_entity_access_metadata_with_http_info(id_type_scope, id_type_code, code, metadata_key, effective_at=None, effective_until=None, **kwargs)[source]

DeleteLegalEntityAccessMetadata: Delete a Legal Entity Access Metadata entry # noqa: E501

Deletes the Legal Entity Access Metadata entry that exactly matches the provided identifier parts. It is important to always check to verify success (or failure). # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.delete_legal_entity_access_metadata_with_http_info(id_type_scope, id_type_code, code, metadata_key, effective_at, effective_until, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the Legal Entity identifier. (required)

  • id_type_code (str) – Code of the Legal Entity identifier. (required)

  • code (str) – Code of the Legal Entity under specified identifier type’s scope and code. (required)

  • metadata_key (str) – Key of the metadata entry to retrieve (required)

  • effective_at (str) – The effective date to delete at, if this is not supplied, it will delete all data found

  • effective_until (datetime) – The effective date until which the delete is valid. If not supplied this will be valid indefinitely, or until the next ‘effectiveAt’ date of the Access Metadata

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(DeletedEntityResponse, status_code(int), headers(HTTPHeaderDict))

delete_legal_entity_identifiers(id_type_scope, id_type_code, code, property_keys, effective_at=None, async_req=None, **kwargs)[source]

[EARLY ACCESS] DeleteLegalEntityIdentifiers: Delete Legal Entity Identifiers # noqa: E501

Delete identifiers that belong to the given property keys of the legal entity. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.delete_legal_entity_identifiers(id_type_scope, id_type_code, code, property_keys, effective_at, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • property_keys (List[str]) – The property keys of the identifiers to delete. These take the format {domain}/{scope}/{code} e.g. “LegalEntity/CreditAgency/Identifier”. Each property must be from the “LegalEntity” domain. Identifiers or identifiers not specified in request will not be changed. (required)

  • effective_at (str) – The effective datetime or cut label at which to delete the identifiers. Defaults to the current LUSID system datetime if not specified. Must not include an effective datetime if identifiers are perpetual.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

DeletedEntityResponse

delete_legal_entity_identifiers_with_http_info(id_type_scope, id_type_code, code, property_keys, effective_at=None, **kwargs)[source]

[EARLY ACCESS] DeleteLegalEntityIdentifiers: Delete Legal Entity Identifiers # noqa: E501

Delete identifiers that belong to the given property keys of the legal entity. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.delete_legal_entity_identifiers_with_http_info(id_type_scope, id_type_code, code, property_keys, effective_at, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • property_keys (List[str]) – The property keys of the identifiers to delete. These take the format {domain}/{scope}/{code} e.g. “LegalEntity/CreditAgency/Identifier”. Each property must be from the “LegalEntity” domain. Identifiers or identifiers not specified in request will not be changed. (required)

  • effective_at (str) – The effective datetime or cut label at which to delete the identifiers. Defaults to the current LUSID system datetime if not specified. Must not include an effective datetime if identifiers are perpetual.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(DeletedEntityResponse, status_code(int), headers(HTTPHeaderDict))

delete_legal_entity_properties(id_type_scope, id_type_code, code, property_keys, effective_at=None, async_req=None, **kwargs)[source]

[EARLY ACCESS] DeleteLegalEntityProperties: Delete Legal Entity Properties # noqa: E501

Delete all properties that belong to the given property keys of the legal entity. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.delete_legal_entity_properties(id_type_scope, id_type_code, code, property_keys, effective_at, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • property_keys (List[str]) – The property keys of the legal entities properties to delete. These take the format {domain}/{scope}/{code} e.g. “LegalEntity/CompanyDetails/Role”. Each property must be from the “LegalEntity” domain. Properties or identifiers not specified in request will not be changed. (required)

  • effective_at (str) – The effective datetime or cut label at which to delete time-variant properties from. The property must exist at the specified ‘effectiveAt’ datetime. If the ‘effectiveAt’ is not provided or is before the time-variant property exists then a failure is returned. Do not specify this parameter if any of the properties to delete are perpetual.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

DeletedEntityResponse

delete_legal_entity_properties_with_http_info(id_type_scope, id_type_code, code, property_keys, effective_at=None, **kwargs)[source]

[EARLY ACCESS] DeleteLegalEntityProperties: Delete Legal Entity Properties # noqa: E501

Delete all properties that belong to the given property keys of the legal entity. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.delete_legal_entity_properties_with_http_info(id_type_scope, id_type_code, code, property_keys, effective_at, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • property_keys (List[str]) – The property keys of the legal entities properties to delete. These take the format {domain}/{scope}/{code} e.g. “LegalEntity/CompanyDetails/Role”. Each property must be from the “LegalEntity” domain. Properties or identifiers not specified in request will not be changed. (required)

  • effective_at (str) – The effective datetime or cut label at which to delete time-variant properties from. The property must exist at the specified ‘effectiveAt’ datetime. If the ‘effectiveAt’ is not provided or is before the time-variant property exists then a failure is returned. Do not specify this parameter if any of the properties to delete are perpetual.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(DeletedEntityResponse, status_code(int), headers(HTTPHeaderDict))

delete_legal_entity_with_http_info(id_type_scope, id_type_code, code, **kwargs)[source]

DeleteLegalEntity: Delete Legal Entity # noqa: E501

Delete a legal entity. Deletion will be valid from the legal entity’s creation datetime. This means that the legal entity will no longer exist at any effective datetime from the asAt datetime of deletion. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.delete_legal_entity_with_http_info(id_type_scope, id_type_code, code, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – The scope of the legal entity identifier type. (required)

  • id_type_code (str) – The code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with defined identifier type uniquely identifies the legal entity to delete. (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(DeletedEntityResponse, status_code(int), headers(HTTPHeaderDict))

get_all_legal_entity_access_metadata(id_type_scope, id_type_code, code, effective_at=None, as_at=None, async_req=None, **kwargs)[source]

GetAllLegalEntityAccessMetadata: Get Access Metadata rules for a Legal Entity # noqa: E501

Pass the Scope and Code of the Legal Entity identifier along with the Legal Entity code parameter to retrieve the associated Access Metadata # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_all_legal_entity_access_metadata(id_type_scope, id_type_code, code, effective_at, as_at, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the Legal Entity identifier. (required)

  • id_type_code (str) – Code of the Legal Entity identifier. (required)

  • code (str) – Code of the Legal Entity under specified identifier type’s scope and code. (required)

  • effective_at (str) – The effectiveAt datetime at which to retrieve the Access Metadata

  • as_at (datetime) – The asAt datetime at which to retrieve the Access Metadata

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

Dict[str, List[AccessMetadataValue]]

get_all_legal_entity_access_metadata_with_http_info(id_type_scope, id_type_code, code, effective_at=None, as_at=None, **kwargs)[source]

GetAllLegalEntityAccessMetadata: Get Access Metadata rules for a Legal Entity # noqa: E501

Pass the Scope and Code of the Legal Entity identifier along with the Legal Entity code parameter to retrieve the associated Access Metadata # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_all_legal_entity_access_metadata_with_http_info(id_type_scope, id_type_code, code, effective_at, as_at, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the Legal Entity identifier. (required)

  • id_type_code (str) – Code of the Legal Entity identifier. (required)

  • code (str) – Code of the Legal Entity under specified identifier type’s scope and code. (required)

  • effective_at (str) – The effectiveAt datetime at which to retrieve the Access Metadata

  • as_at (datetime) – The asAt datetime at which to retrieve the Access Metadata

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(Dict[str, List[AccessMetadataValue]], status_code(int), headers(HTTPHeaderDict))

get_legal_entity(id_type_scope, id_type_code, code, property_keys=None, effective_at=None, as_at=None, relationship_definition_ids=None, async_req=None, **kwargs)[source]

GetLegalEntity: Get Legal Entity # noqa: E501

Retrieve the definition of a legal entity. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_legal_entity(id_type_scope, id_type_code, code, property_keys, effective_at, as_at, relationship_definition_ids, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • property_keys (List[str]) – A list of property keys or identifier types (as property keys) from the “LegalEntity” domain to include for found legal entity, or from any domain that supports relationships to decorate onto related entities. These take the format {domain}/{scope}/{code} e.g. “LegalEntity/ContactDetails/Address”.

  • effective_at (str) – The effective datetime or cut label at which to retrieve the legal entity. Defaults to the current LUSID system datetime if not specified.

  • as_at (datetime) – The asAt datetime at which to retrieve the legal entity. Defaults to return the latest version of the legal entity if not specified.

  • relationship_definition_ids (List[str]) – A list of relationship definitions that are used to decorate related entities onto the legal entity in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

LegalEntity

get_legal_entity_access_metadata_by_key(id_type_scope, id_type_code, code, metadata_key, effective_at=None, as_at=None, async_req=None, **kwargs)[source]

[EARLY ACCESS] GetLegalEntityAccessMetadataByKey: Get an entry identified by a metadataKey in the Access Metadata of a Legal Entity # noqa: E501

Get a specific Legal Entity Access Metadata by specifying the corresponding identifier parts and Legal Entity code No matching will be performed through this endpoint. To retrieve an entry, it is necessary to specify, exactly, the identifier of the entry # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_legal_entity_access_metadata_by_key(id_type_scope, id_type_code, code, metadata_key, effective_at, as_at, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the Legal Entity identifier. (required)

  • id_type_code (str) – Code of the Legal Entity identifier. (required)

  • code (str) – Code of the Legal Entity under specified identifier type’s scope and code. (required)

  • metadata_key (str) – Key of the metadata entry to retrieve (required)

  • effective_at (str) – The effectiveAt datetime at which to retrieve the Access Metadata

  • as_at (datetime) – The asAt datetime at which to retrieve the Access Metadata

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

List[AccessMetadataValue]

get_legal_entity_access_metadata_by_key_with_http_info(id_type_scope, id_type_code, code, metadata_key, effective_at=None, as_at=None, **kwargs)[source]

[EARLY ACCESS] GetLegalEntityAccessMetadataByKey: Get an entry identified by a metadataKey in the Access Metadata of a Legal Entity # noqa: E501

Get a specific Legal Entity Access Metadata by specifying the corresponding identifier parts and Legal Entity code No matching will be performed through this endpoint. To retrieve an entry, it is necessary to specify, exactly, the identifier of the entry # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_legal_entity_access_metadata_by_key_with_http_info(id_type_scope, id_type_code, code, metadata_key, effective_at, as_at, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the Legal Entity identifier. (required)

  • id_type_code (str) – Code of the Legal Entity identifier. (required)

  • code (str) – Code of the Legal Entity under specified identifier type’s scope and code. (required)

  • metadata_key (str) – Key of the metadata entry to retrieve (required)

  • effective_at (str) – The effectiveAt datetime at which to retrieve the Access Metadata

  • as_at (datetime) – The asAt datetime at which to retrieve the Access Metadata

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(List[AccessMetadataValue], status_code(int), headers(HTTPHeaderDict))

get_legal_entity_property_time_series(id_type_scope, id_type_code, code, property_key, as_at=None, filter=None, page=None, limit=None, async_req=None, **kwargs)[source]

GetLegalEntityPropertyTimeSeries: Get Legal Entity Property Time Series # noqa: E501

List the complete time series of a legal entity property. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_legal_entity_property_time_series(id_type_scope, id_type_code, code, property_key, as_at, filter, page, limit, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • property_key (str) – The property key of the property that will have its history shown. These must be in the format {domain}/{scope}/{code} e.g. “LegalEntity/ContactDetails/Address”. Each property must be from the “LegalEntity” domain. (required)

  • as_at (datetime) – The asAt datetime at which to list the person’s property history. Defaults to return the current datetime if not supplied.

  • filter (str) – Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.

  • page (str) – The pagination token to use to continue listing properties from a previous call to get property time series. This value is returned from the previous call. If a pagination token is provided the filter and asAt fields must not have changed since the original request.

  • limit (int) – When paginating, limit the number of returned results to this many.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

ResourceListOfPropertyInterval

get_legal_entity_property_time_series_with_http_info(id_type_scope, id_type_code, code, property_key, as_at=None, filter=None, page=None, limit=None, **kwargs)[source]

GetLegalEntityPropertyTimeSeries: Get Legal Entity Property Time Series # noqa: E501

List the complete time series of a legal entity property. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_legal_entity_property_time_series_with_http_info(id_type_scope, id_type_code, code, property_key, as_at, filter, page, limit, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • property_key (str) – The property key of the property that will have its history shown. These must be in the format {domain}/{scope}/{code} e.g. “LegalEntity/ContactDetails/Address”. Each property must be from the “LegalEntity” domain. (required)

  • as_at (datetime) – The asAt datetime at which to list the person’s property history. Defaults to return the current datetime if not supplied.

  • filter (str) – Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.

  • page (str) – The pagination token to use to continue listing properties from a previous call to get property time series. This value is returned from the previous call. If a pagination token is provided the filter and asAt fields must not have changed since the original request.

  • limit (int) – When paginating, limit the number of returned results to this many.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(ResourceListOfPropertyInterval, status_code(int), headers(HTTPHeaderDict))

get_legal_entity_relations(id_type_scope, id_type_code, code, effective_at=None, as_at=None, filter=None, identifier_types=None, async_req=None, **kwargs)[source]

GetLegalEntityRelations: Get Relations for Legal Entity # noqa: E501

Get relations for the specified Legal Entity # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_legal_entity_relations(id_type_scope, id_type_code, code, effective_at, as_at, filter, identifier_types, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • effective_at (str) – The effective datetime or cut label at which to get relations. Defaults to the current LUSID system datetime if not specified.

  • as_at (datetime) – The asAt datetime at which to retrieve the legal entity’s relations. Defaults to return the latest LUSID AsAt time if not specified.

  • filter (str) – Expression to filter the relations. Users should provide null or empty string for this field until further notice.

  • identifier_types (List[str]) – Identifiers types (as property keys) used for referencing Persons or Legal Entities. These take the format {domain}/{scope}/{code} e.g. “Person/CompanyDetails/Role”. They must be from the “Person” or “LegalEntity” domain. Only identifier types stated will be used to look up relevant entities in relations. If not applicable, provide an empty array.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

ResourceListOfRelation

get_legal_entity_relations_with_http_info(id_type_scope, id_type_code, code, effective_at=None, as_at=None, filter=None, identifier_types=None, **kwargs)[source]

GetLegalEntityRelations: Get Relations for Legal Entity # noqa: E501

Get relations for the specified Legal Entity # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_legal_entity_relations_with_http_info(id_type_scope, id_type_code, code, effective_at, as_at, filter, identifier_types, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • effective_at (str) – The effective datetime or cut label at which to get relations. Defaults to the current LUSID system datetime if not specified.

  • as_at (datetime) – The asAt datetime at which to retrieve the legal entity’s relations. Defaults to return the latest LUSID AsAt time if not specified.

  • filter (str) – Expression to filter the relations. Users should provide null or empty string for this field until further notice.

  • identifier_types (List[str]) – Identifiers types (as property keys) used for referencing Persons or Legal Entities. These take the format {domain}/{scope}/{code} e.g. “Person/CompanyDetails/Role”. They must be from the “Person” or “LegalEntity” domain. Only identifier types stated will be used to look up relevant entities in relations. If not applicable, provide an empty array.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(ResourceListOfRelation, status_code(int), headers(HTTPHeaderDict))

get_legal_entity_relationships(id_type_scope, id_type_code, code, effective_at=None, as_at=None, filter=None, identifier_types=None, async_req=None, **kwargs)[source]

GetLegalEntityRelationships: Get Relationships for Legal Entity # noqa: E501

Get Relationships for the specified Legal Entity # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_legal_entity_relationships(id_type_scope, id_type_code, code, effective_at, as_at, filter, identifier_types, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity’s identifier type. (required)

  • id_type_code (str) – Code of the legal entity’s identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • effective_at (str) – The effective datetime or cut label at which to get relationships. Defaults to the current LUSID system datetime if not specified.

  • as_at (datetime) – The asAt datetime at which to retrieve relationships. Defaults to return the latest LUSID AsAt time if not specified.

  • filter (str) – Expression to filter relationships. Users should provide null or empty string for this field until further notice.

  • identifier_types (List[str]) – Identifier types (as property keys) used for referencing Persons or Legal Entities. These can be specified from the ‘Person’ or ‘LegalEntity’ domains and have the format {domain}/{scope}/{code}, for example ‘Person/CompanyDetails/Role’. An Empty array may be used to return all related Entities.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

ResourceListOfRelationship

get_legal_entity_relationships_with_http_info(id_type_scope, id_type_code, code, effective_at=None, as_at=None, filter=None, identifier_types=None, **kwargs)[source]

GetLegalEntityRelationships: Get Relationships for Legal Entity # noqa: E501

Get Relationships for the specified Legal Entity # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_legal_entity_relationships_with_http_info(id_type_scope, id_type_code, code, effective_at, as_at, filter, identifier_types, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity’s identifier type. (required)

  • id_type_code (str) – Code of the legal entity’s identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • effective_at (str) – The effective datetime or cut label at which to get relationships. Defaults to the current LUSID system datetime if not specified.

  • as_at (datetime) – The asAt datetime at which to retrieve relationships. Defaults to return the latest LUSID AsAt time if not specified.

  • filter (str) – Expression to filter relationships. Users should provide null or empty string for this field until further notice.

  • identifier_types (List[str]) – Identifier types (as property keys) used for referencing Persons or Legal Entities. These can be specified from the ‘Person’ or ‘LegalEntity’ domains and have the format {domain}/{scope}/{code}, for example ‘Person/CompanyDetails/Role’. An Empty array may be used to return all related Entities.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(ResourceListOfRelationship, status_code(int), headers(HTTPHeaderDict))

get_legal_entity_with_http_info(id_type_scope, id_type_code, code, property_keys=None, effective_at=None, as_at=None, relationship_definition_ids=None, **kwargs)[source]

GetLegalEntity: Get Legal Entity # noqa: E501

Retrieve the definition of a legal entity. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_legal_entity_with_http_info(id_type_scope, id_type_code, code, property_keys, effective_at, as_at, relationship_definition_ids, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • property_keys (List[str]) – A list of property keys or identifier types (as property keys) from the “LegalEntity” domain to include for found legal entity, or from any domain that supports relationships to decorate onto related entities. These take the format {domain}/{scope}/{code} e.g. “LegalEntity/ContactDetails/Address”.

  • effective_at (str) – The effective datetime or cut label at which to retrieve the legal entity. Defaults to the current LUSID system datetime if not specified.

  • as_at (datetime) – The asAt datetime at which to retrieve the legal entity. Defaults to return the latest version of the legal entity if not specified.

  • relationship_definition_ids (List[str]) – A list of relationship definitions that are used to decorate related entities onto the legal entity in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(LegalEntity, status_code(int), headers(HTTPHeaderDict))

list_all_legal_entities(effective_at=None, as_at=None, page=None, limit=None, filter=None, sort_by=None, property_keys=None, relationship_definition_ids=None, async_req=None, **kwargs)[source]

ListAllLegalEntities: List Legal Entities # noqa: E501

List all legal entities which the user is entitled to see. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.list_all_legal_entities(effective_at, as_at, page, limit, filter, sort_by, property_keys, relationship_definition_ids, async_req=True)
>>> result = thread.get()
Parameters:
  • effective_at (str) – The effective datetime or cut label at which to list the legal entities. Defaults to the current LUSID system datetime if not specified.

  • as_at (datetime) – The asAt datetime at which to list the legal entities. Defaults to return the latest version of each legal entities if not specified.

  • page (str) – The pagination token to use to continue listing legal entities from a previous call to list legal entities. This value is returned from the previous call. If a pagination token is provided the filter, effectiveAt, sortBy and asAt fields must not have changed since the original request.

  • limit (int) – When paginating, limit the number of returned results to this many. Defaults to 5000 if not specified.

  • filter (str) – Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.

  • sort_by (List[str]) – A list of field names or properties to sort by, each suffixed by “ ASC” or “ DESC”.

  • property_keys (List[str]) – A list of property keys or identifier types (as property keys) from the “LegalEntity” domain to include for each legal entity, or from any domain that supports relationships to decorate onto related entities. These take the format {domain}/{scope}/{code} e.g. “LegalEntity/ContactDetails/Address”.

  • relationship_definition_ids (List[str]) – A list of relationship definitions that are used to decorate related entities onto each portfolio in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

ResourceListOfLegalEntity

list_all_legal_entities_with_http_info(effective_at=None, as_at=None, page=None, limit=None, filter=None, sort_by=None, property_keys=None, relationship_definition_ids=None, **kwargs)[source]

ListAllLegalEntities: List Legal Entities # noqa: E501

List all legal entities which the user is entitled to see. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.list_all_legal_entities_with_http_info(effective_at, as_at, page, limit, filter, sort_by, property_keys, relationship_definition_ids, async_req=True)
>>> result = thread.get()
Parameters:
  • effective_at (str) – The effective datetime or cut label at which to list the legal entities. Defaults to the current LUSID system datetime if not specified.

  • as_at (datetime) – The asAt datetime at which to list the legal entities. Defaults to return the latest version of each legal entities if not specified.

  • page (str) – The pagination token to use to continue listing legal entities from a previous call to list legal entities. This value is returned from the previous call. If a pagination token is provided the filter, effectiveAt, sortBy and asAt fields must not have changed since the original request.

  • limit (int) – When paginating, limit the number of returned results to this many. Defaults to 5000 if not specified.

  • filter (str) – Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.

  • sort_by (List[str]) – A list of field names or properties to sort by, each suffixed by “ ASC” or “ DESC”.

  • property_keys (List[str]) – A list of property keys or identifier types (as property keys) from the “LegalEntity” domain to include for each legal entity, or from any domain that supports relationships to decorate onto related entities. These take the format {domain}/{scope}/{code} e.g. “LegalEntity/ContactDetails/Address”.

  • relationship_definition_ids (List[str]) – A list of relationship definitions that are used to decorate related entities onto each portfolio in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(ResourceListOfLegalEntity, status_code(int), headers(HTTPHeaderDict))

list_legal_entities(id_type_scope, id_type_code, effective_at=None, as_at=None, page=None, limit=None, filter=None, sort_by=None, property_keys=None, relationship_definition_ids=None, async_req=None, **kwargs)[source]

ListLegalEntities: List Legal Entities # noqa: E501

List legal entities which has identifier of specific identifier type’s scope and code, and satisfies filter criteria. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.list_legal_entities(id_type_scope, id_type_code, effective_at, as_at, page, limit, filter, sort_by, property_keys, relationship_definition_ids, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • effective_at (str) – The effective datetime or cut label at which to list the people. Defaults to the current LUSID system datetime if not specified.

  • as_at (datetime) – The asAt datetime at which to list the people. Defaults to return the latest version of each people if not specified.

  • page (str) – The pagination token to use to continue listing legal entities from a previous call to list legal entities. This value is returned from the previous call. If a pagination token is provided the filter, effectiveAt, sortBy and asAt fields must not have changed since the original request.

  • limit (int) – When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.

  • filter (str) – Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.

  • sort_by (List[str]) – A list of field names or properties to sort by, each suffixed by “ ASC” or “ DESC”.

  • property_keys (List[str]) – A list of property keys or identifier types (as property keys) from the “LegalEntity” domain to include for each legal entity, or from any domain that supports relationships to decorate onto related entities. These take the format {domain}/{scope}/{code} e.g. “LegalEntity/ContactDetails/Address”.

  • relationship_definition_ids (List[str]) – A list of relationship definitions that are used to decorate related entities onto each portfolio in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

PagedResourceListOfLegalEntity

list_legal_entities_with_http_info(id_type_scope, id_type_code, effective_at=None, as_at=None, page=None, limit=None, filter=None, sort_by=None, property_keys=None, relationship_definition_ids=None, **kwargs)[source]

ListLegalEntities: List Legal Entities # noqa: E501

List legal entities which has identifier of specific identifier type’s scope and code, and satisfies filter criteria. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.list_legal_entities_with_http_info(id_type_scope, id_type_code, effective_at, as_at, page, limit, filter, sort_by, property_keys, relationship_definition_ids, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • effective_at (str) – The effective datetime or cut label at which to list the people. Defaults to the current LUSID system datetime if not specified.

  • as_at (datetime) – The asAt datetime at which to list the people. Defaults to return the latest version of each people if not specified.

  • page (str) – The pagination token to use to continue listing legal entities from a previous call to list legal entities. This value is returned from the previous call. If a pagination token is provided the filter, effectiveAt, sortBy and asAt fields must not have changed since the original request.

  • limit (int) – When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.

  • filter (str) – Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.

  • sort_by (List[str]) – A list of field names or properties to sort by, each suffixed by “ ASC” or “ DESC”.

  • property_keys (List[str]) – A list of property keys or identifier types (as property keys) from the “LegalEntity” domain to include for each legal entity, or from any domain that supports relationships to decorate onto related entities. These take the format {domain}/{scope}/{code} e.g. “LegalEntity/ContactDetails/Address”.

  • relationship_definition_ids (List[str]) – A list of relationship definitions that are used to decorate related entities onto each portfolio in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(PagedResourceListOfLegalEntity, status_code(int), headers(HTTPHeaderDict))

patch_legal_entity_access_metadata(id_type_scope, id_type_code, code, access_metadata_operation, effective_at=None, effective_until=None, async_req=None, **kwargs)[source]

[EARLY ACCESS] PatchLegalEntityAccessMetadata: Patch Access Metadata rules for a Legal Entity. # noqa: E501

Patch Legal Entity Access Metadata Rules in a single scope. The behaviour is defined by the JSON Patch specification. Currently only ‘add’ is a supported operation on the patch document Currently only valid metadata keys are supported paths on the patch document The response will return any affected Legal Entity Access Metadata rules or a failure message if unsuccessful. It is important to always check to verify success (or failure). Multiple rules for a metadataKey can exist with different effective at dates, when resources are accessed the rule that is active for the current time will be fetched. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.patch_legal_entity_access_metadata(id_type_scope, id_type_code, code, access_metadata_operation, effective_at, effective_until, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the Legal Entity identifier. (required)

  • id_type_code (str) – Code of the Legal Entity identifier. (required)

  • code (str) – Code of the Legal Entity under specified identifier type’s scope and code. (required)

  • access_metadata_operation (List[AccessMetadataOperation]) – The Json Patch document (required)

  • effective_at (str) – The effectiveAt datetime at which to upsert the Access Metadata

  • effective_until (datetime) – The effective datetime until which the Access Metadata is valid. If not supplied this will be valid indefinitely, or until the next ‘effectiveAt’ datetime of the Access Metadata

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

Dict[str, List[AccessMetadataValue]]

patch_legal_entity_access_metadata_with_http_info(id_type_scope, id_type_code, code, access_metadata_operation, effective_at=None, effective_until=None, **kwargs)[source]

[EARLY ACCESS] PatchLegalEntityAccessMetadata: Patch Access Metadata rules for a Legal Entity. # noqa: E501

Patch Legal Entity Access Metadata Rules in a single scope. The behaviour is defined by the JSON Patch specification. Currently only ‘add’ is a supported operation on the patch document Currently only valid metadata keys are supported paths on the patch document The response will return any affected Legal Entity Access Metadata rules or a failure message if unsuccessful. It is important to always check to verify success (or failure). Multiple rules for a metadataKey can exist with different effective at dates, when resources are accessed the rule that is active for the current time will be fetched. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.patch_legal_entity_access_metadata_with_http_info(id_type_scope, id_type_code, code, access_metadata_operation, effective_at, effective_until, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the Legal Entity identifier. (required)

  • id_type_code (str) – Code of the Legal Entity identifier. (required)

  • code (str) – Code of the Legal Entity under specified identifier type’s scope and code. (required)

  • access_metadata_operation (List[AccessMetadataOperation]) – The Json Patch document (required)

  • effective_at (str) – The effectiveAt datetime at which to upsert the Access Metadata

  • effective_until (datetime) – The effective datetime until which the Access Metadata is valid. If not supplied this will be valid indefinitely, or until the next ‘effectiveAt’ datetime of the Access Metadata

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(Dict[str, List[AccessMetadataValue]], status_code(int), headers(HTTPHeaderDict))

set_legal_entity_identifiers(id_type_scope, id_type_code, code, set_legal_entity_identifiers_request, async_req=None, **kwargs)[source]

[EARLY ACCESS] SetLegalEntityIdentifiers: Set Legal Entity Identifiers # noqa: E501

Set identifiers of the Legal Entity. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.set_legal_entity_identifiers(id_type_scope, id_type_code, code, set_legal_entity_identifiers_request, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • set_legal_entity_identifiers_request (SetLegalEntityIdentifiersRequest) – Request containing identifiers to set for the legal entity. Identifiers not specified in request will not be changed. (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

LegalEntity

set_legal_entity_identifiers_with_http_info(id_type_scope, id_type_code, code, set_legal_entity_identifiers_request, **kwargs)[source]

[EARLY ACCESS] SetLegalEntityIdentifiers: Set Legal Entity Identifiers # noqa: E501

Set identifiers of the Legal Entity. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.set_legal_entity_identifiers_with_http_info(id_type_scope, id_type_code, code, set_legal_entity_identifiers_request, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • set_legal_entity_identifiers_request (SetLegalEntityIdentifiersRequest) – Request containing identifiers to set for the legal entity. Identifiers not specified in request will not be changed. (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(LegalEntity, status_code(int), headers(HTTPHeaderDict))

set_legal_entity_properties(id_type_scope, id_type_code, code, set_legal_entity_properties_request, async_req=None, **kwargs)[source]

SetLegalEntityProperties: Set Legal Entity Properties # noqa: E501

Set properties of the legal entity. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.set_legal_entity_properties(id_type_scope, id_type_code, code, set_legal_entity_properties_request, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • set_legal_entity_properties_request (SetLegalEntityPropertiesRequest) – Request containing properties to set for the legal entity. Properties not specified in request will not be changed. (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

LegalEntity

set_legal_entity_properties_with_http_info(id_type_scope, id_type_code, code, set_legal_entity_properties_request, **kwargs)[source]

SetLegalEntityProperties: Set Legal Entity Properties # noqa: E501

Set properties of the legal entity. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.set_legal_entity_properties_with_http_info(id_type_scope, id_type_code, code, set_legal_entity_properties_request, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the legal entity identifier type. (required)

  • id_type_code (str) – Code of the legal entity identifier type. (required)

  • code (str) – Code of the legal entity under specified identifier type’s scope and code. This together with stated identifier type uniquely identifies the legal entity. (required)

  • set_legal_entity_properties_request (SetLegalEntityPropertiesRequest) – Request containing properties to set for the legal entity. Properties not specified in request will not be changed. (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(LegalEntity, status_code(int), headers(HTTPHeaderDict))

upsert_legal_entities(success_mode, request_body, async_req=None, **kwargs)[source]

[EARLY ACCESS] UpsertLegalEntities: Batch upsert Legal Entities # noqa: E501

Creates or updates a collection of Legal Entities # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.upsert_legal_entities(success_mode, request_body, async_req=True)
>>> result = thread.get()
Parameters:
  • success_mode (str) – Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial (required)

  • request_body (Dict[str, UpsertLegalEntityRequest]) – A collection of requests to create or update Legal Entities. (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

UpsertLegalEntitiesResponse

upsert_legal_entities_with_http_info(success_mode, request_body, **kwargs)[source]

[EARLY ACCESS] UpsertLegalEntities: Batch upsert Legal Entities # noqa: E501

Creates or updates a collection of Legal Entities # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.upsert_legal_entities_with_http_info(success_mode, request_body, async_req=True)
>>> result = thread.get()
Parameters:
  • success_mode (str) – Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial (required)

  • request_body (Dict[str, UpsertLegalEntityRequest]) – A collection of requests to create or update Legal Entities. (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(UpsertLegalEntitiesResponse, status_code(int), headers(HTTPHeaderDict))

upsert_legal_entity(upsert_legal_entity_request, async_req=None, **kwargs)[source]

UpsertLegalEntity: Upsert Legal Entity # noqa: E501

Create or update a legal entity # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.upsert_legal_entity(upsert_legal_entity_request, async_req=True)
>>> result = thread.get()
Parameters:
  • upsert_legal_entity_request (UpsertLegalEntityRequest) – Request to create or update a legal entity. (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

LegalEntity

upsert_legal_entity_access_metadata(id_type_scope, id_type_code, code, metadata_key, upsert_legal_entity_access_metadata_request, effective_at=None, effective_until=None, async_req=None, **kwargs)[source]

UpsertLegalEntityAccessMetadata: Upsert a Legal Entity Access Metadata entry associated with a specific metadataKey. This creates or updates the data in LUSID. # noqa: E501

Update or insert one Legal Entity Access Metadata entry in a single scope. An item will be updated if it already exists and inserted if it does not. The response will return the successfully updated or inserted Legal Entity Access Metadata rule or failure message if unsuccessful. It is important to always check to verify success (or failure). Multiple rules for a metadataKey can exist with different effective at dates, when resources are accessed the rule that is active for the current time will be fetched. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.upsert_legal_entity_access_metadata(id_type_scope, id_type_code, code, metadata_key, upsert_legal_entity_access_metadata_request, effective_at, effective_until, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the Legal Entity identifier. (required)

  • id_type_code (str) – Code of the Legal Entity identifier. (required)

  • code (str) – Code of the Legal Entity under specified identifier type’s scope and code. (required)

  • metadata_key (str) – Key of the metadata entry to retrieve (required)

  • upsert_legal_entity_access_metadata_request (UpsertLegalEntityAccessMetadataRequest) – The Legal Entity Access Metadata entry to upsert (required)

  • effective_at (str) – The effectiveAt datetime at which to upsert the Access Metadata

  • effective_until (datetime) – The effective datetime until which the Access Metadata is valid. If not supplied this will be valid indefinitely, or until the next ‘effectiveAt’ datetime of the Access Metadata

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

ResourceListOfAccessMetadataValueOf

upsert_legal_entity_access_metadata_with_http_info(id_type_scope, id_type_code, code, metadata_key, upsert_legal_entity_access_metadata_request, effective_at=None, effective_until=None, **kwargs)[source]

UpsertLegalEntityAccessMetadata: Upsert a Legal Entity Access Metadata entry associated with a specific metadataKey. This creates or updates the data in LUSID. # noqa: E501

Update or insert one Legal Entity Access Metadata entry in a single scope. An item will be updated if it already exists and inserted if it does not. The response will return the successfully updated or inserted Legal Entity Access Metadata rule or failure message if unsuccessful. It is important to always check to verify success (or failure). Multiple rules for a metadataKey can exist with different effective at dates, when resources are accessed the rule that is active for the current time will be fetched. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.upsert_legal_entity_access_metadata_with_http_info(id_type_scope, id_type_code, code, metadata_key, upsert_legal_entity_access_metadata_request, effective_at, effective_until, async_req=True)
>>> result = thread.get()
Parameters:
  • id_type_scope (str) – Scope of the Legal Entity identifier. (required)

  • id_type_code (str) – Code of the Legal Entity identifier. (required)

  • code (str) – Code of the Legal Entity under specified identifier type’s scope and code. (required)

  • metadata_key (str) – Key of the metadata entry to retrieve (required)

  • upsert_legal_entity_access_metadata_request (UpsertLegalEntityAccessMetadataRequest) – The Legal Entity Access Metadata entry to upsert (required)

  • effective_at (str) – The effectiveAt datetime at which to upsert the Access Metadata

  • effective_until (datetime) – The effective datetime until which the Access Metadata is valid. If not supplied this will be valid indefinitely, or until the next ‘effectiveAt’ datetime of the Access Metadata

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(ResourceListOfAccessMetadataValueOf, status_code(int), headers(HTTPHeaderDict))

upsert_legal_entity_with_http_info(upsert_legal_entity_request, **kwargs)[source]

UpsertLegalEntity: Upsert Legal Entity # noqa: E501

Create or update a legal entity # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True

>>> thread = api.upsert_legal_entity_with_http_info(upsert_legal_entity_request, async_req=True)
>>> result = thread.get()
Parameters:
  • upsert_legal_entity_request (UpsertLegalEntityRequest) – Request to create or update a legal entity. (required)

  • async_req (bool, optional) – Whether to execute the request asynchronously.

  • _preload_content (bool, optional) – if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True.

  • _return_http_data_only (bool, optional) – response data instead of ApiResponse object with status code, headers, etc

  • _request_timeout – Timeout setting. Do not use - use the opts parameter instead

  • opts (ConfigurationOptions, optional) – Configuration options for this request

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

Returns:

Returns the result object. If the method is called asynchronously, returns the request thread.

Return type:

tuple(LegalEntity, status_code(int), headers(HTTPHeaderDict))

Previous Next

© Copyright .

Built with Sphinx using a theme provided by Read the Docs.