GET serviceowner/organizations/{organizationNumber}/personalcontacts?roleDefinitionCode={roleDefinitionCode}&serviceCode={serviceCode}&serviceEdition={serviceEdition}

Gets a list of all personal contacts for an organization. If no parameters are given for filtering, all personal contacts will be returned - If roleTypeCode is set, the returned list will be filtered based on the role which the creators of the endpoints has. - If serviceCode and serviceEdition is set, the returned list will be filtered based on whether the creator of the endpoint has access to the service identified by the parameters, and if the creator has opted to receive notification for it. Note: Email and phone number will not be shown if the user has selected to not receive notifications for all services on either one. The only exception is when filtering the list based on notification for a specific service, in this case both email and phone number will be shown if the user has deselected both options, but has a notification endpoint for the specific service being filtered on.

Request Information

Parameters

NameDescriptionAdditional information
organizationNumber The organization number of the current unit for which personal contacts should be retrieved.

Define this parameter in the request URI.

roleDefinitionCode The role definition code to filter on.

Define this parameter in the request URI.

serviceCode The service code to filter on.

Define this parameter in the request URI.

serviceEdition The service edition to filter on.

Define this parameter in the request URI.

queryOptions The supplied ODataQueryOptions (if any).

None.

Response Information

The list of personal contacts associated with the organization.

Response body formats

application/hal+xml

Sample:

Sample not available.

application/hal+json

Sample:
{
  "_links": {
    "self": {
      "href": "sample string 79"
    }
  },
  "_embedded": {
    "sample string 66": [
      {
        "PersonalContactId": "sample string 33",
        "Name": "sample string 49",
        "SocialSecurityNumber": "sample string 88",
        "MobileNumber": "sample string 6",
        "MobileNumberChanged": "2024-11-21T21:53:39.7287619+01:00",
        "EMailAddress": "sample string 86",
        "EMailAddressChanged": "2024-11-21T21:53:39.7287619+01:00"
      },
      {
        "PersonalContactId": "sample string 33",
        "Name": "sample string 49",
        "SocialSecurityNumber": "sample string 88",
        "MobileNumber": "sample string 6",
        "MobileNumberChanged": "2024-11-21T21:53:39.7287619+01:00",
        "EMailAddress": "sample string 86",
        "EMailAddressChanged": "2024-11-21T21:53:39.7287619+01:00"
      },
      {
        "PersonalContactId": "sample string 33",
        "Name": "sample string 49",
        "SocialSecurityNumber": "sample string 88",
        "MobileNumber": "sample string 6",
        "MobileNumberChanged": "2024-11-21T21:53:39.7287619+01:00",
        "EMailAddress": "sample string 86",
        "EMailAddressChanged": "2024-11-21T21:53:39.7287619+01:00"
      }
    ]
  }
}