Developer Resources

API / (POST) Create Change

This API call creates a change and returns it.
HTTP-, API- or Beetil-specific errors will be returned otherwise.

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




POST parameters

ParameterFormatDefaultMandatory
titlestringYes
service_idintegerYes
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_completedbooleanNo
implementation_completed_by_user_idintegerNo
test_due_datedateNo
test_completedbooleanNo
test_completed_by_user_idintegerNo
complexitystringNo
riskstringNo
est_hrsEstimated hours for this change.stringNo
estimated_hoursAlias for est_hrsstringNo
build_due_atDue date for the change's implementationdagteNo
test_due_atDue date for the change's testdagteNo
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
use_symptomsSet to true will copy all symptoms from the base incident or problembooleanNo
use_commentsSet to true will copy all comments from the base incident or problembooleanNo
use_resolutionsSet to true will copy all symptoms from the base incidentdateNo
use_root_causesSet to true will copy all symptoms from the base problemdateNo
use_workaroundsSet to true will copy all symptoms from the base problemdateNo


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





Points of Interest
  • To Close a Change ensure closed_at, closure_code and closure_comment are all present.
  • To Re-open a Change ensure closed_at and closure_code are null.
  • To Complete a Change's implementation set implementation_closed to true and implementation_completed_by_user_id to the proper user id.
  • To Complete a Change's test set test_closed to true and test_completed_by_user_id to the proper user id.
  • Status Codes: 1 = New, 2 = Submitted, 3 = Approved, 4 = Declined, 5 = Permanently Declined, 6 = Implementing, 7 = Released, 8 = Closed
  • Closure Codes: 0 = Finished - Released Live, 1 = Unfinished - No longer relevant, 2 = Other Reason
  • Complexity: 1 = Low, 2 = Medium, 3 = High
  • Risk: 1 = Low, 2 = Medium, 3 = High
  • Referencing other object ids (priority, type) are all included in full in the Show Service request.




Example POST
{
  "change": {
    "use_comments": true,
    "title": "foo bar baz",
    "service_id": 34,
    "problem_id": 9,
    "test_due_date": "16 Feb 2011, 11:35",
    "implementation_due_date": "11 Feb 2011, 11:35"
  }
}




Example POST 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