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": "6382fae5-7dfb-4f51-a6b1-d79e61ffb070"
      },
      {
        "enable": true,
        "active": true,
        "report_info_id": "6382fae5-7dfb-4f51-a6b1-d79e61ffb070"
      }
    ],
    "user_id": "db3f9bce-6926-4715-b3e3-550232a28c22",
    "username": "sample string 2"
  },
  {
    "reports": [
      {
        "enable": true,
        "active": true,
        "report_info_id": "6382fae5-7dfb-4f51-a6b1-d79e61ffb070"
      },
      {
        "enable": true,
        "active": true,
        "report_info_id": "6382fae5-7dfb-4f51-a6b1-d79e61ffb070"
      }
    ],
    "user_id": "db3f9bce-6926-4715-b3e3-550232a28c22",
    "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>6382fae5-7dfb-4f51-a6b1-d79e61ffb070</report_info_id>
      </powerBiReportUser>
      <powerBiReportUser>
        <active>true</active>
        <enable>true</enable>
        <report_info_id>6382fae5-7dfb-4f51-a6b1-d79e61ffb070</report_info_id>
      </powerBiReportUser>
    </reports>
    <user_id>db3f9bce-6926-4715-b3e3-550232a28c22</user_id>
    <username>sample string 2</username>
  </PBI_UserWithPowerBiReportsUserViewModel>
  <PBI_UserWithPowerBiReportsUserViewModel>
    <reports>
      <powerBiReportUser>
        <active>true</active>
        <enable>true</enable>
        <report_info_id>6382fae5-7dfb-4f51-a6b1-d79e61ffb070</report_info_id>
      </powerBiReportUser>
      <powerBiReportUser>
        <active>true</active>
        <enable>true</enable>
        <report_info_id>6382fae5-7dfb-4f51-a6b1-d79e61ffb070</report_info_id>
      </powerBiReportUser>
    </reports>
    <user_id>db3f9bce-6926-4715-b3e3-550232a28c22</user_id>
    <username>sample string 2</username>
  </PBI_UserWithPowerBiReportsUserViewModel>
</ArrayOfPBI_UserWithPowerBiReportsUserViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ICollection`1'.

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>