---
title: "Create a new entity instance of the provided type"
method: POST
path: "/data/{type}"
tags: ["Internal Generic API"]
---

# Create a new entity instance of the provided type

`POST /data/{type}`

This endpoint accepts different payloads based on the `type` path parameter. The payload you should use is determined by the type parameter in the path. Please consult the documentation for the specific payload options available for each type.

## Path parameters

- `type` 'owners' | 'systemconfig', required

## Request body

- union
  - Owner
    - `id` integer
    - `name` string
    - `type` string
    - `ownerRole` string
    - `permIndicator` string
    - `permGroup` string
    - `permPost` string
    - `permVictim` string
    - `permAttribute` string
    - `permApps` string
    - `permUsers` string
    - `permSecurityLabel` string
    - `permTag` string
    - `permAttributeType` string
    - `permSettings` string
    - `permMembers` string
    - `permCopyData` string
    - `permInvite` string
    - `permTask` string
    - `permCaseTag` string
    - `permArtifact` string
    - `permComment` string
    - `permTimeline` string
    - `permWorkflowTemplate` string
    - `permPublish` string
    - `permPlaybooksExecute` string
    - `permPlaybooks` string
  - SystemConfig
    - `id` integer — The ID of the item
    - `name` string — The name of the system config
    - `value` string — The value of the system config. May be missing if the value is set to hidden or the system config is encrypted
    - `description` string — The description of the system config
    - `category` string — What category the system config should appear under, if any
    - `subcategory` string — What subcategory within the category the system config should appear under, if any
    - `type` string — The type for the system config. Valid values are Boolean, Integer, SelectOne, String, Text
    - `priority` integer — The priority for the system config, which will control the order that it appears on System Settings
    - `units` string — What units the system config value is in. Example: seconds, megabytes, etc
    - `validation` string — What validation is performed on the value for the system config, depends on the assigned type
    - `locked` boolean — Whether or not the system config value is locked. Locked values cannot be edited

## Response `200`

The saved entity

- union
  - Owner
    - `id` integer
    - `name` string
    - `type` string
    - `ownerRole` string
    - `permIndicator` string
    - `permGroup` string
    - `permPost` string
    - `permVictim` string
    - `permAttribute` string
    - `permApps` string
    - `permUsers` string
    - `permSecurityLabel` string
    - `permTag` string
    - `permAttributeType` string
    - `permSettings` string
    - `permMembers` string
    - `permCopyData` string
    - `permInvite` string
    - `permTask` string
    - `permCaseTag` string
    - `permArtifact` string
    - `permComment` string
    - `permTimeline` string
    - `permWorkflowTemplate` string
    - `permPublish` string
    - `permPlaybooksExecute` string
    - `permPlaybooks` string
  - SystemConfig
    - `id` integer — The ID of the item
    - `name` string — The name of the system config
    - `value` string — The value of the system config. May be missing if the value is set to hidden or the system config is encrypted
    - `description` string — The description of the system config
    - `category` string — What category the system config should appear under, if any
    - `subcategory` string — What subcategory within the category the system config should appear under, if any
    - `type` string — The type for the system config. Valid values are Boolean, Integer, SelectOne, String, Text
    - `priority` integer — The priority for the system config, which will control the order that it appears on System Settings
    - `units` string — What units the system config value is in. Example: seconds, megabytes, etc
    - `validation` string — What validation is performed on the value for the system config, depends on the assigned type
    - `locked` boolean — Whether or not the system config value is locked. Locked values cannot be edited

## Other responses

- `400` — Bad request - invalid payload
- `401` — Unauthorized
- `500` — Server error

---

[API](https://skmtc.dev/threatconnect/apis/threatconnect-api.md) · [All operations](https://skmtc.dev/threatconnect/apis/threatconnect-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/threatconnect/threatconnect-api/revisions/730b8a350ae7/schema)
