---
title: "Create Object"
method: POST
path: "/v1/entities"
tags: ["Object Management"]
---

# Create Object

`POST /v1/entities`

## Request

- Base URL: `https://hostname/api/custom-entity`
- URL: `https://hostname/api/custom-entity/v1/entities`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `OBJECT_MANAGER`, `OBJECT_MANAGER_WRITE`, `INTEGRATION`

Use this API to create a new object record.

> 🗒 Things to Know
> 
> - This API only supports creating Projects, Models, and Datasets objects via Object Manager.

## Query parameters

- `entityTypeIdentifier` string, uuid: Identifier of the object type
- `entityTypeName` string: Name of the object type

## Request body

- EntityCreateRequest
  - `name` string, required: The name of the object.
  - `organization` EntityOrganizationInformation
    - `id` string, uuid, required: The unique identifier of the organization.
    - `name` string: The name of the organization.
  - `attributes` object: This parameter can be used to store attribute details in key value pairs.
  - `workflowAndStage` EntityWorkflowStageRequest
    - `workflow` BasicAttributeInformation
      - `id` string, uuid: The unique identifier of the workflow.
      - `value` string: The name of the workflow.
    - `stage` BasicAttributeInformation
      - `id` string, uuid: The unique identifier of the workflow.
      - `value` string: The name of the workflow.
    - `closedDate` string, date-time: The date and time that the workflow stage closed.
  - `entityLinks` BasicLinkCreateSourceRequest[]: The details of the linked objects.
    - `attributes` object: The attributes of the relationship.
    - `entity1` LinkedEntityInformation
      - `linkEntityDetail` EntityDetailRequest
        - `extendedBaseAttributes` object: The details of the attribute.
      - `id` string, uuid, required: The unique identifier of the object.
      - `number` integer, required: The sequential order in which the object was created.
      - `name` string: The name of the object.
      - `detailsAccessRestricted` boolean: This flag indicates whether the object is view-only.
      - `redirectURL` string: The redirect URL for the object.
      - `entityType` BasicEntityTypeInformation, required
        - `id` string, uuid, required: The unique identifier of the object type.
        - `name` string, required: The name of the object type.
        - `seeded` boolean: This flag indicates whether the object type is seeded.
        - `moduleName` 'Vendor' | 'DataMapping' | 'Risk' | 'Assessments' | 'CustomEntityManagement': The name of the product where the object type exists.
        - `schemaName` 'vendor' | 'data-mapping' | 'risk' | 'assessments' | 'customEntityManagement': The name of the schema.
      - `deleted` boolean: This flag indicates whether the object is deleted.
    - `entity2` LinkedEntityInformation, required
      - `linkEntityDetail` EntityDetailRequest
        - `extendedBaseAttributes` object: The details of the attribute.
      - `id` string, uuid, required: The unique identifier of the object.
      - `number` integer, required: The sequential order in which the object was created.
      - `name` string: The name of the object.
      - `detailsAccessRestricted` boolean: This flag indicates whether the object is view-only.
      - `redirectURL` string: The redirect URL for the object.
      - `entityType` BasicEntityTypeInformation, required
        - `id` string, uuid, required: The unique identifier of the object type.
        - `name` string, required: The name of the object type.
        - `seeded` boolean: This flag indicates whether the object type is seeded.
        - `moduleName` 'Vendor' | 'DataMapping' | 'Risk' | 'Assessments' | 'CustomEntityManagement': The name of the product where the object type exists.
        - `schemaName` 'vendor' | 'data-mapping' | 'risk' | 'assessments' | 'customEntityManagement': The name of the schema.
      - `deleted` boolean: This flag indicates whether the object is deleted.
    - `entityLinkTypeId` string, uuid: The unique identifier of the relationship type.
    - `sourceSystemGenerator` string: The system the generated the relationship link.
    - `linkTypeLabel` string: The display name of the relationship type.

## Response `201`

Created - The object was successfully created

- EntityInformation
  - `id` string, uuid, required: The unique identifier of the object.
  - `number` integer, required: The sequential order in which the object was created.
  - `name` string, required: The name of the object.
  - `orgGroupId` string, uuid: The unique identifier of the organization responsible for the object.
  - `schemaId` string, uuid, required: The unique identifier of the schema.
  - `entityType` BasicEntityTypeInformation, required
    - `id` string, uuid, required: The unique identifier of the object type.
    - `name` string, required: The name of the object type.
    - `seeded` boolean: This flag indicates whether the object type is seeded.
    - `moduleName` 'Vendor' | 'DataMapping' | 'Risk' | 'Assessments' | 'CustomEntityManagement': The name of the product where the object type exists.
    - `schemaName` 'vendor' | 'data-mapping' | 'risk' | 'assessments' | 'customEntityManagement': The name of the schema.
  - `workflowAndStage` EntityWorkflowInformation
    - `id` string, uuid, required: The unique identifier of the workflow.
    - `name` string, required: The name of the workflow.
    - `type` string, required: The type of workflow.
    - `workflowMode` 'ADVANCED, BASIC': The mode in which the workflow was created.
    - `stageId` string, uuid, required: The unique identifier of the workflow stage.
    - `stageName` string, required: The name of the workflow stage.
  - `attributes` object: The details of the associated attributes.
  - `auditFields` EntityRecordAuditInformation
    - `createdDate` string, date-time, required: The date and time that the record was created.
    - `lastUpdatedDate` string, date-time: The date and time that the record was last updated.
    - `createdBy` EntityBasicUserInformation
      - `id` string, uuid: The unique identifier of the user who last modified the record.
      - `name` string: The name of the user who last modified the record.
      - `email` string: The email address of the user who last modified the record.
      - `initials` string: The initials of the user who last modified the record.
    - `lastModifiedBy` EntityBasicUserInformation
      - `id` string, uuid: The unique identifier of the user who last modified the record.
      - `name` string: The name of the user who last modified the record.
      - `email` string: The email address of the user who last modified the record.
      - `initials` string: The initials of the user who last modified the record.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500`: Internal Server Error

---

[API](https://skmtc.dev/onetrust/apis/platform-object-manager.md) - [All operations](https://skmtc.dev/onetrust/apis/platform-object-manager/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/platform-object-manager/revisions/76e5833717c3?raw)
