Paths
Get Hubs
GET /
Parameters
| Type | Name | Description | Schema | Default |
|---|---|---|---|---|
Query |
page |
Use this when paging through the hubs (default=1). Optional. Ex: Append page=4 to the query parameters. |
integer (int32) |
|
Query |
pageSize |
Number of hubs to retrieve per request (default=100). Optional. Ex: Append pageSize=20 to the query parameters. |
integer (int32) |
|
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The list of hubs is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
Example HTTP response
Response 200
{
"itemType" : "Hub",
"itemCount" : 2,
"totalCount" : 10,
"items" : [ {
"hubId" : 1,
"name" : "MyHub",
"description" : "My Hub to aggregate all surveys from a particular research.",
"companyId" : 1,
"companyName" : "Forsta"
}, {
"hubId" : 2,
"name" : "MyHub 2 ",
"description" : "My Hub to aggregate all surveys from another research.",
"companyId" : 1,
"companyName" : "Forsta"
} ],
"links" : {
"nextpage" : "<host>/v1/hubs/?page=3&pageSize=2",
"prevpage" : "<host>/v1/hubs/?page=1&pageSize=2",
"item" : "<host>/v1/hubs/{HubId}"
}
}
Get Hub
GET /{hubId}
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The hub is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub was not found. |
Example HTTP response
Response 200
{
"hubId" : 1,
"name" : "MyHub",
"description" : "My Hub to aggregate all surveys from a particular research.",
"companyId" : 1,
"companyName" : "Forsta",
"links" : {
"self" : "<host>/v1/hubs/1",
"enduserlists" : "<host>/v1/hubs/1/enduserlists",
"surveys" : "<host>/v1/hubs/1/surveys",
"tables" : "<host>/v1/hubs/1/tables"
}
}
Read auto-combined survey respondents.
GET /{hubId}/auto-combined-surveys/{surveyId}/respondents/data
Description
Returns auto-combined survey respondents as stream. Sample requests:
GET /4410/auto-combined-surveys/p240597392086/respondents/data GET /4410/auto-combined-surveys/p240597392086/respondents/data?stateId=100500
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Owner Hub Id |
integer (int64) |
Path |
surveyId |
Id of auto-combined survey |
string |
Query |
stateId |
Survey StateId. Optional. Provides incremental data load. Use this parameter in order to get only changes to the survey respondents made after the pointed survey StateId. Ignore this parameter in order to get all survey respondents. |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. All requested survey respondents are returned. The API provides the data either as a stream or a resource collection depending on the request accept header. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or survey was not found. |
|
412 |
Failed to read incremental data. Retry with no 'stateId' parameter. |
No Content |
Example HTTP response
Response 200
{
"itemType" : "SurveyDataRecord",
"itemCount" : 5,
"totalCount" : 5,
"items" : [ {
"combined_sourceid" : "p750209410546",
"respid" : 1,
"CreatedDate" : "2021-02-15T17:58:22.35+01:00"
}, {
"combined_sourceid" : "p750209410546",
"respid" : 2,
"CreatedDate" : "2021-02-15T17:58:32.473+01:00"
}, {
"combined_sourceid" : "p601884965518",
"respid" : 1,
"CreatedDate" : "2021-02-15T17:57:16.4+01:00"
}, {
"combined_sourceid" : "p601884965518",
"respid" : 2,
"CreatedDate" : "2021-02-15T17:57:32.51+01:00"
}, {
"combined_sourceid" : "p601884965518",
"respid" : 3,
"CreatedDate" : "2021-02-15T17:57:52.227+01:00"
} ],
"links" : {
"self" : "<host>/v1/hubs/4410/automapped-surveys/p240597392086/respondents/data"
}
}
{
"application/json" : {
"itemType" : "SurveyDataRecord",
"itemCount" : 5,
"totalCount" : 5,
"items" : [ {
"combined_sourceid" : "p750209410546",
"respid" : 1,
"CreatedDate" : "2021-02-15T17:58:22.35+01:00"
}, {
"combined_sourceid" : "p750209410546",
"respid" : 2,
"CreatedDate" : "2021-02-15T17:58:32.473+01:00"
}, {
"combined_sourceid" : "p601884965518",
"respid" : 1,
"CreatedDate" : "2021-02-15T17:57:16.4+01:00"
}, {
"combined_sourceid" : "p601884965518",
"respid" : 2,
"CreatedDate" : "2021-02-15T17:57:32.51+01:00"
}, {
"combined_sourceid" : "p601884965518",
"respid" : 3,
"CreatedDate" : "2021-02-15T17:57:52.227+01:00"
} ],
"links" : {
"self" : "<host>/v1/hubs/4410/automapped-surveys/p240597392086/respondents/data"
}
},
"application/x-ndjson" : {
"itemType" : "SurveyDataRecord",
"itemCount" : 5,
"totalCount" : 5,
"items" : [ {
"combined_sourceid" : "p750209410546",
"respid" : 1,
"CreatedDate" : "2021-02-15T17:58:22.35+01:00"
}, {
"combined_sourceid" : "p750209410546",
"respid" : 2,
"CreatedDate" : "2021-02-15T17:58:32.473+01:00"
}, {
"combined_sourceid" : "p601884965518",
"respid" : 1,
"CreatedDate" : "2021-02-15T17:57:16.4+01:00"
}, {
"combined_sourceid" : "p601884965518",
"respid" : 2,
"CreatedDate" : "2021-02-15T17:57:32.51+01:00"
}, {
"combined_sourceid" : "p601884965518",
"respid" : 3,
"CreatedDate" : "2021-02-15T17:57:52.227+01:00"
} ],
"links" : {
"self" : "<host>/v1/hubs/4410/automapped-surveys/p240597392086/respondents/data"
}
}
}
Read auto-combined survey respondents schema.
GET /{hubId}/auto-combined-surveys/{surveyId}/respondents/schema
Description
Returns auto-combined survey respondents full schema. Sample request:
GET /4410/auto-combined-surveys/p240597392086/respondents/schema
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Owner Hub Id |
integer (int64) |
Path |
surveyId |
Id of auto-combined survey |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The survey respondents schema is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or survey was not found. |
Example HTTP response
Response 200
{
"defaultConfirmitLanguageId" : 9,
"languages" : [ {
"confirmitLanguageId" : 9
} ],
"root" : {
"name" : "respondent",
"keys" : [ {
"name" : "combined_sourceid",
"isCompound" : false,
"isBackground" : false,
"isHidden" : false,
"variableType" : "singleChoice",
"isSystemVariable" : false,
"isRespondentVariable" : false,
"options" : [ {
"code" : "p601884965518",
"hasOtherField" : false,
"texts" : [ {
"languageId" : 9,
"text" : "Name of the first survey included into auto-mapping"
} ]
}, {
"code" : "p750209410546",
"hasOtherField" : false,
"texts" : [ {
"languageId" : 9,
"text" : "Name of the second survey included into auto-mapping"
} ]
} ],
"excludeFromReporting" : false
}, {
"name" : "respid",
"isCompound" : false,
"isBackground" : false,
"isHidden" : false,
"variableType" : "numeric",
"isSystemVariable" : true,
"isRespondentVariable" : false,
"excludeFromReporting" : false
} ],
"variables" : [ {
"name" : "CreatedDate",
"isCompound" : false,
"isBackground" : false,
"isHidden" : false,
"variableType" : "dateTime",
"isSystemVariable" : true,
"isRespondentVariable" : false,
"excludeFromReporting" : false
} ]
}
}
Read auto-combined survey response data.
GET /{hubId}/auto-combined-surveys/{surveyId}/responses/data
Description
Returns auto-combined survey responses . Sample requests:
GET /4410/auto-combined-surveys/p240597392086/responses/data GET /4410/auto-combined-surveys/p240597392086/responses/data?stateId=100500
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Owner Hub Id |
integer (int64) |
Path |
surveyId |
Id of auto-combined survey |
string |
Query |
stateId |
Survey StateId. Optional. Provides incremental data load. Use this parameter in order to get only changes to the survey responses made after the pointed survey StateId. Ignore this parameter in order to get all survey responses. |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. All requested survey responses are returned. The API provides the data either as a stream or a resource collection depending on the request accept header. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or survey was not found. |
|
412 |
Failed to read incremental data. Retry with no 'stateId' parameter. |
No Content |
Example HTTP response
Response 200
{
"itemType" : "SurveyDataRecord",
"itemCount" : 5,
"totalCount" : 5,
"items" : [ {
"combined_sourceid" : "p750209410546",
"responseid" : 1,
"respid" : 1,
"status" : "complete",
"q1" : "First answer from first survey included into auto-mapping"
}, {
"combined_sourceid" : "p750209410546",
"responseid" : 2,
"respid" : 2,
"status" : "complete",
"q1" : "Second answer from first survey included into auto-mapping"
}, {
"combined_sourceid" : "p601884965518",
"responseid" : 1,
"respid" : 1,
"status" : "complete",
"q1" : "First answer from second survey included into auto-mapping"
}, {
"combined_sourceid" : "p601884965518",
"responseid" : 2,
"respid" : 2,
"status" : "complete",
"q1" : "Second from second survey included into auto-mapping"
}, {
"combined_sourceid" : "p601884965518",
"responseid" : 3,
"respid" : 3,
"status" : "complete",
"q1" : "Third answer from second survey included into auto-mapping"
} ],
"links" : {
"self" : "<host>/v1/hubs/4410/automapped-surveys/p240597392086/responses/data"
}
}
{
"application/json" : {
"itemType" : "SurveyDataRecord",
"itemCount" : 5,
"totalCount" : 5,
"items" : [ {
"combined_sourceid" : "p750209410546",
"responseid" : 1,
"respid" : 1,
"status" : "complete",
"q1" : "First answer from first survey included into auto-mapping"
}, {
"combined_sourceid" : "p750209410546",
"responseid" : 2,
"respid" : 2,
"status" : "complete",
"q1" : "Second answer from first survey included into auto-mapping"
}, {
"combined_sourceid" : "p601884965518",
"responseid" : 1,
"respid" : 1,
"status" : "complete",
"q1" : "First answer from second survey included into auto-mapping"
}, {
"combined_sourceid" : "p601884965518",
"responseid" : 2,
"respid" : 2,
"status" : "complete",
"q1" : "Second from second survey included into auto-mapping"
}, {
"combined_sourceid" : "p601884965518",
"responseid" : 3,
"respid" : 3,
"status" : "complete",
"q1" : "Third answer from second survey included into auto-mapping"
} ],
"links" : {
"self" : "<host>/v1/hubs/4410/automapped-surveys/p240597392086/responses/data"
}
},
"application/x-ndjson" : {
"itemType" : "SurveyDataRecord",
"itemCount" : 5,
"totalCount" : 5,
"items" : [ {
"combined_sourceid" : "p750209410546",
"responseid" : 1,
"respid" : 1,
"status" : "complete",
"q1" : "First answer from first survey included into auto-mapping"
}, {
"combined_sourceid" : "p750209410546",
"responseid" : 2,
"respid" : 2,
"status" : "complete",
"q1" : "Second answer from first survey included into auto-mapping"
}, {
"combined_sourceid" : "p601884965518",
"responseid" : 1,
"respid" : 1,
"status" : "complete",
"q1" : "First answer from second survey included into auto-mapping"
}, {
"combined_sourceid" : "p601884965518",
"responseid" : 2,
"respid" : 2,
"status" : "complete",
"q1" : "Second from second survey included into auto-mapping"
}, {
"combined_sourceid" : "p601884965518",
"responseid" : 3,
"respid" : 3,
"status" : "complete",
"q1" : "Third answer from second survey included into auto-mapping"
} ],
"links" : {
"self" : "<host>/v1/hubs/4410/automapped-surveys/p240597392086/responses/data"
}
}
}
Read auto-combined survey response data schema.
GET /{hubId}/auto-combined-surveys/{surveyId}/responses/schema
Description
Returns auto-combined survey responses full schema. Sample request:
GET /4410/auto-combined-surveys/p240597392086/responses/schema
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Owner Hub Id |
integer (int64) |
Path |
surveyId |
Id of auto-combined survey |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The survey response data schema is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or survey was not found. |
Example HTTP response
Response 200
{
"defaultConfirmitLanguageId" : 9,
"languages" : [ {
"confirmitLanguageId" : 9
} ],
"root" : {
"name" : "response",
"keys" : [ {
"name" : "combined_sourceid",
"isCompound" : false,
"isBackground" : false,
"isHidden" : false,
"variableType" : "singleChoice",
"isSystemVariable" : false,
"isRespondentVariable" : false,
"options" : [ {
"code" : "p601884965518",
"hasOtherField" : false,
"texts" : [ {
"languageId" : 9,
"text" : "Name of the first survey included into auto-mapping"
} ]
}, {
"code" : "p750209410546",
"hasOtherField" : false,
"texts" : [ {
"languageId" : 9,
"text" : "Name of the second survey included into auto-mapping"
} ]
} ],
"excludeFromReporting" : false
}, {
"name" : "responseid",
"isCompound" : false,
"isBackground" : false,
"isHidden" : false,
"variableType" : "numeric",
"isSystemVariable" : true,
"isRespondentVariable" : false,
"excludeFromReporting" : false
} ],
"variables" : [ {
"name" : "respid",
"isCompound" : false,
"isBackground" : false,
"isHidden" : false,
"variableType" : "numeric",
"isSystemVariable" : true,
"isRespondentVariable" : false,
"excludeFromReporting" : false
}, {
"name" : "q1",
"isCompound" : false,
"isBackground" : false,
"isHidden" : false,
"variableType" : "text",
"isSystemVariable" : false,
"isRespondentVariable" : false,
"excludeFromReporting" : false
} ]
}
}
Read auto-combined survey state.
GET /{hubId}/auto-combined-surveys/{surveyId}/state
Description
Returns auto-combined survey state. Note. Any change to a survey leads to the survey state change (survey StateId increment). You can use this stateId to get survey respondents or responses incrementally, see GetAutoCombinedSurveyRespondents and GetAutoCombinedSurveyResponses methods for more details. Sample request:
GET /4410/auto-combined-surveys/p240597392086/state
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Owner Hub Id |
integer (int64) |
Path |
surveyId |
Id of auto-combined survey |
string |
Add a custom data table
POST /{hubId}/customdata/tables
Description
Sample request:
POST /1866/customdata/tables/
{
"name": "East_Region",
"languageIds": [9, 20],
"defaultLanguageId": 9,
"dataSetName": "clients",
"fields":[
{"name": "Name", "dataType": "Text", "isPrimaryKey": "true", "length": 255},
{"name": "City", "dataType": "Text"},
{"name": "Contact", "dataType": "Text"}
]
}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Body |
body |
Object containing properties for the new table |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
201 |
A table is created. The table is returned. |
|
400 |
Bad request. The record is not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or table was not found. |
Example HTTP response
Response 201
{
"links" : { },
"hubId" : 1234,
"dataSetId" : "Ds1",
"name" : "MyHubCustomTable",
"publicName" : "MyHubCustomTable",
"subType" : "TextAnalysis",
"id" : 123,
"dataSetPublicName" : "Public DataSet Name",
"created" : "0001-01-01T00:00:00+00:00",
"createdByUserId" : 0,
"lastModified" : "0001-01-01T00:00:00+00:00"
}
Get custom data tables
GET /{hubId}/customdata/tables
Parameters
| Type | Name | Description | Schema | Default |
|---|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
|
Query |
$filter |
OData filter to limit the result set. Optional. Ex: $filter=Name eq 'test'. |
string |
|
Query |
$orderby |
Optional. Ex: $orderby=Name to order the tables per Name. |
string |
|
Query |
$skip |
Use this when paging through the tables (default=0). Optional. Ex:$skip=4 to skip the 40 first tables. |
integer (int32) |
|
Query |
$top |
Number of tables to retrieve per request (default=100). Optional. Ex: $top=10. |
integer (int32) |
|
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The list of custom data tables for hub is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or survey was not found. |
Example HTTP response
Response 200
{
"itemType" : "CustomTable",
"itemCount" : 2,
"totalCount" : 2,
"items" : [ {
"links" : { },
"hubId" : 1234,
"dataSetId" : "Ds1",
"name" : "MyHubCustomTable",
"publicName" : "MyHubCustomTable",
"subType" : "TextAnalysis",
"id" : 123,
"dataSetPublicName" : "Public DataSet Name",
"created" : "0001-01-01T00:00:00+00:00",
"createdByUserId" : 0,
"lastModified" : "0001-01-01T00:00:00+00:00"
}, {
"links" : { },
"hubId" : 1234,
"dataSetId" : "Ds2",
"name" : "MyHubCustomTable",
"publicName" : "MyHubCustomTable",
"subType" : "TextAnalysis",
"id" : 124,
"dataSetPublicName" : "Public DataSet Name",
"created" : "0001-01-01T00:00:00+00:00",
"createdByUserId" : 0,
"lastModified" : "0001-01-01T00:00:00+00:00"
} ],
"links" : { }
}
Get custom data table
GET /{hubId}/customdata/tables/{tableId}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The custom data table is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or survey was not found. |
Example HTTP response
Response 200
{
"links" : { },
"hubId" : 1234,
"dataSetId" : "Ds1",
"name" : "MyHubCustomTable",
"publicName" : "MyHubCustomTable",
"subType" : "TextAnalysis",
"id" : 123,
"dataSetPublicName" : "Public DataSet Name",
"created" : "0001-01-01T00:00:00+00:00",
"createdByUserId" : 0,
"lastModified" : "0001-01-01T00:00:00+00:00"
}
Delete custom data table
DELETE /{hubId}/customdata/tables/{tableId}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Get changed table records
GET /{hubId}/customdata/tables/{tableId}/changed-records
Description
Returns list of changed table records Sample request:
GET /1866/customdata/tables/1/changed-records
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Query |
allowTimestampFallback |
Allow Timestamp Fallback |
boolean |
Query |
includeDeletes |
Include Deletes. Ex: When the response type is json, "IsDeleted" flag return true if the record is deleted. When the response type is x-ndjson, "__IsDeleted" flag return true if the record is deleted. |
boolean |
Query |
stateId |
Table Data State Id |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The list of changed records is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or table was not found. |
|
412 |
Incremental data read fail |
No Content |
Example HTTP response
Response 200
{
"itemType" : "CustomTableRecord",
"itemCount" : 1,
"totalCount" : 0,
"items" : [ {
"__recordId" : 1,
"field1" : "value1",
"field2" : 1,
"field3" : "f31"
} ],
"links" : { }
}
{
"application/json" : {
"itemType" : "CustomTableRecord",
"itemCount" : 1,
"totalCount" : 0,
"items" : [ {
"__recordId" : 1,
"field1" : "value1",
"field2" : 1,
"field3" : "f31"
} ],
"links" : { }
},
"application/x-ndjson" : {
"itemType" : "CustomTableRecord",
"itemCount" : 1,
"totalCount" : 0,
"items" : [ {
"__recordId" : 1,
"field1" : "value1",
"field2" : 1,
"field3" : "f31"
} ],
"links" : { }
}
}
Get table data state
GET /{hubId}/customdata/tables/{tableId}/datastate
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Add table field
POST /{hubId}/customdata/tables/{tableId}/fields
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Body |
body |
Field to add |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The field is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or table was not found. |
Get table fields
GET /{hubId}/customdata/tables/{tableId}/fields
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The list of fields is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or table was not found. |
Example HTTP response
Response 200
{
"itemType" : "CustomTableField",
"itemCount" : 1,
"totalCount" : 1,
"items" : [ {
"id" : 1,
"name" : "Field1",
"label" : "My field1",
"isPrimaryKey" : true,
"dataType" : "text",
"length" : 255,
"isLanguageDependent" : false,
"links" : { }
}, {
"id" : 2,
"name" : "Field2",
"label" : "My field2",
"isPrimaryKey" : true,
"dataType" : "numeric",
"precision" : 8,
"scale" : 2,
"isLanguageDependent" : false,
"links" : { }
}, {
"id" : 3,
"name" : "Field3",
"label" : "My field3",
"isPrimaryKey" : false,
"dataType" : "date",
"isLanguageDependent" : false,
"links" : { }
}, {
"id" : 4,
"name" : "Field4",
"label" : "My field4",
"isPrimaryKey" : false,
"dataType" : "dateTime",
"isLanguageDependent" : false,
"links" : { }
} ],
"links" : {
"item" : "<host>/v1/hubs/1866/customdata/tables/15/fields/1"
}
}
Get table field
GET /{hubId}/customdata/tables/{tableId}/fields/{fieldId}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
fieldId |
Field Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The field is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or table was not found. |
Delete table field
DELETE /{hubId}/customdata/tables/{tableId}/fields/{fieldId}
Description
Deletes table field by fieldId Sample request:
DELETE /1866/customdata/tables/1/fields/3
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
fieldId |
Field Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Add table field categories
POST /{hubId}/customdata/tables/{tableId}/fields/{fieldId}/categories
Description
Add categories to a table field Sample request:
POST /1866/customdata/tables/15/fields/2/categories
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
fieldId |
Field Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Body |
body |
Categories to add |
< CustomTableFieldCategory > array |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the field categories were added |
string |
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub, table or field was not found. |
Get table field categories
GET /{hubId}/customdata/tables/{tableId}/fields/{fieldId}/categories
Description
Returns table field categories Sample request:
GET /1866/customdata/tables/15/fields/2/categories
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
fieldId |
Field Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The custom table field category list is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub, table or field was not found. |
Update table field categories
PUT /{hubId}/customdata/tables/{tableId}/fields/{fieldId}/categories
Description
Update categories for a table field Sample request:
PUT /1866/customdata/tables/15/fields/2/categories
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
fieldId |
Field Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Body |
body |
Categories to update |
< CustomTableFieldCategory > array |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the field categories were updated. |
string |
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub, table or field was not found. |
Add records to table
POST /{hubId}/customdata/tables/{tableId}/records
Description
Sample request:
POST /1866/customdata/tables/1/records
{
"dataSchema":
{
fieldNames: ["AKeyField", "AFieldField"]
},
"data":[
{"AKeyField": "Key2", "AFieldName": "A2"},
{"AKeyField": "Key3", "AFieldName": "A3"},
{"AKeyField": "Key4", "AFieldName": "A4"}
]
}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Body |
body |
Object containing new records |
Get table records
GET /{hubId}/customdata/tables/{tableId}/records
Parameters
| Type | Name | Description | Schema | Default |
|---|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
|
Path |
tableId |
Table Id |
integer (int32) |
|
Query |
$filter |
OData filter to limit the result set. Optional. Ex: $filter=Name eq 'test'. |
string |
|
Query |
$orderby |
Optional. Ex: $orderby=Name to order the records per Name. |
string |
|
Query |
$skip |
Use this when paging through the records (default=0). Optional. Ex: $skip=4 to skip the 40 first records. |
integer (int32) |
|
Query |
$top |
Number of records to retrieve per request (default=100). Optional. Ex: $top=10. |
integer (int32) |
|
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The list of records is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or table was not found. |
Example HTTP response
Update table record collection with the new record set.
PUT /{hubId}/customdata/tables/{tableId}/records
Description
Sample request:
PUT /1866/customdata/tables/1/records
{
"dataSchema":
{
fieldNames: ["AKeyField", "AFieldField"]
},
"data":[
{"AKeyField": "Key2", "AFieldName": "A2"},
{"AKeyField": "Key3", "AFieldName": "A3"},
{"AKeyField": "Key4", "AFieldName": "A4"}
]
}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
table Id |
integer (int32) |
Body |
body |
Object containing new records |
Delete records from table
DELETE /{hubId}/customdata/tables/{tableId}/records
Description
Deletes records from table Sample request:
DELETE /1866/customdata/tables/15/records
{
"dataSchema":
{
keys: ["AKeyField"]
},
"data":[
{"AKeyField": "Key2"},
{"AKeyField": "Key3"},
{"AKeyField": "Key4"}
]
}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Body |
body |
Records |
Patch table record collection
PATCH /{hubId}/customdata/tables/{tableId}/records
Description
Sample request:
PATCH /1866/customdata/tables/1/records
{
"dataSchema":
{
fieldNames: ["AKeyField", "AFieldField"]
},
"data":[
{"AKeyField": "Key2", "AFieldName": "A2"},
{"AKeyField": "Key3", "AFieldName": "A3"},
{"AKeyField": "Key4", "AFieldName": "A4"}
]
}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Path |
tableId |
table Id |
integer (int32) |
Body |
body |
Object containing new records |
Get table record
GET /{hubId}/customdata/tables/{tableId}/records/{recordId}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Path |
recordId |
Record Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Update table record
PUT /{hubId}/customdata/tables/{tableId}/records/{recordId}
Description
Sample request:
PUT /1866/customdata/tables/1/records/2
{
"field1":"value2",
"field2":6,
"field3":"f323"
}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Path |
recordId |
Record Id |
integer (int64) |
Path |
tableId |
table Id |
integer (int32) |
Body |
body |
Record to patch into the table |
Delete record from table
DELETE /{hubId}/customdata/tables/{tableId}/records/{recordId}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Path |
recordId |
Record Id |
integer (int64) |
Path |
tableId |
Table Id |
integer (int32) |
Create End User List
POST /{hubId}/enduserlists
Description
Returns a new end user list. Sample request:
POST /1866/enduserlists
{
"name":"My end user list"
}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Owner Hub Id |
integer (int64) |
Body |
body |
List to create |
Get End User Lists
GET /{hubId}/enduserlists
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The list of end user lists is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub was not found. |
Update End User List
PUT /{hubId}/enduserlists/{listId}
Description
Update an existing end user list. Sample request:
PUT /1866/enduserlists/1
{
"name":"New list name"
}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Owner Hub Id |
integer (int64) |
Path |
listId |
listId to update |
integer (int32) |
Body |
body |
List to update |
Delete End User List
DELETE /{hubId}/enduserlists/{listId}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Owner Hub Id |
integer (int64) |
Path |
listId |
List to delete |
integer (int32) |
Create End User
POST /{hubId}/enduserlists/{listId}/users
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
The hub where the user will be added |
integer (int64) |
Path |
listId |
The end user list where the user will be added |
integer (int32) |
Body |
body |
The end user to add |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
201 |
Ok, the request has succeeded. New User has been created. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or List was not found. |
|
409 |
Conflict, End User UserName already exists. |
Get End Users
POST /{hubId}/enduserlists/{listId}/users/query
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub id |
integer (int64) |
Path |
listId |
End user list id |
integer (int32) |
Body |
body |
End user filter query |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The list of end users is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub, List or User was not found. |
Example HTTP response
Response 200
{
"itemType" : "EndUser",
"itemCount" : 1,
"totalCount" : 1,
"items" : [ {
"id" : 1,
"firstName" : "first name",
"lastName" : "last name",
"userName" : "username",
"email" : "email@example.com",
"language" : 9,
"isActive" : true,
"comment" : "comment",
"links" : { }
} ],
"links" : {
"item" : "<host>/v1/hubs/1866/enduser/{id}"
}
}
Get End User
GET /{hubId}/enduserlists/{listId}/users/{id}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
The hub the user is associated with |
integer (int64) |
Path |
id |
The ID of the user |
integer (int32) |
Path |
listId |
The list the user is associated with |
integer (int32) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, Request is valid, end user returned. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub, List or User was not found. |
Delete End User
DELETE /{hubId}/enduserlists/{listId}/users/{id}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
the hub associated with the user |
integer (int64) |
Path |
id |
the ID of the user |
integer (int32) |
Path |
listId |
the list associated with the user |
integer (int32) |
Update End User
PUT /{hubId}/enduserlists/{listId}/users/{userId}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
The hub where the user to be updated exists |
integer (int64) |
Path |
listId |
The end user list where the user to be updated exists |
integer (int32) |
Path |
userId |
The end user id to be updated |
integer (int32) |
Body |
body |
The end user to update. UserName must be unique |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
201 |
Ok, the request has succeeded. User has been updated. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or List was not found. |
|
409 |
Conflict, End User UserName already exists. |
Add a hierarchy to the hub.
POST /{hubId}/hierarchies
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Body |
body |
Object containing new hierarchy properties |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
201 |
A new hierarchy is being added. The new hierarchy is returned. |
|
400 |
Bad request. The hierarchy is not valid. |
|
401 |
Unauthorized |
No Content |
403 |
No access to this feature. |
No Content |
404 |
Not found, Hub was not found. |
No Content |
Get Hub hierarchies
GET /{hubId}/hierarchies
Parameters
| Type | Name | Description | Schema | Default |
|---|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
|
Query |
page |
Use this when paging through the hierarchies (default=1). Optional. Ex: Append page=4 to the query parameters. |
integer (int32) |
|
Query |
pageSize |
Number of hierarchies to retrieve per request (default=100). Optional. Ex: Append pageSize=20 to the query parameters. |
integer (int32) |
|
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The list of hub hierarchies is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
Get a specific hierarchy in the hub
GET /{hubId}/hierarchies/{hierarchyId}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hierarchyId |
Hierarchy Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The hierarchy is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or hierarchy was not found. |
No Content |
Merge hierarchy node assignments
POST /{hubId}/hierarchies/{hierarchyId}/node-assignments
Description
This will update existing and add new node assignments. Sample request:
POST /1866/hierarchies/145/node-assignments
[
{
"nodeId": "n1",
"userName": "test1",
"role": "MGR"
},
{
"nodeId": "n2",
"userName": "test2"
}
]
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hierarchyId |
Hierarchy Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Body |
body |
The list of node assignments |
< NodeAssignment > array |
Get hierarchy node assignments
GET /{hubId}/hierarchies/{hierarchyId}/node-assignments
Description
Returns a collection of NodeAssignments Sample request:
GET /1866/hierarchies/145/node-assignments
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hierarchyId |
Hierarchy Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The result is returned. |
|
400 |
Bad request. The request is not valid. |
|
401 |
Unauthorized |
No Content |
404 |
The hierarchy or hub was not found. |
No Content |
Example HTTP response
Replace hierarchy node assignments
PUT /{hubId}/hierarchies/{hierarchyId}/node-assignments
Description
This will replace the existing node assignments with the content of the payload. Sample request:
PUT /1866/hierarchies/145/node-assignments
[
{
"nodeId": "n1",
"userName": "test1",
"role": "MGR"
},
{
"nodeId": "n2",
"userName": "test2"
}
]
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hierarchyId |
Hierarchy Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Body |
body |
The list of node assignments |
< NodeAssignment > array |
Get hierarchy nodes
GET /{hubId}/hierarchies/{hierarchyId}/nodes
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hierarchyId |
Hierarchy Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The result is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
The hierarchy was not found. |
No Content |
Example HTTP response
Add assignments for a specific node
POST /{hubId}/hierarchies/{hierarchyId}/nodes/{nodeId}/assignments
Description
This request will add new assignments to the node and update existing. Sample request:
POST /1866/hierarchies/145/nodes/root/assignments
[
{
"userName": "test1",
"role": "MGR"
},
{
"userName": "test2"
}
]
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hierarchyId |
Hierarchy Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Path |
nodeId |
Node Id |
string |
Body |
body |
The list of assignments to add |
< NodeAssignment > array |
Get assignments for a specific node
GET /{hubId}/hierarchies/{hierarchyId}/nodes/{nodeId}/assignments
Description
Returns a collection of NodeAssignments Sample request:
GET /1866/hierarchies/145/nodes/root/assignments
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hierarchyId |
Hierarchy Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Path |
nodeId |
Node Id |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The result is returned. |
|
400 |
Bad request. The request is not valid. |
|
401 |
Unauthorized |
No Content |
404 |
The hierarchy or hub was not found. |
No Content |
Example HTTP response
Delete assignment for a specific node
DELETE /{hubId}/hierarchies/{hierarchyId}/nodes/{nodeId}/assignments/{userName}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hierarchyId |
Hierarchy Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Path |
nodeId |
Node Id |
string |
Path |
userName |
User Name |
string |
Add a hierarchy upload job.
POST /{hubId}/hierarchies/{hierarchyId}/uploads
Description
Sample request:
POST /1866/hierarchies/123/uploads
{
"ImportMode":"UpdateExistingAndAddNew"
}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hierarchyId |
Hierarchy Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Body |
body |
Object containing new upload properties |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
201 |
A new hierarchy upload job is being added. The new job is returned. |
|
400 |
Bad request. The upload job is not valid. |
|
401 |
Unauthorized |
No Content |
403 |
No access to this feature. |
No Content |
404 |
The hierarchy was not found. |
No Content |
Get a specific hierarchy upload job
GET /{hubId}/hierarchies/{hierarchyId}/uploads/{jobId}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hierarchyId |
Hierarchy Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Path |
jobId |
Job Id |
integer (int32) |
Patch status on a specific job
PATCH /{hubId}/hierarchies/{hierarchyId}/uploads/{jobId}
Description
Sample request:
PATCH /1866/hierarchies/123/uploads/31
[
{
"op": "replace",
"path": "/status",
"value": "execute"
}
]
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hierarchyId |
Hierarchy Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Path |
jobId |
Job Id |
integer (int32) |
Body |
body |
Values to be updated |
< Operation > array |
Add data to upload job.
POST /{hubId}/hierarchies/{hierarchyId}/uploads/{jobId}/data
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hierarchyId |
Hierarchy Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Path |
jobId |
Job Id |
integer (int32) |
Get hierarchy upload job results
GET /{hubId}/hierarchies/{hierarchyId}/uploads/{jobId}/results
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hierarchyId |
Hierarchy Id |
integer (int32) |
Path |
hubId |
Hub Id |
integer (int64) |
Path |
jobId |
Job Id |
integer (int32) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The result is returned. |
< ValidationMessage > array |
400 |
Bad request. The upload job is not valid. |
|
401 |
Unauthorized |
No Content |
404 |
The hierarchy or job was not found. |
No Content |
Get Hub surveys
GET /{hubId}/surveys
Parameters
| Type | Name | Description | Schema | Default |
|---|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
|
Query |
page |
Use this when paging through the surveys (default=1). Optional. Ex: Append page=4 to the query parameters. |
integer (int32) |
|
Query |
pageSize |
Number of surveys to retrieve per request (default=100). Optional. Ex: Append pageSize=20 to the query parameters. |
integer (int32) |
|
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The list of hub surveys is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub was not found. |
Example HTTP response
Response 200
{
"itemType" : "HubSurvey",
"itemCount" : 1,
"totalCount" : 1,
"items" : [ {
"surveyId" : "p000123",
"sourceType" : "survey"
}, {
"surveyId" : "p000456",
"sourceType" : "autoMappedCombined"
} ],
"links" : {
"nextpage" : "<host>/v1/hubs/1866/surveys?page=3&pageSize=100",
"prevpage" : "<host>/v1/hubs/1866/surveys?page=1&pageSize=100",
"item" : "<host>/v1/hubs/1866/surveys/{SurveyId}"
}
}
Get Hub survey
GET /{hubId}/surveys/{surveyId}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
Path |
surveyId |
Survey Id |
string |
Get survey related data sets
GET /{hubId}/surveys/{surveyId}/related-datasets
Description
Returns survey related data sets Sample request:
GET /1866/surveys/p00012345/related-datasets
Parameters
| Type | Name | Description | Schema | Default |
|---|---|---|---|---|
Path |
hubId |
Hub Id |
integer (int64) |
|
Path |
surveyId |
Survey Id |
string |
|
Query |
$filter |
OData filter to limit the result set. Optional. Ex: $filter=Name eq 'test'. |
string |
|
Query |
$orderby |
Optional. Ex: $orderby=Name to order the data sets per Name. |
string |
|
Query |
$skip |
Use this when paging through the data sets (default=0). Optional. Ex: $skip=4 to skip the 40 first data sets. |
integer (int32) |
|
Query |
$top |
Number of data sets to retrieve per request (default=100). Optional. Ex: $top=10. |
integer (int32) |
|
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Ok, the request has succeeded. The data set is returned. |
|
400 |
Bad request, the query parameters are not valid. |
|
401 |
Unauthorized |
No Content |
404 |
Not found, Hub or survey was not found. |
Example HTTP response
Response 200
{
"itemType" : "RelatedDataSet",
"itemCount" : 2,
"totalCount" : 2,
"items" : [ {
"sourceId" : "s123",
"name" : "MyHubRelatedDataSet",
"publicName" : "MyHubRelatedDataSet",
"sourceType" : "survey",
"subType" : "TextAnalysis"
}, {
"sourceId" : "s124",
"name" : "MyHubRelatedDataSet",
"publicName" : "MyHubRelatedDataSet",
"sourceType" : "survey",
"subType" : "TextAnalysis"
} ],
"links" : { }
}