---
title: "Create a new editable thread"
method: POST
path: "/v1/{innovationId}/threads"
tags: ["Innovation Threads"]
---

# Create a new editable thread

`POST /v1/{innovationId}/threads`

## Request

- Base URL: `https://nhse-${ENV}-innovation-service-innovation-functions.azurewebsites.net/api`
- URL: `https://nhse-${ENV}-innovation-service-innovation-functions.azurewebsites.net/api/v1/{innovationId}/threads`
- Auth: none declared

Create a new editable thread.

## Path parameters

- `innovationId` string, uuid, required

## Request body

- object
  - `subject` string, required
  - `message` string, required
  - `file` object
    - `name` string, required
    - `description` string
    - `file` object, required
      - `id` string, required
      - `name` string, required
      - `size` number, float, required
      - `extension` string, required
  - `followerUserRoleIds` string[], required

## Response `200`

The thread was created successfully.

- object
  - `id` string, uuid, required

## Other responses

- `400`: The request was invalid.
- `401`: The user is not authenticated.
- `403`: The user is not authorized to create a thread.
- `404`: The innovation does not exist.
- `500`: An error occurred while creating the thread.

## Changes

- **2024-11-07** `761f95f46b23`: 2 breaking, 3 warning, 2 info
  - added the new required request property `followerUserRoleIds`
  - for the `path` request parameter `innovationId`, the format changed from no format to `uuid`
  - the `message` request property's maxLength was set to `4000`
  - the `subject` request property's maxLength was set to `200`
  - …3 more

[Operation history](https://skmtc.dev/nhs-england/apis/innovations-api-nhs-innovation-service/changes/v1/:innovationId/threads/post.md)

---

[API](https://skmtc.dev/nhs-england/apis/innovations-api-nhs-innovation-service.md) - [All operations](https://skmtc.dev/nhs-england/apis/innovations-api-nhs-innovation-service/llms.txt) - [OpenAPI document](https://skmtc.dev/nhs-england/apis/innovations-api-nhs-innovation-service/revisions/c7535c8a7a65?raw)
