PUT api/surveys

Request Information

URI Parameters

None.

Body Parameters

SurveyEditModel
NameDescriptionTypeAdditional information
name

string

Required

String length: inclusive between 0 and 75

survey_type_id

globally unique identifier

Required

contact_log_type_ids

Collection of globally unique identifier

None.

area_id

globally unique identifier

None.

area_tag_id

AreaTagID

None.

area_tag_id_check

string

None.

created_date

date

None.

id

globally unique identifier

None.

subscription_id

globally unique identifier

None.

ts

Collection of byte

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "survey_type_id": "1016de49-b3de-45a9-afdf-7a3ee7d3ad46",
  "contact_log_type_ids": [
    "00f23321-5428-4e43-8ca2-c52dc2cf1ed3",
    "24fa7bfc-1482-4799-b0a6-b60caf0e63e7"
  ],
  "area_id": "342ab253-b5be-4c5a-b5dc-2da5b109ed8c",
  "area_tag_id": 0,
  "area_tag_id_check": "sample string 3",
  "created_date": "2026-10-08T19:15:33.362675+08:00",
  "id": "6acd1a4b-ac47-49f2-ac29-0c5ef94b8589",
  "subscription_id": "ddb4ff88-7859-4aed-a8a3-48c425a26808",
  "ts": "QEA="
}

application/xml, text/xml

Sample:
<SurveyEditModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models">
  <Id xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">6acd1a4b-ac47-49f2-ac29-0c5ef94b8589</Id>
  <SubscriptionId xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">ddb4ff88-7859-4aed-a8a3-48c425a26808</SubscriptionId>
  <Ts xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">QEA=</Ts>
  <AreaId>342ab253-b5be-4c5a-b5dc-2da5b109ed8c</AreaId>
  <AreaTagId>All</AreaTagId>
  <AreaTagIdCheck>sample string 3</AreaTagIdCheck>
  <ContactLogTypeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>00f23321-5428-4e43-8ca2-c52dc2cf1ed3</d2p1:guid>
    <d2p1:guid>24fa7bfc-1482-4799-b0a6-b60caf0e63e7</d2p1:guid>
  </ContactLogTypeIds>
  <CreatedDate>2026-10-08T19:15:33.362675+08:00</CreatedDate>
  <Name>sample string 1</Name>
  <SurveyTypeId>1016de49-b3de-45a9-afdf-7a3ee7d3ad46</SurveyTypeId>
</SurveyEditModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.