RallyRestApiUpdate Method (String, DynamicJsonObject, NameValueCollection) |
Update the item described by the specified reference with
the fields of the specified object
Namespace: Rally.RestApiAssembly: Rally.RestApi (in Rally.RestApi.dll) Version: 3.1.1.0 (3.1.1.0)
Syntax public OperationResult Update(
string reference,
DynamicJsonObject obj,
NameValueCollection parameters
)
Public Function Update (
reference As String,
obj As DynamicJsonObject,
parameters As NameValueCollection
) As OperationResult
public:
OperationResult^ Update(
String^ reference,
DynamicJsonObject^ obj,
NameValueCollection^ parameters
)
member Update :
reference : string *
obj : DynamicJsonObject *
parameters : NameValueCollection -> OperationResult
Parameters
- reference
- Type: SystemString
the reference to be updated - obj
- Type: Rally.RestApi.JsonDynamicJsonObject
the object fields to update - parameters
- Type: System.Collections.SpecializedNameValueCollection
additional query string parameters to be included on the request
Return Value
Type:
OperationResultAn
OperationResult describing the status of the request
Exceptions Exception | Condition |
---|
RallyUnavailableException | Rally returned an HTML page. This usually occurs when Rally is off-line. Please check the ErrorMessage property for more information. |
RallyFailedToDeserializeJson | The JSON returned by Rally was not able to be deserialized. Please check the JsonData property for what was returned by Rally. |
Examples string rallyRef = "https://preview.rallydev.com/slm/webservice/1.40/defect/12345.js";
DynamicJsonObject toUpdate = new DynamicJsonObject();
toUpdate["Description"] = "This is my defect.";
NameValueCollection parameters = new NameValueCollection();
parameters["rankAbove"] = "/defect/23456";
OperationResult updateResult = restApi.Update(rallyRef, toUpdate, parameters);
See Also