---
updatedAt: 2026-04-21T03:40:36.000Z
agentTools:
  projectIndex: https://docs.ternary.app/llms.txt
---

# Create case

Create a new case for tracking a cloud cost optimization action.

Cases are linked to resources such as recommendations, budgets, cost alerts, ramp plans, or reports. Optionally link the case to an external Jira issue.

Returns the `caseID` of the newly created case.

Case name and description must be nonempty and cannot contain HTML. Invalid input returns 400. This validation is distinct from comment text.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Core API",
    "description": "Ternary Resource Management API",
    "version": "1.0.0",
    "contact": {},
    "license": {
      "name": "MIT",
      "identifier": "MIT"
    }
  },
  "tags": [
    {
      "name": "Cases",
      "description": "Manage cases for tracking cloud cost optimization actions."
    }
  ],
  "servers": [
    {
      "url": "https://core-api.ternary.app/api",
      "description": "Core API"
    },
    {
      "url": "https://core-api.eu.ternary.app/api",
      "description": "Core API (EU)"
    }
  ],
  "externalDocs": {
    "description": "Raw JSON",
    "url": "https://core-api.ternary.app/api/docs.json"
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "FailureResponse": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "HTTP status code",
            "example": "400 - Bad Request"
          },
          "message": {
            "type": "string",
            "description": "Error message",
            "example": "ERROR_INVALID_PARAMS"
          },
          "reason": {
            "type": "string",
            "description": "Error reason code"
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "CreateCaseResponseBody": {
        "type": "object",
        "properties": {
          "caseID": {
            "type": "string",
            "description": "Unique case ID"
          }
        },
        "required": [
          "caseID"
        ]
      },
      "CreateCaseRequestBody": {
        "type": "object",
        "properties": {
          "tenantID": {
            "type": "string",
            "format": "uuid",
            "description": "A unique identifier for an organization",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "example": "92f36764-5af2-4ff5-a494-d841f32040be"
          },
          "resourceID": {
            "type": "string",
            "minLength": 1,
            "description": "Resource ID"
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "description": "Case description"
          },
          "linkToJira": {
            "type": "boolean",
            "description": "Link case to Jira"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Case name"
          },
          "resourceType": {
            "type": "string",
            "enum": [
              "BUDGET",
              "COST_ALERT",
              "RAMP_PLAN",
              "RECOMMENDATION",
              "REPORT"
            ],
            "description": "Resource type"
          },
          "type": {
            "type": "string",
            "enum": [
              "INVESTIGATION",
              "OPTIMIZATION",
              "TASK"
            ],
            "description": "Case type"
          },
          "assigneeIDs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Case assignee IDs"
          },
          "followerIDs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Case follower IDs"
          },
          "context": {
            "type": "object",
            "properties": {
              "forecast": {
                "type": "number"
              }
            },
            "required": [
              "forecast"
            ]
          }
        },
        "required": [
          "tenantID",
          "resourceID",
          "description",
          "name",
          "resourceType",
          "type"
        ]
      }
    }
  },
  "paths": {
    "/cases": {
      "post": {
        "summary": "Create case",
        "tags": [
          "Cases"
        ],
        "operationId": "createCase",
        "description": "Create a new case for tracking a cloud cost optimization action.\n\nCases are linked to resources such as recommendations, budgets, cost alerts, ramp plans, or reports. Optionally link the case to an external Jira issue.\n\nReturns the `caseID` of the newly created case.\n\nCase name and description must be nonempty and cannot contain HTML. Invalid input returns 400. This validation is distinct from comment text.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCaseRequestBody"
              },
              "examples": {
                "createCase": {
                  "value": {
                    "tenantID": "92f36764-5af2-4ff5-a494-d841f32040be",
                    "resourceID": "t8rxgzR17qV75kwj20ML",
                    "description": "Test new case",
                    "linkToJira": true,
                    "name": "Test case",
                    "resourceType": "BUDGET",
                    "type": "INVESTIGATION",
                    "assigneeIDs": [
                      "95876d96-392f-4160-af59-8f1b5ee9b3e1"
                    ],
                    "followerIDs": [
                      "40a19ce7-9002-428b-9a15-0f470c90b239"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCaseResponseBody"
                },
                "examples": {
                  "createCase": {
                    "value": {
                      "caseID": "f220d2df-5378-4d71-b1ab-7f1f5eb37e6a"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailureResponse"
                },
                "examples": {
                  "400Response": {
                    "value": {
                      "code": "400 - Bad Request",
                      "message": "ERROR_INVALID_PARAMS"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailureResponse"
                },
                "examples": {
                  "401Response": {
                    "value": {
                      "code": "401 - Unauthorized",
                      "message": "ERROR_UNAUTHORIZED"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailureResponse"
                },
                "examples": {
                  "403Response": {
                    "value": {
                      "code": "403 - Forbidden",
                      "message": "ERROR_PERMISSION_DENIED"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The tenant or required linked resource/integration was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailureResponse"
                },
                "examples": {
                  "404Response": {
                    "value": {
                      "code": "404 - Not Found",
                      "message": "HTTP/ERROR",
                      "reason": "CreateCaseCommandFailure/CASE_NOT_FOUND"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Core API",
      "tags": [
        "Alert Rule",
        "Alert Rule Events",
        "API Keys",
        "AWS Rate Recommendations",
        "Azure Rate Recommendations",
        "Billing Rules",
        "Budget",
        "Cases",
        "Cost Alerts",
        "Custom Label",
        "Custom Measures",
        "Data Integration",
        "Data Integration: Alibaba",
        "Data Integration: AWS",
        "Data Integration: Azure",
        "Data Integration: Custom Data",
        "Data Integration: Databricks",
        "Data Integration: GCP",
        "Data Integration: Oracle",
        "Data Integration: Snowflake",
        "Dimension Preferences",
        "GCP Rate Recommendations",
        "Integrations",
        "Label Map",
        "MCP Availability",
        "MCP Client Usage",
        "Measure Preferences",
        "MSP Billing Information",
        "MSP Child",
        "MSP Shared Payer Integrations",
        "MSP Tenant Settings",
        "Permissions",
        "Ramp Plans",
        "Report",
        "Resource Subscriptions",
        "Role",
        "Savings Opportunity Filter",
        "Scoped View",
        "Support Tickets",
        "Tenant",
        "Tenant SSO Config",
        "Usage Recommendations",
        "User",
        "User Group Config"
      ]
    }
  ]
}
```