POST v1/admin/survey/add

WEB - 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": "2024-11-25T17:28:36.8035636+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

WEB - Admin Survey Add

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"
  }
}