Scenario #1039: Remove Operations Contact From Partner

Given Properties

name value
operationsContactPerson Dennis Krause

Operations-Contact: Dennis Krause

GET /api/hs/office/relations?relationType=OPERATIONS&name=Dennis+Krause
=> status: 200 OK 
[ {
  "uuid" : "e4de9333-ccdf-4da2-8f0a-8ecaeb854208", // Operations-Contact: Dennis Krause for Test AG
  "anchor" : {
    "uuid" : "f8f6ad7e-53d2-4cf0-9cb9-30ca2767c599", // Person: Test AG
    "personType" : "LEGAL_PERSON",
    "tradeName" : "Test AG",
    "salutation" : null,
    "title" : null,
    "givenName" : null,
    "familyName" : null
  },
  "holder" : {
    "uuid" : "0fc99b0a-7d7a-4258-aa9a-70568ff247c3", // Person: Dennis Krause
    "personType" : "NATURAL_PERSON",
    "tradeName" : null,
    "salutation" : null,
    "title" : null,
    "givenName" : "Dennis",
    "familyName" : "Krause"
  },
  "type" : "OPERATIONS",
  "mark" : null,
  "contact" : {
    "uuid" : "1ddfe5ca-5633-488f-9079-44c29d38d6eb", // Contact: Dennis Krause
    "caption" : "Dennis Krause",
    "postalAddress" : { },
    "emailAddresses" : {
      "main" : "dennis.krause@example.org"
    },
    "phoneNumbers" : {
      "main" : "+49 9932 587741"
    }
  }
} ]

In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.

Delete the Contact

DELETE /api/hs/office/relations/e4de9333-ccdf-4da2-8f0a-8ecaeb854208 // Operations-Contact: Dennis Krause for Test AG
=> status: 204 NO_CONTENT 

Verify the New OPERATIONS Relation

GET /api/hs/office/relations/e4de9333-ccdf-4da2-8f0a-8ecaeb854208 // Operations-Contact: Dennis Krause for Test AG
=> status: 404 NOT_FOUND 
null

generated on 03-10-2025 12:07:39 for branch master