Attach to a new action
Your application can create an attachment to an existing action by using the attachAction task.
The action input contains action information. Set the topicid field to the topic ID for the action. For information on the attachmentInput object, see Common value objects.
Your application can create an action without an attachment by not adding the attachmentInput attribute. The action will be created in the Initial state.
attachNewAction JSON
{
"serviceContext":{
TopicServiceContext object
},
"actionInput": {
ActionInput object
},
"attachment": {
AttachmentInput object
}
}
ActionInput value object
The actionInput value object specifies fields for the new action.
Fields for the new action:
- Name – Required. The name of the action.
- actionTypeId – Required. An action type ID.
- description – Description of the action.
- topicId – Required. The
topicIdon which the action will be created .
ActionInput JSON
{
"name": "string",
"actionTypeId": “number”,
"description": "string",
"topicId": “number”
}
Parent topic: Tasks