Update Entity Type
PUT
/v1/entity-types/{id}
const url = 'https://example.com/api/v1/entity-types/example';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"defaultTemplateId":"example","icon":"example","id":"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 PUT \ --url https://example.com/api/v1/entity-types/example \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "defaultTemplateId": "example", "icon": "example", "id": "example", "isLocation": true, "name": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Entity Type ID
Request Bodyrequired
Section titled “Request Bodyrequired”Entity Type Data
Media typeapplication/json
object
defaultTemplateId
string
icon
string
id
string
isLocation
boolean
name
string
Examplegenerated
{ "defaultTemplateId": "example", "icon": "example", "id": "example", "isLocation": true, "name": "example"}Responses
Section titled “Responses”OK
Media typeapplication/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
Examplegenerated
{ "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"}