POST v1/Surveys/{surveyId}/MediaFiles/{fileName}

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

Permissions required to make this request: SurveyMediaFile.Write SurveyMediaFile.Read Survey.Read

Supports blueprint surveys

Creates or update the survey media file. You can upload multiple zipped files, make sure you don't add folders to the zip.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
surveyId

The survey id

string

Required

fileName

The filename of the media file

string

Required

Body Parameters

None.

Response Information

Resource Description

Message indicating the status of the request

Response Message

BackgroundActivityStatus
NameDescriptionTypeAdditional information
ActivityId

The id of the started activity

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ActivityId": "sample string 1"
}

application/xml, text/xml

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