Skip to main content
POST
Submit request to client answer

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

mandate_id
string<uuid>
required
request_id
string
required

Body

Serializer for creating/submitting an answer to a RequestToClient.

The required fields depend on the RequestToClient's allowed_answer_types:

  • yes-no: text must be "yes" or "no"
  • yes-no-dontknow: text must be "yes", "no", or "dontknow"
  • fileupload: files are required, text is optional comment
  • yes-no-freetext-on-no: text must be "yes" or "no", additional_comment required if "no"
  • yes-with-date-no-freetext-on-no: text must be date (if yes) or "no", additional_comment if "no"
  • freetext: text is required
text
string | null

The answer text. Required for most answer types. For yes-no types, use "yes", "no", or "dontknow".

Maximum string length: 5000
additional_comment
string | null

Additional comment. Required for "no" answers in yes-no-freetext-on-no type.

Maximum string length: 5000

Response

200 - application/json

Main serializer for RequestToClient in the Public API. Provides full detail view for GET requests.

id
string
required
read-only
href
string
required
read-only
mandate
object
required

Minimal mandate info for RequestToClient responses.

title
string
required
read-only
description
string | null
required
read-only
allowed_answer_types
required
  • None - ---------
  • yes-no - Ja/Nein
  • yes-no-dontknow - Ja/Nein/Weiß nicht
  • fileupload - Freitext + Dateiupload
  • yes-no-freetext-on-no - Ja/Nein + Freitext bei Nein
  • yes-with-date-no-freetext-on-no - Ja + Datum / Nein + Freitext
  • dynamic-form - Dynamisches Formular
Available options:
yes-no,
yes-no-dontknow,
fileupload,
yes-no-freetext-on-no,
yes-with-date-no-freetext-on-no,
dynamic-form
file_attachments
object[]
required
read-only
answered
boolean
required
read-only
answer
object
required

Read-only serializer for displaying answers. Shows text, additional comment, and uploaded files.

created
string<date-time>
required
read-only
answered_at
string<date-time> | null
required
read-only