PATCH v1/Surveys/{surveyId}/SamplingMethod

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

Permissions required to make this request: SamplingMethod.Write SamplingMethod.Read Survey.Read

Has survey type usage restrictions capi

Method for saving the SamplingMethod

Request Information

URI Parameters

NameDescriptionTypeAdditional information
surveyId

string

Required

Body Parameters

SamplingMethodModel
NameDescriptionTypeAdditional information
SamplingMethod

SamplingMethod type supported values: FreeIntercept, JointTargets, IndividualTargets, SamplingPoints, Addresses, AddressesWithQuota

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SamplingMethod": "sample string 1"
}

application/xml, text/xml

Sample:
<SamplingMethodModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NipoSoftware.Nfield.Manager.Api.Models">
  <SamplingMethod>sample string 1</SamplingMethod>
</SamplingMethodModel>

application/x-www-form-urlencoded

Sample:
SamplingMethod=sample

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.