Back to Customer API documentation

 

Customer REST API Method: tests/update

 

Updates a test in your account. This is used for publishing results publicly or changing a test's title.

 

 

URL:

https://#{company}.litmus.com/tests/#{id}.xml

 

HTTP Method(s):

PUT

 

Parameters:

 

Request

          XML example:

 

<?xml version="1.0" encoding="UTF-8"?>
<test_set>
  <public_sharing>true</public_sharing>
  <name>Newsletter example</name>

</test_set> 

 

Response

          XML example:

 

<?xml version="1.0" encoding="UTF-8"?>
<test_set>
  <created_at type="datetime">2008-12-04T05:57:49Z</created_at>
  <id type="integer">69472</id>
  <updated_at type="datetime">2009-10-05T16:41:32Z</updated_at>
  <name>Newsletter example</name>
  <service>page</service>
  <state>complete</state>
  <public_sharing>true</public_sharing>
  <public_path>http://#{company}.litmusapp.com/pub/cdad669</public_path>
  <url_or_guid>http://google.com</url_or_guid>
</test_set>