PUT v1/Surveys/{surveyId}/Assignments/{interviewerId}/QuotaLevelTargets

User roles allowed to make this request: DomainAdministrator PowerUser RegularUser Supervisor SampleManager

Permissions required to make this request: SurveyWorkPackage.Distribute SurveyWorkPackage.Read

Has survey type usage restrictions capi

Updates an interviewer's a set of work package quota level targets for a survey. It doesn't validate if all the level Ids exist.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
surveyId

The survey id that the interviewer assignment belongs to

string

Required

interviewerId

The id of the interviewer to edit

string

Required

Body Parameters

Collection of new quota level targets to set.

Collection of WorkPackageTarget
NameDescriptionTypeAdditional information
LevelId

string

None.

Target

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "LevelId": "sample string 1",
    "Target": 2
  },
  {
    "LevelId": "sample string 1",
    "Target": 2
  }
]

application/xml, text/xml

Sample:
<ArrayOfWorkPackageTarget xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nfield.Capi.Interviewers.Models">
  <WorkPackageTarget>
    <LevelId>sample string 1</LevelId>
    <Target>2</Target>
  </WorkPackageTarget>
  <WorkPackageTarget>
    <LevelId>sample string 1</LevelId>
    <Target>2</Target>
  </WorkPackageTarget>
</ArrayOfWorkPackageTarget>

application/x-www-form-urlencoded

Sample:
Length=1&LongLength=Int64&Rank=1&SyncRoot=Object&IsReadOnly=true&IsFixedSize=true&IsSynchronized=true

multipart/form-data

Sample:

Sample not available.

Response Information

Resource Description

Response Message

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.