Create Entity Type
POST
/v1/entity-types
const url = 'https://example.com/api/v1/entity-types';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"defaultTemplateId":"example","icon":"example","isLocation":true,"name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/entity-types \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "defaultTemplateId": "example", "icon": "example", "isLocation": true, "name": "example" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Entity Type Data
Media type application/json
object
defaultTemplateId
string
icon
string
isLocation
boolean
name
string
Example generated
{ "defaultTemplateId": "example", "icon": "example", "isLocation": true, "name": "example"}Responses
Section titled “ Responses ”Created
Media type application/json
object
createdAt
string
defaultTemplate
object
createdAt
string
description
string
id
string
name
string
updatedAt
string
defaultTemplateId
string
description
string
icon
string
id
string
isLocation
boolean
name
string
updatedAt
string
Example generated
{ "createdAt": "example", "defaultTemplate": { "createdAt": "example", "description": "example", "id": "example", "name": "example", "updatedAt": "example" }, "defaultTemplateId": "example", "description": "example", "icon": "example", "id": "example", "isLocation": true, "name": "example", "updatedAt": "example"}