---
title: "Create a new submission on behalf of another user"
method: POST
path: "/api/forms/{formId}/submissions/onbehalf"
tags: ["Forms"]
---

# Create a new submission on behalf of another user

`POST /api/forms/{formId}/submissions/onbehalf`

Creates a new form submission with the ability to set the submittedBy field.

## Path parameters

- `formId` integer, required

## Request body

- CreateSubmissionOnBehalfRequest — Request payload for creating a submission on behalf of another user. Used with CreateOnBehalf endpoint.
  - `isComplete` boolean, nullable — Boolean flag to indicate if a submission is complete. Optional
  - `currentPage` integer, nullable — Current page if the form has multiple pages. Optional
  - `jsonData` string, nullable — Stringified form submission data
  - `metadata` string, nullable — Stringified metadata related to the form submission
  - `submittedBy` string, nullable — Optional identifier of the user on whose behalf the form is being submitted.

## Response `201`

The submission was successfully created

- CreateSubmissionOnBehalfResponse — Response model for submission created on behalf of another user.
  - `id` string
  - `isComplete` boolean
  - `jsonData` string
  - `formId` string
  - `formDefinitionId` string
  - `currentPage` integer, nullable
  - `metadata` string, nullable
  - `token` string, nullable
  - `completedAt` string, date-time, nullable
  - `createdAt` string, date-time
  - `modifiedAt` string, date-time, nullable
  - `status` string
  - `submittedBy` string, nullable

## Other responses

- `400` — Invalid input data.
- `401` — Unauthorized
- `403` — Forbidden

## Changes

- **2026-02-06** `a99906323223` — 1 info
  - endpoint added
- **2025-03-24** `fbc3fe6ecbf1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/endatix/apis/endatix-platform-rest-api/changes/api/forms/:formId/submissions/onbehalf/post.md)

---

[API](https://skmtc.dev/endatix/apis/endatix-platform-rest-api.md) · [All operations](https://skmtc.dev/endatix/apis/endatix-platform-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/endatix/endatix-platform-rest-api/revisions/01bd299fd100/schema)
