POST v1/Delivery/Surveys/{surveyId}/Properties

User roles allowed to make this request: DomainAdministrator RegularUser QuotaManager SampleManager RepositoryManager

Permissions required to make this request: DomainSurveyProperty.Write DomainSurveyProperty.Read DomainSurvey.Read

Adds the selected properties to the survey.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
surveyId

The Nfield Survey id.

string

Required

Body Parameters

The CreateDomainSurveyPropertyModel model

CreateDomainSurveyPropertyModel
NameDescriptionTypeAdditional information
Key

The key of the property

string

None.

Value

The value of the property

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Key": "sample string 1",
  "Value": "sample string 2"
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:
Key=sample&Value=sample

multipart/form-data

Sample:

Sample not available.

Response Information

Resource Description

NoContentResult, if succeeded. The appropriate exception in case of failure.

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.