DeveloperAPI ReferenceEntitiesFind or create
/api/entities/find-or-create
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/entities/find-or-create" \ -H "Content-Type: application/json" \ -d '{ "type": "string", "name": "string" }'{
"entity": {
"id": "string",
"type": "string",
"name": "string",
"status": "pending",
"sourcePluginId": "string",
"searchTerms": "string",
"createdAt": "string",
"updatedAt": "string",
"assets": {
"property1": "string",
"property2": "string"
},
"assetAspects": {
"property1": "string",
"property2": "string"
}
},
"created": true
}{
"error": "string"
}