Skip to content

Corrupted "third party entity" created through API #4509

Description

@sebastiengamby

Describe the bug
While preparing a script to create 'entities' through the API, I have created an incorrect entity record that raises exception when making subsequent Get calls to api/entities

To Reproduce
Steps to reproduce the behavior:

Execute a POST call to {ciso URL}/api/entities with the following body
{
'name': 'ACADEMISCHE COOPERATIEVE VENN. CV',
'ref_id': 'LIC-11793',
'folder': 'ca91e485-4518-4ccf-ba7a-45ba95a74279',
'relationship': ['b925d181-f287-41fd-93fa-29f4dd2c7460'],
'legal_identifiers': 'VAT: BE0403547615'
}

Expected behavior
The API function returns an error and an en explanation on what is wrong appears in the log file

Actual behavior
An incorrect entity record is created

Environment (please complete the following information):

  • Version 3.11.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions