Cognotix
Customer Feedback Made Easy

REST API SetSurveyStatus Resource

Overview

The SetSurveyStatus resource sets a survey's status to active or inactive. The survey is specified using the SurveyId GUID returned by the ListSurveys resource.

Resource URI

POST https://www.cognotix.com/api/v1/setsurveystatus

Request Properties

Property Description
ObjectIdThe globally unique identifier (GUID) used as the survey ID
AttributeNameThe name of the attribute to modify, in this case "Status"
AttributeValueThe new attribute value, "Active" or "Inactive"

Sample Request

{
	"ObjectId":"e7325f64-0505-46e2-a68d-9dc60160xxxx",
	"AttributeName":"Status",
	"AttributeValue":"Inactive"
}

Response Properties

Property Description
SetSurveyStatusResultString value of "success" or "failure" followed by the reason for failure

Sample Response

{"SetSurveyStatusResult":"success"}
© 2012 Cognotix
Home | Contact | Privacy | Blog | Twitter