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 47"
    }
  },
  "_embedded": {
    "sample string 21": [
      {
        "PersonalContactId": "sample string 90",
        "Name": "sample string 66",
        "SocialSecurityNumber": "sample string 66",
        "MobileNumber": "sample string 21",
        "MobileNumberChanged": "2024-06-09T22:43:48.5651618+02:00",
        "EMailAddress": "sample string 7",
        "EMailAddressChanged": "2024-06-09T22:43:48.5651618+02:00",
        "_links": {
          "self": {
            "href": "sample string 86"
          }
        }
      },
      {
        "PersonalContactId": "sample string 90",
        "Name": "sample string 66",
        "SocialSecurityNumber": "sample string 66",
        "MobileNumber": "sample string 21",
        "MobileNumberChanged": "2024-06-09T22:43:48.5651618+02:00",
        "EMailAddress": "sample string 7",
        "EMailAddressChanged": "2024-06-09T22:43:48.5651618+02:00",
        "_links": {
          "self": {
            "href": "sample string 86"
          }
        }
      },
      {
        "PersonalContactId": "sample string 90",
        "Name": "sample string 66",
        "SocialSecurityNumber": "sample string 66",
        "MobileNumber": "sample string 21",
        "MobileNumberChanged": "2024-06-09T22:43:48.5651618+02:00",
        "EMailAddress": "sample string 7",
        "EMailAddressChanged": "2024-06-09T22:43:48.5651618+02:00",
        "_links": {
          "self": {
            "href": "sample string 86"
          }
        }
      }
    ]
  }
}