---
title: "POST /workspace/{workspaceId}/history"
method: POST
path: "/workspace/{workspaceId}/history"
tags: ["history"]
---

# POST /workspace/{workspaceId}/history

`POST /workspace/{workspaceId}/history`

## Request

- Base URL: `https://4014930676-files.gitbook.io/api/v1`
- URL: `https://4014930676-files.gitbook.io/api/v1/workspace/{workspaceId}/history`
- Auth: none declared
- TypeScript: <https://skmtc.dev/terrakube/apis/elide-service/docs/workspace/:workspaceId/history/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates an item of type history and adds it to history

## Request body

- object
  - `data` History
    - `type` string: Create Permissions : (user is a super service) Delete Permissions : (user is a super service)
    - `id` string
    - `attributes` object
      - `createdBy` string: Update Permissions : (user is a super service)
      - `createdDate` string, date-time: Update Permissions : (user is a super service)
      - `jobReference` string: Update Permissions : (user is a super service)
      - `output` string: Update Permissions : (user is a super service)
      - `updatedBy` string: Update Permissions : (user is a super service)
      - `updatedDate` string, date-time: Update Permissions : (user is a super service)
    - `relationships` object
      - `workspace` object: Update Permissions : (user is a super service)
        - `id` string
        - `type` 'workspace'

## Response `201`

Successful response

- object
  - `data` History
    - `type` string: Create Permissions : (user is a super service) Delete Permissions : (user is a super service)
    - `id` string
    - `attributes` object
      - `createdBy` string: Update Permissions : (user is a super service)
      - `createdDate` string, date-time: Update Permissions : (user is a super service)
      - `jobReference` string: Update Permissions : (user is a super service)
      - `output` string: Update Permissions : (user is a super service)
      - `updatedBy` string: Update Permissions : (user is a super service)
      - `updatedDate` string, date-time: Update Permissions : (user is a super service)
    - `relationships` object
      - `workspace` object: Update Permissions : (user is a super service)
        - `id` string
        - `type` 'workspace'

---

[API](https://skmtc.dev/terrakube/apis/elide-service.md) - [All operations](https://skmtc.dev/terrakube/apis/elide-service/llms.txt) - [OpenAPI document](https://skmtc.dev/terrakube/apis/elide-service/revisions/e7891deb8c02?raw)
