POST V3/odata/Project({key})/CopyProject

Creates copy of specified project entity

Request Information

URI Parameters

NameDescriptionTypeAdditional information
key

ProjectId from source Project entity

integer

Required

Body Parameters

Parameters can be supplied to customize the copy process and are supplied in request body. Supported parameters are:

  • NewCustomerCompanyId (Long) - CustomerCompanyId of customer to set on the new project (default: null).
  • ProjectStartDate (DateTime) - overrides project start date (default: source project start date).
  • ResetCustomers (Boolean) - influences customer on copied contracts (default: false). If true, customer of new contract is always overwritten with customer of new project. If false, customer of new contract is set to customer of new project if customer of source contract was the same as customer of source project.
  • CopyTasks (Boolean) - indicates whether tasks are copied (default: false).
  • ProjectCode (String) - code of the newly copied project (default: generated).
  • ProjectName (String) - name of the newly copied project (default: name of the project is copied from).

Example: {"ResetCustomers":false,"ProjectStartDate":"2016-03-01T00:00:00"}

Request Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.

Response Information

Resource Description

New project Id

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.