GET v1/Delivery/Repositories/{repositoryId}/Surveys
User roles allowed to make this request:
DomainAdministrator
RepositoryManager
Permissions required to make this request:
Repository.Read
Returns the surveys of the given repository. Returns first 100. This list can be filtered, sorted and supports paging using standard OData syntax.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
repositoryId |
The repository id. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
The repository surveys.
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. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "NfieldSurveyId": "sample string 2", "AddedOn": "2024-09-07T11:26:22.6767201+00:00", "Status": "sample string 4", "LastSyncedAt": "2024-09-07T11:26:22.6767201+00:00" }, { "Id": 1, "NfieldSurveyId": "sample string 2", "AddedOn": "2024-09-07T11:26:22.6767201+00:00", "Status": "sample string 4", "LastSyncedAt": "2024-09-07T11:26:22.6767201+00:00" } ]
application/xml, text/xml
Sample:
<ArrayOfRepositorySurveyModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NipoSoftware.Nfield.Manager.Api.Models.Delivery"> <RepositorySurveyModel> <AddedOn>2024-09-07T11:26:22.6767201+00:00</AddedOn> <Id>1</Id> <LastSyncedAt>2024-09-07T11:26:22.6767201+00:00</LastSyncedAt> <NfieldSurveyId>sample string 2</NfieldSurveyId> <Status>sample string 4</Status> </RepositorySurveyModel> <RepositorySurveyModel> <AddedOn>2024-09-07T11:26:22.6767201+00:00</AddedOn> <Id>1</Id> <LastSyncedAt>2024-09-07T11:26:22.6767201+00:00</LastSyncedAt> <NfieldSurveyId>sample string 2</NfieldSurveyId> <Status>sample string 4</Status> </RepositorySurveyModel> </ArrayOfRepositorySurveyModel>