PUT v1/Surveys/{surveyId}/Publish

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

Permissions required to make this request: Survey.Publish.Live Survey.Publish.Test Survey.Read

Publishes the survey to the survey package.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
surveyId

The id of the survey.

string

Required

Body Parameters

A model that handels the interview package type and force interviews on older packages to upgrade to this package

SurveyPublishTypeUpgradeModel
NameDescriptionTypeAdditional information
PackageType

The Interview Package Type

InterviewPackageType

None.

ForceUpgrade

The state of published new package if upgrade for current interviews needed

PackageForceUpgrade

None.

Request Formats

application/json, text/json

Sample:
{
  "PackageType": 0,
  "ForceUpgrade": 0
}

application/xml, text/xml

Sample:
<SurveyPublishTypeUpgradeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NipoSoftware.Nfield.Manager.Api.Models">
  <ForceUpgrade>NoUpgrade</ForceUpgrade>
  <PackageType>Unknown</PackageType>
</SurveyPublishTypeUpgradeModel>

application/x-www-form-urlencoded

Sample:
PackageType=Live&ForceUpgrade=NoUpgrade

multipart/form-data

Sample:

Sample not available.

Response Information

Resource Description

Message indicating successful Survey publishing.

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.