Skip to content

Commit

Permalink
Update Swagger schema and regenerate the API (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
charpeni authored Sep 9, 2024
1 parent 2b14d71 commit d2c9dd7
Show file tree
Hide file tree
Showing 4 changed files with 2,960 additions and 964 deletions.
4 changes: 3 additions & 1 deletion examples/uploadFileToStory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ import { ShortcutClient } from '../src';

const FILE_PATH = `${__dirname}/logo.png`;

const { data: workflows } = await shortcut.listWorkflows();

const { data: story } = await shortcut.createStory({
name: 'Upload a file to a story',
project_id: 2,
workflow_state_id: workflows[0].states[0].id,
});

console.log('Story created with ID:', story.id);
Expand Down
Loading

0 comments on commit d2c9dd7

Please sign in to comment.