# Daily Scheduled Hours (Story Allocation Days)

Daily Scheduled Hours (also called Story Allocation Days) is the allocation of time for a resource to
spend on a specific task, on a specific day.
Daily Scheduled Hours are part of [Assignments](/tag/Assignments),
so if an Assignment is deleted, so are its Daily Scheduled Hours.

## Fetching a list of Daily Scheduled Hours (Story Allocation Days)

 - [GET /story_allocation_days](https://developer.kantata.com/kantata/specification/daily-scheduled-hours-(story-allocation-days)/get-story-allocation-days.md): Returns all Daily Scheduled Hours that are visible to the requester,
based on permissions. Filter results by specific projects, users, tasks, and more.

NOTES:
- The response includes Daily Scheduled Hours that are part of inactive Assignments, by default.
To filter these out, use the current parameter.
- If you are an Account Administrator, you can use the only_my_account parameter to filter for
Daily Scheduled Hours from only your account. This optimizes performance of the endpoint.

The returned Daily Scheduled Hours are sorted by when they were last updated.


This endpoint returns structured Daily Scheduled Hours (Story Allocation Day) objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results array
and will be indexed by ID in the story_allocation_days top-level JSON key.
Please see our Response Format section for more information.

## Creating a new Daily Scheduled Hours (Story Allocation Day)

 - [POST /story_allocation_days](https://developer.kantata.com/kantata/specification/daily-scheduled-hours-(story-allocation-days)/create-story-allocation-day.md): This endpoint returns structured Daily Scheduled Hours (Story Allocation Day) objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results array
and will be indexed by ID in the story_allocation_days top-level JSON key.
Please see our Response Format section for more information.

## Delete multiple Daily Scheduled Hours (Story Allocation Days)

 - [DELETE /story_allocation_days](https://developer.kantata.com/kantata/specification/daily-scheduled-hours-(story-allocation-days)/delete-story-allocation-days.md): The IDs of the Daily Scheduled Hours to delete can be provided in the ids query parameter or
via the request body. Only daily scheduled hours on your account can be deleted.
Request body example:
{
  "ids": "1,2,3"
}
If any specified Daily Scheduled Hours cannot be deleted, the entire request will fail and an error message
will be returned that specifies which ones could not be deleted and why.


This endpoint returns structured Daily Scheduled Hours (Story Allocation Day) objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results array
and will be indexed by ID in the story_allocation_days top-level JSON key.
Please see our Response Format section for more information.

## Fetching a single Daily Scheduled Hours (Story Allocation Day)

 - [GET /story_allocation_days/{id}](https://developer.kantata.com/kantata/specification/daily-scheduled-hours-(story-allocation-days)/get-story-allocation-day.md): This endpoint returns structured Daily Scheduled Hours (Story Allocation Day) objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results array
and will be indexed by ID in the story_allocation_days top-level JSON key.
Please see our Response Format section for more information.

## Updating an existing Daily Scheduled Hours (Story Allocation Day)

 - [PUT /story_allocation_days/{id}](https://developer.kantata.com/kantata/specification/daily-scheduled-hours-(story-allocation-days)/update-story-allocation-day.md): This endpoint returns structured Daily Scheduled Hours (Story Allocation Day) objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the results array
and will be indexed by ID in the story_allocation_days top-level JSON key.
Please see our Response Format section for more information.

## Deleting an existing Daily Scheduled Hours (Story Allocation Day)

 - [DELETE /story_allocation_days/{id}](https://developer.kantata.com/kantata/specification/daily-scheduled-hours-(story-allocation-days)/delete-story-allocation-day.md): The response will contain no content and an HTTP 204 status code if the request was
successful, or a standard Kantata OX error message explaining why the object could not be deleted.

