PUT v1/Surveys/{surveyId}/GeneralSettings/Owner
The Owner endpoint is obsolete, please use the GeneralSettings endpoint.
User roles allowed to make this request:
DomainAdministrator
PowerUser
RegularUser
LimitedUser
OperationsUser
Permissions required to make this request:
Survey.Write
Survey.Read
Update the survey owner
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
surveyId |
id of the survey |
string |
Required |
Body Parameters
the user id of the new owner of the survey. It can be set to null to remove the active ownwer
SurveyGeneralSettingsOwnerRequestModelName | Description | Type | Additional information |
---|---|---|---|
Owner |
The user id of the new owner of the survey. It can be set to null to remove the active owner |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Owner": "sample string 1" }
application/xml, text/xml
Sample:
<SurveyGeneralSettingsOwnerRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NipoSoftware.Nfield.Manager.Api.Models.SurveyGeneralSettings"> <Owner>sample string 1</Owner> </SurveyGeneralSettingsOwnerRequestModel>
application/x-www-form-urlencoded
Sample:
Owner=sample
multipart/form-data
Sample:
Sample not available.
Response Information
Resource Description
The new survey owner
Response Message
SurveyGeneralSettingsOwnerResponseModelName | Description | Type | Additional information |
---|---|---|---|
Owner |
The user object of the owner of the survey |
User |
None. |
Response Formats
application/json, text/json
Sample:
{ "Owner": { "Id": "sample string 1", "UserName": "sample string 2" } }
application/xml, text/xml
Sample:
<SurveyGeneralSettingsOwnerResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NipoSoftware.Nfield.Manager.Api.Models.SurveyGeneralSettings"> <Owner> <Id>sample string 1</Id> <UserName>sample string 2</UserName> </Owner> </SurveyGeneralSettingsOwnerResponseModel>