--- title: "Create Object" slug: "create-object-1" updated: 2022-12-14T06:17:00Z published: 2022-12-14T06:17:00Z canonical: "docs.team-tracks.com/create-object-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.team-tracks.com/llms.txt > Use this file to discover all available pages before exploring further. # Create Object The 'create object' API is used to create one object using a TeamTracks Add view. This is a POST request where the object values are passed in JSON in the request body. The API returns '200 OK' when successful. ## Create Object [EP-3] The following POST endpoint creates an object based on a specific add view: ```markup https://api.team-tracks.com/object/{viewId} ``` This endpoint requires the id of an **add** **view** in the system the field values are passed in the request body as JSON as below. ```json { "objectValues": { "Field1": "", "Field2": "", "Field3": "" } } ``` 'Field1', 'Field2', and 'Field3' should be present on the add view specified by the viewID The call should include the below headers. ```none Authorization: "Bearer " tenant: Ocp-Apim-Subscription-Key: ``` ### Field Value formats The expected format of the field values depends on the type of the field and is as below: | **Field Type** | **JSON Format** | | --- | --- | | **Text** | String | | **Int** | Number (without decimals) | | **Float** | Number | | **Bool** | Boolean | | **Choice** | String (valid choice defined on field) | | **Date** | Number in Unix epoch time format (in milliseconds) | | **DateTime** | Number in Unix epoch time format (in milliseconds) | | **Multichoice** | Array of strings (strings must be valid choices defined on the field) | ## Related - [Overview of Public API](/overview-of-public-api.md) - [ List of Objects](/list-of-objects.md) - [Identifying ViewIDs](/identifying-viewids.md) - [Update Object](/update-object.md)