Click or drag to resize
RallyRestApiCreate Method (String, String, DynamicJsonObject)
Create an object of the specified type from the specified object

Namespace: Rally.RestApi
Assembly: Rally.RestApi (in Rally.RestApi.dll) Version: 3.1.1.0 (3.1.1.0)
Syntax
public CreateResult Create(
	string workspaceRef,
	string typePath,
	DynamicJsonObject obj
)

Parameters

workspaceRef
Type: SystemString
the workspace into which the object should be created. Null means that the server will pick a workspace.
typePath
Type: SystemString
the type to be created
obj
Type: Rally.RestApi.JsonDynamicJsonObject
the object to be created

Return Value

Type: CreateResult
A CreateResult with information on the status of the request
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#
string workspaceRef = "/workspace/12345678910";
DynamicJsonObject toCreate = new DynamicJsonObject();
toCreate["Name"] = "My Defect";
CreateResult createResult = restApi.Create(workspaceRef, "defect", toCreate);
See Also