# Create new Custom Object Type

POST https://api.close.com/api/v1/custom_object_type/
Content-Type: application/json

The type must be created before Custom Fields can be added.

The following fields are required:
  - `name`: The name of the Custom Object Type
  - `name_plural`: A pluralized version of the name, for some UI display.

The following fields are optional:
  - `description`: A longer description of the Custom Object Type.
  - `api_create_only`: If `true`, instances can only be created by API clients. Defaults to `false`.
  - `editable_with_roles`: Only users with the given roles can edit instances of this type. By default, any user in your organization can make changes to the instances of this type.

Reference: https://developer.close.com/api/resources/custom-object-types/create

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Close API
  version: 1.0.0
paths:
  /custom_object_type/:
    post:
      operationId: create
      summary: Create new Custom Object Type
      description: |-
        The type must be created before Custom Fields can be added.

        The following fields are required:
          - `name`: The name of the Custom Object Type
          - `name_plural`: A pluralized version of the name, for some UI display.

        The following fields are optional:
          - `description`: A longer description of the Custom Object Type.
          - `api_create_only`: If `true`, instances can only be created by API clients. Defaults to `false`.
          - `editable_with_roles`: Only users with the given roles can edit instances of this type. By default, any user in your organization can make changes to the instances of this type.
      tags:
        - subpackage_customObjectTypes
      parameters:
        - name: Authorization
          in: header
          description: Basic authentication
          required: true
          schema:
            type: string
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/custom_object_types_create_Response_201'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                description: Any type
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                description: Any type
        '404':
          description: Not found
          content:
            application/json:
              schema:
                description: Any type
      requestBody:
        content:
          application/json:
            schema:
              description: Any type
servers:
  - url: https://api.close.com/api/v1
components:
  schemas:
    custom_object_types_create_Response_201:
      type: object
      properties: {}
      description: Empty response body
      title: custom_object_types_create_Response_201
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: basic
    OAuth2:
      type: http
      scheme: bearer

```