Skip to content

Update a room

PATCH
/organizations/{organizationId}/environments/{environmentId}/rooms/{roomId}
curl --request PATCH \
--url https://api-dev.mindflow.io/v1/organizations/%24CURRENT_ORGANIZATION_ID/environments/%24CURRENT_ENVIRONMENT_ID/rooms/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/merge-patch+json' \
--data '{ "name": "example", "status": "ENABLED", "blueprintId": "incident-ir-v0", "properties": { "title": "example", "description": "", "status": "New", "severity": "Informational", "category": [ "Other" ], "assignee": "", "dueAt": "2026-04-15", "details": "" }, "environmentIds": [ "$CURRENT_ENVIRONMENT_ID" ] }'

Updates an existing room (name, lifecycle status, blueprint, or properties) and returns the updated room.

organizationId
required
Organization id

Opaque id of the organization that owns the resource. In a playbook step this can be filled from the current organization when the caller leaves it unset.

string
default: $CURRENT_ORGANIZATION_ID >= 1 characters <= 128 characters /^[^\p{C}]+$/
Example
ORGA-57b858ed-ec60-4507-b2ef-ea58244ac742

ID of the organization.

environmentId
required
Environment id

Opaque id of an environment. In a playbook step this can be filled from the current environment when the caller leaves it unset.

string
default: $CURRENT_ENVIRONMENT_ID >= 1 characters <= 128 characters /^[^\p{C}]+$/
Example
ENVI-57b858ed-ec60-4507-b2ef-ea58244ac742

Environment to update the room in.

roomId
required

Unique identifier of the room.

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/

The id of the room to update.

Media typeapplication/merge-patch+json
object
name

Display name of the room. For a structured case, this sets the case title.

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/
status
Room status

Lifecycle state of the room in the platform.

string
Allowed values: ENABLED PINNED ARCHIVED
blueprintId
Blueprint

Catalog blueprint for this case class.

string
Allowed values: incident-ir-v0 change-mgmt-v0 vulnerability-v0 usage-ai-v0
properties
One of:
Incident

Operational case for investigating and responding to a security incident

object
title
required
Title

Short, searchable name for the incident

string
description
required
Description

One-line summary shown under the title

string
""
status
required
Status

Where the case sits in the incident-response lifecycle

string
default: New
Allowed values: New Triaged Investigating Contained Eradicating Recovering Closed
severity
required
Severity

Combined impact and urgency for how analysts should work this case

string
default: Medium
Allowed values: Informational Low Medium High Critical
category
required
Tags

Incident type tags

Array<string>
default: Other >= 1 items unique items
Allowed values: Phishing Malware Ransomware Unauthorized access Data exfiltration Denial of service Insider threat Cloud misconfiguration Other
assignee
required
Assignee

Analyst or on-call owner currently responsible. Persist the Mindflow organization user id (USER-…). Call Platform Users listUsers to discover candidates (userId, name, email). Email or exact display name is accepted only when it uniquely matches one org member; otherwise the request is rejected.

string
""
dueAt
required
Due at

Target time for the next response milestone

string format: date
details
required
Details

What happened, impact, assets involved, and current hypothesis

string format: rich-text
""
createdAt
required
Created at

When this incident was created

string format: date-time
updatedAt
required
Updated at

When this incident was last updated

string format: date-time
environmentIds

Environments linked to a structured case (0..n). Empty means Global.

Array<string>

Room updated. The body is the room after the update.

Media typeapplication/json
Room

A chat room or a structured case room (incident, change, vulnerability, AI usage). Structured case rooms carry blueprintId and properties; chat rooms carry model.

object
roomId

Unique identifier of the room.

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/
organizationId
Organization id

Opaque id of the organization that owns the resource. In a playbook step this can be filled from the current organization when the caller leaves it unset.

string
default: $CURRENT_ORGANIZATION_ID >= 1 characters <= 128 characters /^[^\p{C}]+$/
environmentId
Environment id

Opaque id of an environment. In a playbook step this can be filled from the current environment when the caller leaves it unset.

string
default: $CURRENT_ENVIRONMENT_ID >= 1 characters <= 128 characters /^[^\p{C}]+$/
name

Display name of the room. For a structured case, the case title.

string
<= 128 characters /^[^\p{C}]+$/
status
Room status

Lifecycle state of the room in the platform.

string
Allowed values: ENABLED PINNED ARCHIVED
blueprintId

Blueprint that defines the case properties (for example incident-ir-v0). Chat rooms omit it.

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/
properties
Case properties

Blueprint-defined room fields (shape matches the blueprint JSON Schema).

object
key
additional properties
any
environmentIds

Environments linked to a structured case (0..n). Empty means Global (org-wide). Chat rooms omit this field.

Array<string>
model
Room model

The LLM that answers in the room. Pick a model from the LLM catalog (listOrganizationModels) and pass its modelId, vendorId, and name unchanged.

object
modelId
required

Catalog model id, for example gpt-5.1-2025-11-13 or amazon.nova-pro-v1:0.

string
>= 1 characters <= 256 characters /^[\x20-\x7E]+$/
vendorId
required

Vendor that hosts modelId. Send the vendorId the catalog returns for that model.

string
>= 1 characters <= 64 characters /^[a-z][a-zA-Z0-9]*$/
name
required

Display name of the model.

string
<= 128 characters /^[^\p{C}]+$/
createdAt

The timestamp when the room was created.

string format: date-time
<= 29 characters
updatedAt

The timestamp when the room was last updated.

string format: date-time
<= 29 characters
lastActivityAt

The timestamp of the last room activity.

string format: date-time
<= 29 characters
Example
{
"organizationId": "$CURRENT_ORGANIZATION_ID",
"environmentId": "$CURRENT_ENVIRONMENT_ID",
"status": "ENABLED",
"blueprintId": "incident-ir-v0",
"environmentIds": [
"$CURRENT_ENVIRONMENT_ID"
],
"model": {
"modelId": "gpt-4o",
"vendorId": "openai"
}
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

The request was invalid. Common causes include:

  • Invalid timestamp format.
  • Using cursor with before or after.
  • Missing limit when using before or after.
  • Invalid field names in the fields parameter.

See the error response for specific details about what went wrong.

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always BAD_REQUEST on this response. Read detail for which value to change, then send a corrected request.

string
Allowed values: BAD_REQUEST
Example
{
"type": "about:blank",
"title": "Bad Request",
"status": 400,
"detail": "The request body or query is invalid.",
"code": "BAD_REQUEST"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

Authentication failed. The request lacks valid credentials or the provided credentials are invalid.

Ensure you have:

  • A valid API key or token.
  • Proper authentication headers.
  • Required permissions.
Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always MISSING_OR_INVALID_TOKEN on this response. Branch on this value, not on detail.

string
Allowed values: MISSING_OR_INVALID_TOKEN
Example
{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "The bearer token is missing or invalid.",
"code": "MISSING_OR_INVALID_TOKEN"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

The requested resource was not found.

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always NOT_FOUND on this response. The resource is not available to this caller.

string
Allowed values: NOT_FOUND
Example
{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "The resource was not found.",
"code": "NOT_FOUND"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

Too many requests. The request rate limit has been exceeded.

Please wait until the rate limit window resets before making additional requests.

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always RATE_LIMIT_EXCEEDED on this response. Wait Retry-After seconds before retrying.

string
Allowed values: RATE_LIMIT_EXCEEDED
Example
{
"type": "about:blank",
"title": "Too Many Requests",
"status": 429,
"detail": "The request rate limit has been exceeded.",
"code": "RATE_LIMIT_EXCEEDED"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

Internal server error. The server encountered an unexpected condition that prevented it from fulfilling the request.

Please try again later or contact support if the problem persists.

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always INTERNAL_ERROR on this response. Retry later. Do not retry a create in a tight loop.

string
Allowed values: INTERNAL_ERROR
Example
{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "The request could not be completed.",
"code": "INTERNAL_ERROR"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.