Skip to content

Commit

Permalink
#627: add CREATE support for interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Jan 13, 2023
1 parent cd06ab9 commit 86a51f0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions lib/metadataTypes/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ class Interaction extends MetadataType {
static update(metadata) {
return super.updateREST(metadata, '/interaction/v1/interactions/', true);
}

/**
* Creates a single item
*
* @param {TYPE.MetadataTypeItem} metadata a single item
* @returns {Promise} Promise
*/
static create(metadata) {
return super.createREST(metadata, '/interaction/v1/interactions/');
}
}

// Assign definition to static attributes
Expand Down
2 changes: 1 addition & 1 deletion lib/metadataTypes/definitions/Interaction.definition.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ module.exports = {
template: true,
},
workflowApiVersion: {
isCreateable: false,
isCreateable: true,
isUpdateable: true,
retrieving: true,
template: true,
Expand Down

0 comments on commit 86a51f0

Please sign in to comment.