See all operations
POST: projects?existing_project_id={existing_project_id}
Description
Creates a new project in the system and makes the authenticated user owner of it
How to Execute
To access this REST web service, you need to use the following URL:
https://api.inflectra.com/Spira/Services/v4_0/RestService.svc/projects?existing_project_id={existing_project_id}
Request Parameters
Name
|
Description
|
existing_project_id
|
The id of an existing project to use as a template, or null to use the default template
|
Request Body
Property
|
Description
|
ProjectId
|
The id of the project
|
Name
|
The name of the project
|
Description
|
The description of the project
|
Website
|
The url associated with the project
|
CreationDate
|
The date/time the project was created
|
Active
|
Whether the project is active or not
|
WorkingHours
|
How many working hours are in a day for this project
|
WorkingDays
|
How many working days are in a week for this project
|
NonWorkingHours
|
How many special non-working hours are there in a month in the project
|
<RemoteProject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v4_0.DataObjects">
<Active>true</Active>
<CreationDate>0001-01-01T00:00:00</CreationDate>
<Description i:nil="true" />
<Name i:nil="true" />
<NonWorkingHours>0</NonWorkingHours>
<ProjectId i:nil="true" />
<Website i:nil="true" />
<WorkingDays>0</WorkingDays>
<WorkingHours>0</WorkingHours>
</RemoteProject>
{"Active":true,
"CreationDate":"\/Date(-62135578800000-0500)\/",
"Description":null,
"Name":null,
"NonWorkingHours":0,
"ProjectId":null,
"Website":null,
"WorkingDays":0,
"WorkingHours":0}
Return Data
The JSON and XML examples below show the shape of one entry that will be returned. It does not show an example of how that entry will be populated.
Property
|
Description
|
ProjectId
|
The id of the project
|
Name
|
The name of the project
|
Description
|
The description of the project
|
Website
|
The url associated with the project
|
CreationDate
|
The date/time the project was created
|
Active
|
Whether the project is active or not
|
WorkingHours
|
How many working hours are in a day for this project
|
WorkingDays
|
How many working days are in a week for this project
|
NonWorkingHours
|
How many special non-working hours are there in a month in the project
|
<RemoteProject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v4_0.DataObjects">
<Active>true</Active>
<CreationDate>0001-01-01T00:00:00</CreationDate>
<Description i:nil="true" />
<Name i:nil="true" />
<NonWorkingHours>0</NonWorkingHours>
<ProjectId i:nil="true" />
<Website i:nil="true" />
<WorkingDays>0</WorkingDays>
<WorkingHours>0</WorkingHours>
</RemoteProject>
{"Active":true,
"CreationDate":"\/Date(-62135578800000-0500)\/",
"Description":null,
"Name":null,
"NonWorkingHours":0,
"ProjectId":null,
"Website":null,
"WorkingDays":0,
"WorkingHours":0}