DELETE v1/Surveys/{surveyId}/ScriptFragments/{fragmentName}

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

Permissions required to make this request: SurveyScriptFragment.Delete SurveyScriptFragment.Read Survey.Read

Supports blueprint surveys

Delete the specified survey script fragment.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
surveyId

string

Required

fragmentName

string

Required

Body Parameters

None.

Response Information

Resource Description

Response Message

Collection of DeleteScriptFragmentResult
NameDescriptionTypeAdditional information
FragmentName

Name of the script fragment

string

None.

IsSuccessful

True if the operation did not internally result in an exception

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "FragmentName": "sample string 1",
    "IsSuccessful": true
  },
  {
    "FragmentName": "sample string 1",
    "IsSuccessful": true
  }
]

application/xml, text/xml

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