---
title: "Add documentation to a specified assignment"
method: POST
path: "/documentations"
tags: ["Documentations"]
---

# Add documentation to a specified assignment

`POST /documentations`

## Request body

- StoreDocumentationRequest
  - `assignment_id` integer, required — The appointment id to add the documentation
  - `author_id` integer, required — The author of this documentation
  - `title` string, required — The documentation title
  - `description` string — The documentation description
  - `type` 'NOTE' | 'DRAFT' | 'PHOTO' | 'SIGNING' | 'TIME' | 'PDF' | 'ATTACHMENT' | 'MATERIAL', required — The documentation type
  - `state` 'ACCEPTED_WITH_COMMENT' | 'ACCEPTED_WO_COMMENT', nullable — Documentation state
  - `state_text` string — Documentation Signing text (Like 'Vertragsgerechet und mangelfrei...' to display and store
  - `working_time` integer — The working time in minutes
  - `driving_time` integer — The driving time in minutes
  - `break_time` integer — The break time in minutes
  - `documented_on` string, date-time — The datetime, when the documentation has been documented has been created
  - `upload` string, binary — First documentation upload file
  - `upload2` string, binary — Second documentation upload file
  - `source` string — The document source
  - `source_external_id` string — The document source_external_id

## Response `201`

The resource was successfully created.

## Other responses

- `401` — The request lacks valid authentication credentials.
- `403` — The token is valid but lacks the permission for this action.
- `422` — The request was well-formed but contains semantic errors (validation failed).
- `500` — An unexpected error occurred on the server (e.g. a requested relation does not exist).

---

[API](https://skmtc.net/craftboxx/apis/craftboxx-api-documentation.md) · [All operations](https://skmtc.net/craftboxx/apis/craftboxx-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/craftboxx/craftboxx-api-documentation/revisions/c01f07a02f77/schema)
