POST api/PBI_reportUser/reportUser

Request Information

URI Parameters

None.

Body Parameters

Collection of PBI_UserWithPowerBiReportsUserViewModel
NameDescriptionTypeAdditional information
reports

Collection of PBI_ReportUserViewModel

None.

user_id

globally unique identifier

Required

username

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "reports": [
      {
        "enable": true,
        "active": true,
        "report_info_id": "6addfedb-eace-4c7a-9163-0244ed8a2bbd"
      },
      {
        "enable": true,
        "active": true,
        "report_info_id": "6addfedb-eace-4c7a-9163-0244ed8a2bbd"
      }
    ],
    "user_id": "95c4cc70-e272-400a-965d-9fbbfe6742e2",
    "username": "sample string 2"
  },
  {
    "reports": [
      {
        "enable": true,
        "active": true,
        "report_info_id": "6addfedb-eace-4c7a-9163-0244ed8a2bbd"
      },
      {
        "enable": true,
        "active": true,
        "report_info_id": "6addfedb-eace-4c7a-9163-0244ed8a2bbd"
      }
    ],
    "user_id": "95c4cc70-e272-400a-965d-9fbbfe6742e2",
    "username": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPBI_UserWithPowerBiReportsUserViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <PBI_UserWithPowerBiReportsUserViewModel>
    <reports>
      <powerBiReportUser>
        <active>true</active>
        <enable>true</enable>
        <report_info_id>6addfedb-eace-4c7a-9163-0244ed8a2bbd</report_info_id>
      </powerBiReportUser>
      <powerBiReportUser>
        <active>true</active>
        <enable>true</enable>
        <report_info_id>6addfedb-eace-4c7a-9163-0244ed8a2bbd</report_info_id>
      </powerBiReportUser>
    </reports>
    <user_id>95c4cc70-e272-400a-965d-9fbbfe6742e2</user_id>
    <username>sample string 2</username>
  </PBI_UserWithPowerBiReportsUserViewModel>
  <PBI_UserWithPowerBiReportsUserViewModel>
    <reports>
      <powerBiReportUser>
        <active>true</active>
        <enable>true</enable>
        <report_info_id>6addfedb-eace-4c7a-9163-0244ed8a2bbd</report_info_id>
      </powerBiReportUser>
      <powerBiReportUser>
        <active>true</active>
        <enable>true</enable>
        <report_info_id>6addfedb-eace-4c7a-9163-0244ed8a2bbd</report_info_id>
      </powerBiReportUser>
    </reports>
    <user_id>95c4cc70-e272-400a-965d-9fbbfe6742e2</user_id>
    <username>sample string 2</username>
  </PBI_UserWithPowerBiReportsUserViewModel>
</ArrayOfPBI_UserWithPowerBiReportsUserViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>