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 76"
    }
  },
  "_embedded": {
    "sample string 42": [
      {
        "PersonalContactId": "sample string 55",
        "Name": "sample string 37",
        "SocialSecurityNumber": "sample string 43",
        "MobileNumber": "sample string 6",
        "MobileNumberChanged": "2024-04-19T00:16:34.3616272+02:00",
        "EMailAddress": "sample string 73",
        "EMailAddressChanged": "2024-04-19T00:16:34.3616272+02:00"
      },
      {
        "PersonalContactId": "sample string 55",
        "Name": "sample string 37",
        "SocialSecurityNumber": "sample string 43",
        "MobileNumber": "sample string 6",
        "MobileNumberChanged": "2024-04-19T00:16:34.3616272+02:00",
        "EMailAddress": "sample string 73",
        "EMailAddressChanged": "2024-04-19T00:16:34.3616272+02:00"
      },
      {
        "PersonalContactId": "sample string 55",
        "Name": "sample string 37",
        "SocialSecurityNumber": "sample string 43",
        "MobileNumber": "sample string 6",
        "MobileNumberChanged": "2024-04-19T00:16:34.3616272+02:00",
        "EMailAddress": "sample string 73",
        "EMailAddressChanged": "2024-04-19T00:16:34.3616272+02:00"
      }
    ]
  }
}