---
title: "Create custom object definitions"
method: POST
path: "/objects/definitions/default"
tags: ["Custom Object Definitions"]
---

# Create custom object definitions

`POST /objects/definitions/default`

You can post custom object definitions with the request body schema described below. 

This operation also allows you to use the [List custom object definitions](https://developer.zuora.com/api-references/api/operation/GET_AllCustomObjectDefinitionsInNamespace) response schema as its request schema. If you want to copy all the existing custom objects from an old tenant to a new tenant, you can make a [List custom object definitions](https://developer.zuora.com/api-references/api/operation/GET_AllCustomObjectDefinitionsInNamespace) call in your old tenant and then use its response directly as the request of this operation in the new tenant to import all the custom objects from the old tenant.

The `label` field is the UI label of the custom object. The `object` field contains the API Name of the custom object.

### Limitations 

This custom object definition has the following limitations:

* The maximum number of characters for the Custom Object API Name (`object`) is 64.
* The maximum number of characters for the Custom Object Label (`label`) is	64.
* The maximum number of characters for the Custom Object Description 250.
* The maximum number of custom fields in an custom object	is 50.
* The maximum number of characters for the custom field API name is	64.
* The maximum number of characters for the custom field label (`label`) is	64.
* The maximum number of characters for the custom field Description	is 250.
* The maximum number of picklist or multiselect options is 250.
* The maximum length of characters for the Text field is 255.
* The maximum length of characters for the Long Text field is from 256 to 8,192.
* The maximum number of digits to the left of the decimal point for the Number field is 13, and to the right is 9.

## Headers

- `Accept-Encoding` string
- `Content-Encoding` string
- `Zuora-Track-Id` string
- `Zuora-Entity-Ids` string
- `Zuora-Org-Ids` string
- `Zuora-Version` string, date

## Request body

- PostCustomObjectDefinitionsRequest
  - `definitions` PostCustomObjectDefinitionsRequestDefinitions — The custom object definitions. This object maps types to custom object definitions.

## Response `200`

OK

- GETAllCustomObjectDefinitionsInNamespaceResponse
  - `count` integer — The number of objects in the `definitions` object. The value of this field is the number of custom object definitions in the namespace.
  - `definitions` CustomObjectDefinitions — The custom object definitions. This object maps types to custom object definitions.

## Other responses

- `400` — Bad request

---

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