POST api/Profiles/AssignProfile

Request Information

URI Parameters

None.

Body Parameters

AvailableWebpackRequest
NameDescriptionTypeAdditional information
ProfileId

globally unique identifier

None.

SelectedUsers

Collection of UserWithDepartment

None.

Request Formats

application/json, text/json

Sample:
{
  "ProfileId": "d229add8-94b4-4039-a13b-209204013e14",
  "SelectedUsers": [
    {
      "DepartmentName": "sample string 1",
      "FullNameWDep": "sample string 5 sample string 6 (sample string 1)",
      "TeamName": "sample string 2",
      "Selected": true,
      "Profile": {
        "Id": "sample string 1",
        "Country": "BE",
        "Language": "NL",
        "FirstName": "sample string 2",
        "LastName": "sample string 3",
        "FullName": "sample string 2 sample string 3",
        "Email": "sample string 4",
        "DepartmentID": "9868fdc7-5065-4c31-a965-ac12bc087b76",
        "OrganisationID": "489c3bd2-390c-4dba-b258-734d9e7f2edf",
        "CrmId": "sample string 5",
        "CrmUserId": 6,
        "Is3PUser": true,
        "IsWorkman": true,
        "IsExtern": true,
        "Roles": [
          "sample string 1",
          "sample string 2"
        ],
        "TeamID": "0feb9ba6-469a-4465-8dc0-496b16487ab6",
        "MyTeamIDs": [
          "fd46128a-adbb-4adc-906e-56c3149c7231",
          "59bcd830-32f4-481e-aeab-a186eaff38d1"
        ],
        "MyTeams": [
          {
            "Reference": "sample string 1",
            "Id": "b167f5bf-9023-425a-acc6-a13a6742c3fe",
            "Description": "sample string 3",
            "CrmId": "sample string 4",
            "IsArchived": true
          },
          {
            "Reference": "sample string 1",
            "Id": "b167f5bf-9023-425a-acc6-a13a6742c3fe",
            "Description": "sample string 3",
            "CrmId": "sample string 4",
            "IsArchived": true
          }
        ],
        "UserType": 0,
        "ProfileID": "sample string 10",
        "CopyFromId": "sample string 11"
      },
      "Id": "sample string 4",
      "Country": "BE",
      "Language": "NL",
      "FirstName": "sample string 5",
      "LastName": "sample string 6",
      "FullName": "sample string 5 sample string 6",
      "Email": "sample string 7",
      "DepartmentID": "013e364c-424b-46e3-8526-a4fbdecda8d9",
      "OrganisationID": "4de27b24-22cb-42db-8b76-37ad13e9c57a",
      "CrmId": "sample string 8",
      "CrmUserId": 9,
      "Is3PUser": true,
      "IsWorkman": true,
      "IsExtern": true,
      "Roles": [
        "sample string 1",
        "sample string 2"
      ],
      "TeamID": "a19b3caf-3cbf-468b-9553-9aba8512534e",
      "MyTeamIDs": [
        "c1a12ead-fa26-4fed-a14e-89d73d2a0329",
        "a62f5868-9508-4e44-82e4-6ccd3a955d8c"
      ],
      "MyTeams": [
        {
          "Reference": "sample string 1",
          "Id": "b167f5bf-9023-425a-acc6-a13a6742c3fe",
          "Description": "sample string 3",
          "CrmId": "sample string 4",
          "IsArchived": true
        },
        {
          "Reference": "sample string 1",
          "Id": "b167f5bf-9023-425a-acc6-a13a6742c3fe",
          "Description": "sample string 3",
          "CrmId": "sample string 4",
          "IsArchived": true
        }
      ],
      "UserType": 0,
      "ProfileID": "sample string 13",
      "CopyFromId": "sample string 14"
    },
    {
      "DepartmentName": "sample string 1",
      "FullNameWDep": "sample string 5 sample string 6 (sample string 1)",
      "TeamName": "sample string 2",
      "Selected": true,
      "Profile": {
        "Id": "sample string 1",
        "Country": "BE",
        "Language": "NL",
        "FirstName": "sample string 2",
        "LastName": "sample string 3",
        "FullName": "sample string 2 sample string 3",
        "Email": "sample string 4",
        "DepartmentID": "9868fdc7-5065-4c31-a965-ac12bc087b76",
        "OrganisationID": "489c3bd2-390c-4dba-b258-734d9e7f2edf",
        "CrmId": "sample string 5",
        "CrmUserId": 6,
        "Is3PUser": true,
        "IsWorkman": true,
        "IsExtern": true,
        "Roles": [
          "sample string 1",
          "sample string 2"
        ],
        "TeamID": "0feb9ba6-469a-4465-8dc0-496b16487ab6",
        "MyTeamIDs": [
          "fd46128a-adbb-4adc-906e-56c3149c7231",
          "59bcd830-32f4-481e-aeab-a186eaff38d1"
        ],
        "MyTeams": [
          {
            "Reference": "sample string 1",
            "Id": "b167f5bf-9023-425a-acc6-a13a6742c3fe",
            "Description": "sample string 3",
            "CrmId": "sample string 4",
            "IsArchived": true
          },
          {
            "Reference": "sample string 1",
            "Id": "b167f5bf-9023-425a-acc6-a13a6742c3fe",
            "Description": "sample string 3",
            "CrmId": "sample string 4",
            "IsArchived": true
          }
        ],
        "UserType": 0,
        "ProfileID": "sample string 10",
        "CopyFromId": "sample string 11"
      },
      "Id": "sample string 4",
      "Country": "BE",
      "Language": "NL",
      "FirstName": "sample string 5",
      "LastName": "sample string 6",
      "FullName": "sample string 5 sample string 6",
      "Email": "sample string 7",
      "DepartmentID": "013e364c-424b-46e3-8526-a4fbdecda8d9",
      "OrganisationID": "4de27b24-22cb-42db-8b76-37ad13e9c57a",
      "CrmId": "sample string 8",
      "CrmUserId": 9,
      "Is3PUser": true,
      "IsWorkman": true,
      "IsExtern": true,
      "Roles": [
        "sample string 1",
        "sample string 2"
      ],
      "TeamID": "a19b3caf-3cbf-468b-9553-9aba8512534e",
      "MyTeamIDs": [
        "c1a12ead-fa26-4fed-a14e-89d73d2a0329",
        "a62f5868-9508-4e44-82e4-6ccd3a955d8c"
      ],
      "MyTeams": [
        {
          "Reference": "sample string 1",
          "Id": "b167f5bf-9023-425a-acc6-a13a6742c3fe",
          "Description": "sample string 3",
          "CrmId": "sample string 4",
          "IsArchived": true
        },
        {
          "Reference": "sample string 1",
          "Id": "b167f5bf-9023-425a-acc6-a13a6742c3fe",
          "Description": "sample string 3",
          "CrmId": "sample string 4",
          "IsArchived": true
        }
      ],
      "UserType": 0,
      "ProfileID": "sample string 13",
      "CopyFromId": "sample string 14"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.