View Source ShortcutApi.Stories (shortcut_api_ex v1.0.5)
API wrapper for Shortcut Stories endpoints. See: https://developer.shortcut.com/api/rest/v3#Stories
All functions require a valid Shortcut API token.
Summary
Functions
Creates a new story.
Deletes a story.
Retrieves a single story by ID.
Updates an existing story.
Types
Functions
Creates a new story.
Parameters
token
- Shortcut API tokenparams
- Map containing the story parameters
Required params
:name
- Story name:project_id
- Project ID
Examples
iex> params = %{name: "New Story", project_id: 123}
iex> ShortcutApi.Stories.create_story("token", params)
{:ok, %{id: 12345, name: "New Story"}}
Deletes a story.
Parameters
token
- Shortcut API tokenstory_id
- The ID of the story to delete
Examples
iex> ShortcutApi.Stories.delete_story("token", 12345)
{:ok, %{}}
Retrieves a single story by ID.
Parameters
token
- Shortcut API tokenstory_id
- The ID of the story to retrieve
Examples
iex> ShortcutApi.Stories.get_story("token", 12345)
{:ok, %{id: 12345, name: "Story name"}}
Updates an existing story.
Parameters
token
- Shortcut API tokenstory_id
- The ID of the story to updateparams
- Map containing the update parameters
Examples
iex> params = %{name: "Updated Story Name"}
iex> ShortcutApi.Stories.update_story("token", 12345, params)
{:ok, %{id: 12345, name: "Updated Story Name", ...}}