Api version - v1

CreateObjectDefinition

API to create an object definition

Authorizations:
basicAuth
path Parameters
type
required
string (ObjectDefinitionType)
Enum: "search" "eid" "relation" "sirenapiscript" "iconpack" "dataspace"

The object definition type, e.g. search, eid, etc ...

query Parameters
dataspace
string
returnAttributes
boolean
Request Body schema: application/json
required
Any of
required
object (SavedSearchAttributes)
isGlobal
boolean <boolean>

Is global true/false

version
string <string>

Version of document stored in Elasticsearch document meta

Responses

Request samples

Content type
application/json
Example
{
  • "attributes": {
    },
  • "isGlobal": true,
  • "version": "string"
}

Response samples

Content type
application/json
{
  • "acknowledged": true,
  • "error": {
    },
  • "action": "string",
  • "status": 0,
  • "warning": "string",
  • "version": "string",
  • "attributes": null,
  • "namespace": "string",
  • "type": "string",
  • "id": "string"
}

CreateObjectDefinitionWithId

API to create an object definition with a specified id

Authorizations:
basicAuth
path Parameters
type
required
string (ObjectDefinitionType)
Enum: "search" "eid" "relation" "sirenapiscript" "iconpack" "dataspace"

The object type, e.g. search, eid, etc ...

id
required
string (ObjectDefinitionId) ^(?:([\w\d-]{1,25}):)?[2a-z_-]+:[\w\d-.()]+$
Example: search:a14c5675-1fdd-4bfb-804c-b2f67594656a

The object id

query Parameters
dataspace
string
overwrite
boolean
returnAttributes
boolean
__private
boolean
Request Body schema: application/json
required
Any of
required
object (SavedSearchAttributes)
isGlobal
boolean <boolean>

Is global true/false

version
string <string>

Version of document stored in Elasticsearch document meta

Responses

Request samples

Content type
application/json
Example
{
  • "attributes": {
    },
  • "isGlobal": true,
  • "version": "string"
}

Response samples

Content type
application/json
{
  • "acknowledged": true,
  • "error": {
    },
  • "action": "string",
  • "status": 0,
  • "warning": "string",
  • "version": "string",
  • "attributes": null,
  • "namespace": "string",
  • "type": "string",
  • "id": "string"
}

UpdateObjectDefinition

API to update an object definition with a specific id

Authorizations:
basicAuth
path Parameters
type
required
string (ObjectDefinitionType)
Enum: "search" "eid" "relation" "sirenapiscript" "iconpack" "dataspace"

The object definition type, e.g. search, eid, etc ...

id
required
string (ObjectDefinitionId) ^(?:([\w\d-]{1,25}):)?[2a-z_-]+:[\w\d-.()]+$
Example: search:a14c5675-1fdd-4bfb-804c-b2f67594656a

The object definition id

query Parameters
dataspace
string
returnAttributes
boolean
Request Body schema: application/json
required
Any of
required
object (SavedSearchAttributes)
isGlobal
boolean <boolean>

Is global true/false

version
string <string>

Version of document stored in Elasticsearch document meta

Responses

Request samples

Content type
application/json
Example
{
  • "attributes": {
    },
  • "isGlobal": true,
  • "version": "string"
}

Response samples

Content type
application/json
{
  • "acknowledged": true,
  • "error": {
    },
  • "action": "string",
  • "status": 0,
  • "warning": "string",
  • "version": "string",
  • "attributes": null,
  • "namespace": "string",
  • "type": "string",
  • "id": "string"
}

DeleteObjectDefinition

Authorizations:
basicAuth
path Parameters
id
required
string (ObjectDefinitionId) ^(?:([\w\d-]{1,25}):)?[2a-z_-]+:[\w\d-.()]+$
Example: search:a14c5675-1fdd-4bfb-804c-b2f67594656a

An investigate object stringified id with the following format [DataspaceShortcode:]InvestigateObject:UUID.

Responses

Response samples

Content type
application/json
{
  • "deletedIds": [
    ],
  • "acknowledged": true
}

ValidateObjectDefinition

API to validate an object definition

Authorizations:
basicAuth
path Parameters
type
required
string (ObjectDefinitionType)
Enum: "search" "eid" "relation" "sirenapiscript" "iconpack" "dataspace"

The object definition type, e.g. search, eid, etc ...

query Parameters
id
string (ObjectDefinitionId) ^(?:([\w\d-]{1,25}):)?[2a-z_-]+:[\w\d-.()]+$
Example: id=search:a14c5675-1fdd-4bfb-804c-b2f67594656a

An investigate object stringified id with the following format [DataspaceShortcode:]InvestigateObject:UUID.

Request Body schema: application/json
required
Any of
required
object (SavedSearchAttributes)
isGlobal
boolean <boolean>

Is global true/false

version
string <string>

Version of document stored in Elasticsearch document meta

Responses

Request samples

Content type
application/json
Example
{
  • "attributes": {
    },
  • "isGlobal": true,
  • "version": "string"
}

Response samples

Content type
application/json
{
  • "acknowledged": true,
  • "error": {
    },
  • "action": "string",
  • "status": 0,
  • "warning": "string",
  • "version": "string",
  • "attributes": null,
  • "namespace": "string",
  • "type": "string",
  • "id": "string"
}