HomeFormSpring APIMethodsedit

2.6. edit

This method makes changes to an existing submission. Only values supplied within the API arguments will be overwritten.

File uploads are not currently supported

Authentication

This method requires an API key with write permissions for the form. If the API key does not have permissions to access the form, a 404 (not found) will be returned.

Arguments

  • api_key (required)
  • id - submission id (required)
  • timestamp - the time that should be recorded for the submission. YYYY-MM-DD HH:MM:SS format is expected. the existing timestamp will be preserved if left blank. (optional)
  • user_agent - browser user agent value that should be recorded for the submission. the existing user agent will be preserved if left blank. (optional)
  • remote_addr - IP address that should be recorded for the submission. the existing ip address will be preserved if left blank. (optional)
  • field_x - value that should be stored for a specific field on the form. x must contain the id of the field whose value should be changed. (optional)

Example Request

https://www.formspring.com/api/edit?api_key=ABCDE&id=10001&field_1001=john&field_1002=smith

Response

  • id - the id of the updated submission

Example XML Response

<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<id>10001</id>
</response>

Example JSON Response

{
"status" : "ok",
"response" : {
"id" : 10001
}
}

Example PHP Response

a:2:{s:6:"status";s:2:"ok";s:8:"response";a:1:{s:2:"id";i:10001;}}

This page was: Helpful | Not Helpful