Developer Resources

API / (PUT) Update Change

This API call updates an existing change and returns it.
HTTP-, API- or Beetil-specific errors will be returned otherwise.

API URL
https://youraccount.beetil.com/external_api/v1/changes/:id.format
HTTP Method
PUT




URL parameters

ParameterFormatDefaultMandatory
idThe change's reference number.integerYes




PUT parameters

ParameterFormatDefaultMandatory
titlestringNo
service_idintegerNo
type_idintegerprovided by the service, incident or problemNo
assigned_user_idintegerthe authenticated userNo
priority_idintegerprovided by the serviceNo
closed_by_user_idintegerNo
closure_codeintegerNo
closure_commentstringNo
closed_atdateNo
customer_viewablebooleanNo
implementation_due_datedateNo
implementation_completed_atdateNo
implementation_completed_by_user_idintegerNo
test_due_datedateNo
test_completed_atdateNo
test_completed_by_user_idintegerNo
complexitystringNo
riskstringNo
est_hrsEstimated hours for this change.stringNo
estimated_hoursAlias for est_hrsstringNo
submitted_for_approval_atdateNo
submitted_for_approval_by_user_idintegerNo
approved_atdateNo
declined_atdateNo
released_live_atdateNo
ready_for_release_by_user_idintegerNo
ready_for_release_atdateNo
due_datedateNo
due_live_atdateNo


These parameters are encapsulated into a 'change' parameter. See the examples below.





Example PUT
{
  "change": {
    "title": "foo bar baz",
    "implementation_completed_at": "15 Feb 2011, 14:12",
    "service_id": 2,
    "due_date": "10 Feb 2011, 15:38",
    "implementation_completed_by_user_id": 12
  }
}




Example PUT Response
{
  "result": {
    "company": "JSON string similar to GET changes/:id"
  },
  "version": "1.0",
  "status": "Success"
}




Example Error
{
  "errors": [
    {
      "error": "[E400] title can't be blank"
    }
  ],
  "version": "1.0",
  "status": "Failed"
}




Last updated 31 January 2011