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:

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.

{
    "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.

Authorization: "Bearer <token>"
tenant: <your_tenent_ID>
Ocp-Apim-Subscription-Key: <your_subscription_key>

Field Value formats

The expected format of the field values depends on the type of the field and is as below:

Field TypeJSON 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)