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
Name | Description | Type | Additional 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
SurveyPublishTypeUpgradeModelName | Description | Type | Additional 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
{ "PackageType": 0, "ForceUpgrade": 0 }
application/xml, text/xml
<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
PackageType=Live&ForceUpgrade=NoUpgrade
multipart/form-data
Sample not available.
Response Information
Resource Description
Message indicating successful Survey publishing.
Response Message
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |