PUT api/MyAssessments

Request Information

URI Parameters

None.

Body Parameters

AssignAssessment
NameDescriptionTypeAdditional information
assessmentId

integer

None.

sites

Collection of integer

None.

orgs

Collection of integer

None.

myOrgId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "assessmentId": 1,
  "sites": [
    1,
    2
  ],
  "orgs": [
    1,
    2
  ],
  "myOrgId": 1
}

application/xml, text/xml

Sample:
<MyAssessmentsController.AssignAssessment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IAN_QPSA.Controllers">
  <assessmentId>1</assessmentId>
  <myOrgId>1</myOrgId>
  <orgs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </orgs>
  <sites xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </sites>
</MyAssessmentsController.AssignAssessment>

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.