POST v1/admin/survey/add

Request Information

URI Parameters

None.

Body Parameters

AdminAddSurveyRequestModel
NameDescriptionTypeAdditional information
survey

Survey

None.

user_company_id

Company UID of the active user

string

Required

Data type: Text

user_id

User ID (GUID)

string

Required

Data type: Text

user_signature

MD5 hash signature for the active user to validate the request

string

Required

Data type: Text

Request Format

application/json, text/json

Sample:
{
  "survey": {
    "id": 1,
    "title": "sample string 2",
    "create_date": "2019-09-18T16:41:54.2013021+03:00",
    "questions": [
      {
        "question_title": "sample string 3",
        "answers": [
          {
            "id": 1,
            "answer_title": "sample string 4"
          },
          {
            "id": 1,
            "answer_title": "sample string 4"
          }
        ]
      },
      {
        "question_title": "sample string 3",
        "answers": [
          {
            "id": 1,
            "answer_title": "sample string 4"
          },
          {
            "id": 1,
            "answer_title": "sample string 4"
          }
        ]
      }
    ]
  },
  "user_company_id": "sample string 1",
  "user_id": "sample string 2",
  "user_signature": "sample string 3"
}

Response Information

Resource Description

BaseMetaResultModelOfAdminAddSurveyResponseModel
NameDescriptionTypeAdditional information
response

AdminAddSurveyResponseModel

None.

meta

Basic meta information for the operation result

MetaModel

None.

Response Format

application/json, text/json

Sample:
{
  "response": {
    "survey_id": 1
  },
  "meta": {
    "status_code": 1,
    "status_message": "sample string 2"
  }
}