Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Take a survey live (status 22). This call is used to change the status of the survey. 

bapit-7

Request

...

PATCH PUT $apihost/$basepath/surveys/5000/status

($apihost is the environment against which you are testing, and $basepath is the base path with the api version. All Buy API calls will require access-token parameter in the header) 

...

Body: 

Code Block
languagejslinenumberstrue
[
  {
    "op": "replace",
    "path": "/ps_survey_status",
    "value": 22

 }
]

Response


...

Response Code

200

Response Body

...

...

200

...