Click or drag to resize
RallyRestApiPost Method
Performs a post of data to the provided URI.

Namespace: Rally.RestApi
Assembly: Rally.RestApi (in Rally.RestApi.dll) Version: 3.1.1.0 (3.1.1.0)
Syntax
public DynamicJsonObject Post(
	string relativeUri,
	DynamicJsonObject data
)

Parameters

relativeUri
Type: SystemString
The relative URI to post the data to.
data
Type: Rally.RestApi.JsonDynamicJsonObject
The data to submit to Rally.

Return Value

Type: DynamicJsonObject
A DynamicJsonObject with information on the response from Rally.
Exceptions
ExceptionCondition
RallyUnavailableExceptionRally returned an HTML page. This usually occurs when Rally is off-line. Please check the ErrorMessage property for more information.
RallyFailedToDeserializeJsonThe JSON returned by Rally was not able to be deserialized. Please check the JsonData property for what was returned by Rally.
Examples
C#
DynamicJsonObject data = objectToPost;
restApi.Post("defect/12345", data)
See Also