Introduction
The endpoint allows adding a task based on a task template.
Adding tasks based on a task template is defined by various attributes that can be transmitted in the request in XML format.
Each endpoint requires the use of a personalized token, which can be obtained from the Admin Center and must be set in the header. More information about the header.
Endpoint
**POST** `https://WORKSPACENAME.smenso.cloud/skyisland/api/Integration/template/task/create/{templateId}
(Remove curly brackets after inserting the template ID)
Fields
The following fields can be addressed when creating a task from a task template via the smenso API.
Name | Type | Description |
---|---|---|
TemplateId | GUID |
The GUID of the task template (to be specified in the endpoint URL). You can find the TemplateId as follows:
|
ProjectId* | GUID |
(Required Parameter) The GUID of the project to which the project template should be applied. |
Title* | string |
(Required Parameter) The title of the task |
Request Data
The request contains information for adding a task based on a task template in XML format. All other fields are inherited from the task template.
Example:
<create>
<BaseItem>
<ProjectId>8df6402c-524f-4a4f-989f-60e258df0f4</ProjectId> <!-- Required field -->
<Title>Ava Cadavra</Title> <!-- Required field -->
</BaseItem>
</create>
Response
Upon successful execution, the following message will be displayed, including the TaskId of the created task:
<Result>
<HasErrors>false</HasErrors>
<TaskId>2919899c-69a9-4ccb-9844-7b3e790570ad</TaskId>
</Result>
In case of an error, details of the error will be returned, for example,
<Result>
<HasErrors>true</HasErrors>
<Errors>
<ErrorDetail>Invalid root tag in XML for requested operation.</ErrorDetail>
</Errors>
</Result>
```
Comments
0 comments
Please sign in to leave a comment.