POST api/WorkObjective/CreateFromTemplates
Create work objective from work template
Request Information
URI Parameters
None.
Body Parameters
CreateWorkObjectiveFromTemplatesBinderName | Description | Type | Additional information |
---|---|---|---|
ProjectId | integer |
None. |
|
SprintId | integer |
None. |
|
PersonId | integer |
None. |
|
TemplateIds |
Personal work templates |
Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProjectId": 1, "SprintId": 2, "PersonId": 3, "TemplateIds": [ 1, 2 ] }
application/xml, text/xml
Sample:
<CreateWorkObjectiveFromTemplatesBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <PersonId>3</PersonId> <ProjectId>1</ProjectId> <SprintId>2</SprintId> <TemplateIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </TemplateIds> </CreateWorkObjectiveFromTemplatesBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Create work objective from work template
API_Data_Int32[]Name | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | Collection of integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": [ 1, 2 ] }
application/xml, text/xml
Sample:
<API_Data_ArrayOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common"> <Data xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_ArrayOfint>