ETSI ISG CIM / NGSI-LD API (latest)
Download OpenAPI specification:Download
This OAS file describes the NGSI-LD API defined by the ETSI ISG CIM group. This Cross-domain Context Information Management API allows to provide, consume and subscribe to context information in multiple scenarios and involving multiple stakeholders
queryEntities
Retrieve a set of entities which matches a specific query from an NGSI-LD system
query Parameters
id | string <uri> Comma separated list of URIs to be retrieved |
idPattern | string <regexp> Regular expression that must be matched by Entity ids |
type | string non-empty Comma separated list of Entity type names to be retrieved |
attrs | string non-empty Comma separated list of attribute names (properties or relationships) to be retrieved |
q | string non-empty Query |
string or string (georel) Geo-relationship | |
geometry | string (geometry) Enum: "Point" "MultiPoint" "LineString" "MultiLineString" "Polygon" "MultiPolygon" Geometry |
Array of position (numbers) or Array of positionArray (numbers) or Array of lineString (numbers) or Array of polygon (numbers) (coordinates) Coordinates serialized as a string | |
geoproperty | string non-empty The name of the property that contains the geo-spatial data that will be used to resolve the geoquery |
csf | string non-empty Context Source Filter |
limit | integer >= 1 Pagination limit |
options | string Enum: "keyValues" "sysAttrs" Options dictionary |
Responses
Response samples
- 200
- 400
[- {
- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
]
createEntity
Create a new Entity within an NGSI-LD system
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
object (GeoProperty) | |
object (GeoProperty) | |
object (GeoProperty) | |
id required | string <uri> |
type required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Property (object) or Relationship (object) or GeoProperty (object) |
Responses
Request samples
- Payload
{- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
Response samples
- 400
- 409
- 422
{- "title": "string",
- "detail": "string"
}
retrieveEntityById
Retrieve an specific Entity from an NGSI-LD system. It's possible to specify the Entity attributes to be retrieved by using query parameters
path Parameters
entityId required | string <uri> Entity Id |
query Parameters
attrs | string non-empty Comma separated list of attribute names (properties or relationships) to be retrieved |
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Entity Type |
options | string Enum: "keyValues" "sysAttrs" Options dictionary |
Responses
Response samples
- 200
- 400
- 404
{- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
removeEntityById
Removes an specific Entity from an NGSI-LD system
path Parameters
entityId required | string <uri> Entity Id |
query Parameters
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Entity Type |
Responses
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
appendEntityAttrs
Append new Entity attributes to an existing Entity within an NGSI-LD system
path Parameters
entityId required | string <uri> Entity Id |
query Parameters
options | string Value: "noOverwrite" Indicates that no attribute overwrite shall be performed |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
object (GeoProperty) | |
object (GeoProperty) | |
object (GeoProperty) | |
id | string <uri> |
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Property (object) or Relationship (object) or GeoProperty (object) |
Responses
Request samples
- Payload
{- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
Response samples
- 207
- 400
- 404
{- "updated": [
- "string"
], - "notUpdated": [
- {
- "attributeName": "string",
- "reason": "string"
}
]
}
updateEntityAttrs
Update existing Entity attributes within an NGSI-LD system
path Parameters
entityId required | string <uri> Entity Id |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
object (GeoProperty) | |
object (GeoProperty) | |
object (GeoProperty) | |
id | string <uri> |
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Property (object) or Relationship (object) or GeoProperty (object) |
Responses
Request samples
- Payload
{- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
Response samples
- 207
- 400
- 404
{- "updated": [
- "string"
], - "notUpdated": [
- {
- "attributeName": "string",
- "reason": "string"
}
]
}
partialAttrUpdate
Update existing Entity attributes within an NGSI-LD system
path Parameters
entityId required | string <uri> Entity Id |
attrId required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Attribute Id |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
object (GeoProperty) | |
object (GeoProperty) | |
object (GeoProperty) | |
id | string <uri> |
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Property (object) or Relationship (object) or GeoProperty (object) |
Responses
Request samples
- Payload
{- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
removeEntityAttr
Removes an existing Entity attribute within an NGSI-LD system
path Parameters
entityId required | string <uri> Entity Id |
attrId required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Attribute Id |
Responses
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
queryEntities
Retrieve a set of entities which matches a specific query from an NGSI-LD system
query Parameters
id | string <uri> Comma separated list of URIs to be retrieved |
idPattern | string <regexp> Regular expression that must be matched by Entity ids |
type | string non-empty Comma separated list of Entity type names to be retrieved |
attrs | string non-empty Comma separated list of attribute names (properties or relationships) to be retrieved |
q | string non-empty Query |
string or string (georel) Geo-relationship | |
geometry | string (geometry) Enum: "Point" "MultiPoint" "LineString" "MultiLineString" "Polygon" "MultiPolygon" Geometry |
Array of position (numbers) or Array of positionArray (numbers) or Array of lineString (numbers) or Array of polygon (numbers) (coordinates) Coordinates serialized as a string | |
geoproperty | string non-empty The name of the property that contains the geo-spatial data that will be used to resolve the geoquery |
csf | string non-empty Context Source Filter |
limit | integer >= 1 Pagination limit |
options | string Enum: "keyValues" "sysAttrs" Options dictionary |
Responses
Response samples
- 200
- 400
[- {
- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
]
createEntity
Create a new Entity within an NGSI-LD system
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
object (GeoProperty) | |
object (GeoProperty) | |
object (GeoProperty) | |
id required | string <uri> |
type required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Property (object) or Relationship (object) or GeoProperty (object) |
Responses
Request samples
- Payload
{- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
Response samples
- 400
- 409
- 422
{- "title": "string",
- "detail": "string"
}
retrieveEntityById
Retrieve an specific Entity from an NGSI-LD system. It's possible to specify the Entity attributes to be retrieved by using query parameters
path Parameters
entityId required | string <uri> Entity Id |
query Parameters
attrs | string non-empty Comma separated list of attribute names (properties or relationships) to be retrieved |
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Entity Type |
options | string Enum: "keyValues" "sysAttrs" Options dictionary |
Responses
Response samples
- 200
- 400
- 404
{- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
removeEntityById
Removes an specific Entity from an NGSI-LD system
path Parameters
entityId required | string <uri> Entity Id |
query Parameters
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Entity Type |
Responses
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
appendEntityAttrs
Append new Entity attributes to an existing Entity within an NGSI-LD system
path Parameters
entityId required | string <uri> Entity Id |
query Parameters
options | string Value: "noOverwrite" Indicates that no attribute overwrite shall be performed |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
object (GeoProperty) | |
object (GeoProperty) | |
object (GeoProperty) | |
id | string <uri> |
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Property (object) or Relationship (object) or GeoProperty (object) |
Responses
Request samples
- Payload
{- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
Response samples
- 207
- 400
- 404
{- "updated": [
- "string"
], - "notUpdated": [
- {
- "attributeName": "string",
- "reason": "string"
}
]
}
updateEntityAttrs
Update existing Entity attributes within an NGSI-LD system
path Parameters
entityId required | string <uri> Entity Id |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
object (GeoProperty) | |
object (GeoProperty) | |
object (GeoProperty) | |
id | string <uri> |
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Property (object) or Relationship (object) or GeoProperty (object) |
Responses
Request samples
- Payload
{- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
Response samples
- 207
- 400
- 404
{- "updated": [
- "string"
], - "notUpdated": [
- {
- "attributeName": "string",
- "reason": "string"
}
]
}
partialAttrUpdate
Update existing Entity attributes within an NGSI-LD system
path Parameters
entityId required | string <uri> Entity Id |
attrId required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Attribute Id |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
object (GeoProperty) | |
object (GeoProperty) | |
object (GeoProperty) | |
id | string <uri> |
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Property (object) or Relationship (object) or GeoProperty (object) |
Responses
Request samples
- Payload
{- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
removeEntityAttr
Removes an existing Entity attribute within an NGSI-LD system
path Parameters
entityId required | string <uri> Entity Id |
attrId required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Attribute Id |
Responses
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
batchEntityCreation
Batch Entity creation
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
object (GeoProperty) | |
object (GeoProperty) | |
object (GeoProperty) | |
id required | string <uri> |
type required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Property (object) or Relationship (object) or GeoProperty (object) |
Responses
Request samples
- Payload
[- {
- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
]
Response samples
- 200
- 400
{- "error": [
- {
}
]
}
batchEntityUpdate
Batch Entity update
query Parameters
options | string Value: "noOverwrite" |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
object (GeoProperty) | |
object (GeoProperty) | |
object (GeoProperty) | |
id required | string <uri> |
type required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Property (object) or Relationship (object) or GeoProperty (object) |
Responses
Request samples
- Payload
[- {
- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
]
Response samples
- 200
- 400
{- "error": [
- {
}
]
}
batchEntityUpsert
Batch Entity upsert
query Parameters
options | string Enum: "replace" "update" |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
object (GeoProperty) | |
object (GeoProperty) | |
object (GeoProperty) | |
id required | string <uri> |
type required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Property (object) or Relationship (object) or GeoProperty (object) |
Responses
Request samples
- Payload
[- {
- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
]
Response samples
- 200
- 400
{- "error": [
- {
}
]
}
batchEntityDelete
Batch Entity delete
Request Body schema: application/json;application/ld+jsonrequired
Responses
Request samples
- Payload
Response samples
- 200
- 400
{- "error": [
- {
}
]
}
retrieveSubscriptions
Retrieves the subscriptions available in an NGSI-LD system
query Parameters
limit | integer >= 1 Pagination limit |
Responses
Response samples
- 200
- 400
[- {
- "@context": { },
- "name": "string",
- "description": "string",
- "watchedAttributes": [
- "string"
], - "timeInterval": 0,
- "expires": "2019-08-24T14:15:22Z",
- "isActive": true,
- "throttling": 1,
- "q": "string",
- "geoQ": {
- "georel": "equals",
- "coordinates": [
- 0,
- 0
], - "geometry": "Point"
}, - "csf": "string",
- "type": "Subscription",
- "notification": {
- "attributes": [
- "string"
], - "format": "string",
- "status": "ok",
- "timesSent": 1,
- "lastNotification": "2019-08-24T14:15:22Z",
- "lastFailure": "2019-08-24T14:15:22Z",
- "lastSuccess": "2019-08-24T14:15:22Z"
}, - "status": "active",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
]
createSubscription
Creates a new Subscription within an NGSI-LD system
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
required | Array of objects (EntityInfo) non-empty |
name | string non-empty |
description | string non-empty |
watchedAttributes | Array of strings (Name) non-empty unique [^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?...] |
timeInterval | number >= 0 |
expires | string <date-time> |
isActive | boolean |
throttling | number >= 1 |
q | string |
object (GeoQuery) | |
csf | string |
id required | string <uri> |
type required | string Value: "Subscription" |
required | object (NotificationParams) |
status | string Enum: "active" "paused" "expired" |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
Responses
Request samples
- Payload
{- "@context": { },
- "name": "string",
- "description": "string",
- "watchedAttributes": [
- "string"
], - "timeInterval": 0,
- "expires": "2019-08-24T14:15:22Z",
- "isActive": true,
- "throttling": 1,
- "q": "string",
- "geoQ": {
- "georel": "equals",
- "coordinates": [
- 0,
- 0
], - "geometry": "Point"
}, - "csf": "string",
- "type": "Subscription",
- "notification": {
- "attributes": [
- "string"
], - "format": "string",
- "status": "ok",
- "timesSent": 1,
- "lastNotification": "2019-08-24T14:15:22Z",
- "lastFailure": "2019-08-24T14:15:22Z",
- "lastSuccess": "2019-08-24T14:15:22Z"
}, - "status": "active",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
Response samples
- 400
- 409
{- "title": "string",
- "detail": "string"
}
retrieveSubscriptionById
Retrieves a specific Subscription from an NGSI-LD system
path Parameters
subscriptionId required | string <uri> Subscription Id |
Responses
Response samples
- 200
- 400
- 404
{- "id": "urn:ngsi-ld:Subscription:mySubscription",
- "type": "Subscription",
- "entities": [
- {
- "type": "Vehicle"
}
], - "watchedAttributes": [
- "speed"
], - "q": "speed>50",
- "geoQ": {
- "georel": "near;maxDistance==2000",
- "geometry": "Point",
- "coordinates": [
- -1,
- 100
]
}, - "notification": {
- "attributes": [
- "speed"
], - "format": "keyValues",
},
}
updateSubscription
Updates a specific Subscription within an NGSI-LD system
path Parameters
subscriptionId required | string <uri> Subscription Id |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
Array of objects (EntityInfo) non-empty | |
name | string non-empty |
description | string non-empty |
watchedAttributes | Array of strings (Name) non-empty unique [^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?...] |
timeInterval | number >= 0 |
expires | string <date-time> |
isActive | boolean |
throttling | number >= 1 |
q | string |
object (GeoQuery) | |
csf | string |
Responses
Request samples
- Payload
{- "@context": { },
- "name": "string",
- "description": "string",
- "watchedAttributes": [
- "string"
], - "timeInterval": 0,
- "expires": "2019-08-24T14:15:22Z",
- "isActive": true,
- "throttling": 1,
- "q": "string",
- "geoQ": {
- "georel": "equals",
- "coordinates": [
- 0,
- 0
], - "geometry": "Point"
}, - "csf": "string"
}
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
retrieveSubscriptions
Retrieves the subscriptions available in an NGSI-LD system
query Parameters
limit | integer >= 1 Pagination limit |
Responses
Response samples
- 200
- 400
[- {
- "@context": { },
- "name": "string",
- "description": "string",
- "watchedAttributes": [
- "string"
], - "timeInterval": 0,
- "expires": "2019-08-24T14:15:22Z",
- "isActive": true,
- "throttling": 1,
- "q": "string",
- "geoQ": {
- "georel": "equals",
- "coordinates": [
- 0,
- 0
], - "geometry": "Point"
}, - "csf": "string",
- "type": "Subscription",
- "notification": {
- "attributes": [
- "string"
], - "format": "string",
- "status": "ok",
- "timesSent": 1,
- "lastNotification": "2019-08-24T14:15:22Z",
- "lastFailure": "2019-08-24T14:15:22Z",
- "lastSuccess": "2019-08-24T14:15:22Z"
}, - "status": "active",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
]
createSubscription
Creates a new Subscription within an NGSI-LD system
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
required | Array of objects (EntityInfo) non-empty |
name | string non-empty |
description | string non-empty |
watchedAttributes | Array of strings (Name) non-empty unique [^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?...] |
timeInterval | number >= 0 |
expires | string <date-time> |
isActive | boolean |
throttling | number >= 1 |
q | string |
object (GeoQuery) | |
csf | string |
id required | string <uri> |
type required | string Value: "Subscription" |
required | object (NotificationParams) |
status | string Enum: "active" "paused" "expired" |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
Responses
Request samples
- Payload
{- "@context": { },
- "name": "string",
- "description": "string",
- "watchedAttributes": [
- "string"
], - "timeInterval": 0,
- "expires": "2019-08-24T14:15:22Z",
- "isActive": true,
- "throttling": 1,
- "q": "string",
- "geoQ": {
- "georel": "equals",
- "coordinates": [
- 0,
- 0
], - "geometry": "Point"
}, - "csf": "string",
- "type": "Subscription",
- "notification": {
- "attributes": [
- "string"
], - "format": "string",
- "status": "ok",
- "timesSent": 1,
- "lastNotification": "2019-08-24T14:15:22Z",
- "lastFailure": "2019-08-24T14:15:22Z",
- "lastSuccess": "2019-08-24T14:15:22Z"
}, - "status": "active",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
Response samples
- 400
- 409
{- "title": "string",
- "detail": "string"
}
retrieveSubscriptionById
Retrieves a specific Subscription from an NGSI-LD system
path Parameters
subscriptionId required | string <uri> Subscription Id |
Responses
Response samples
- 200
- 400
- 404
{- "id": "urn:ngsi-ld:Subscription:mySubscription",
- "type": "Subscription",
- "entities": [
- {
- "type": "Vehicle"
}
], - "watchedAttributes": [
- "speed"
], - "q": "speed>50",
- "geoQ": {
- "georel": "near;maxDistance==2000",
- "geometry": "Point",
- "coordinates": [
- -1,
- 100
]
}, - "notification": {
- "attributes": [
- "speed"
], - "format": "keyValues",
},
}
updateSubscription
Updates a specific Subscription within an NGSI-LD system
path Parameters
subscriptionId required | string <uri> Subscription Id |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
Array of objects (EntityInfo) non-empty | |
name | string non-empty |
description | string non-empty |
watchedAttributes | Array of strings (Name) non-empty unique [^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?...] |
timeInterval | number >= 0 |
expires | string <date-time> |
isActive | boolean |
throttling | number >= 1 |
q | string |
object (GeoQuery) | |
csf | string |
Responses
Request samples
- Payload
{- "@context": { },
- "name": "string",
- "description": "string",
- "watchedAttributes": [
- "string"
], - "timeInterval": 0,
- "expires": "2019-08-24T14:15:22Z",
- "isActive": true,
- "throttling": 1,
- "q": "string",
- "geoQ": {
- "georel": "equals",
- "coordinates": [
- 0,
- 0
], - "geometry": "Point"
}, - "csf": "string"
}
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
queryCsources
Retrieve a set of context sources which matches a specific query from an NGSI-LD system
query Parameters
id | string <uri> Comma separated list of URIs to be retrieved |
idPattern | string <regexp> Regular expression that must be matched by Entity ids |
type | string non-empty Comma separated list of Entity type names to be retrieved |
attrs | string non-empty Comma separated list of attribute names (properties or relationships) to be retrieved |
q | string non-empty Query |
string or string (georel) Geo-relationship | |
geometry | string (geometry) Enum: "Point" "MultiPoint" "LineString" "MultiLineString" "Polygon" "MultiPolygon" Geometry |
Array of position (numbers) or Array of positionArray (numbers) or Array of lineString (numbers) or Array of polygon (numbers) (coordinates) Coordinates serialized as a string | |
geoproperty | string non-empty The name of the property that contains the geo-spatial data that will be used to resolve the geoquery |
limit | integer >= 1 Pagination limit |
Responses
Response samples
- 200
- 400
[- {
- "id": "urn:ngsi-ld:ContextSourceRegistration:csr1a3456",
- "type": "ContextSourceRegistration",
- "information": [
- {
- "entities": [
- {
- "id": "urn:ngsi-ld:Vehicle:A456",
- "type": "Vehicle"
}
], - "properties": [
- "brandName",
- "speed"
], - "relationships": [
- "isParked"
]
}, - {
- "entities": [
- {
- "idPattern": ".*downtown$",
- "type": "OffStreetParking"
}, - {
- "idPattern": ".*47$",
- "type": "OffStreetParking"
}
], - "properties": [
- "availableSpotNumber",
- "totalSpotNumber"
], - "relationships": [
- "isNextToBuilding"
]
}
], - "location": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 100,
- 0
], - [
- 101,
- 0
], - [
- 101,
- 1
], - [
- 100,
- 1
], - [
- 100,
- 0
]
]
]
}, - "timestamp": [
- {
- "start": "2017-11-29T14:53:15Z"
}
],
}
]
registerCsource
Registers a new context source within an NGSI-LD system
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
required | Array of objects (RegistrationInfo) non-empty |
object (TimeInterval) | |
object (TimeInterval) | |
Point (object) or MultiPoint (object) or Polygon (object) or LineString (object) or MultiLineString (object) or MultiPolygon (object) (Geometry) Avalid GeoJSON geometry object | |
Point (object) or MultiPoint (object) or Polygon (object) or LineString (object) or MultiLineString (object) or MultiPolygon (object) (Geometry) Avalid GeoJSON geometry object | |
Point (object) or MultiPoint (object) or Polygon (object) or LineString (object) or MultiLineString (object) or MultiPolygon (object) (Geometry) Avalid GeoJSON geometry object | |
expires | string <date-time> |
name | string non-empty |
description | string non-empty |
endpoint required | string <uri> |
id required | string <uri> |
type required | string Value: "ContextSourceRegistration" |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
property name* additional property | any |
Responses
Request samples
- Payload
{- "@context": { },
- "information": [
- {
- "properties": [
- "string"
], - "relationships": [
- "string"
]
}
], - "observationInterval": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "managementInterval": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "location": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observationSpace": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "operationSpace": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "expires": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "type": "ContextSourceRegistration",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
Response samples
- 400
- 409
{- "title": "string",
- "detail": "string"
}
retrieveCsource
Retrieves a specific context source registration from an NGSI-LD system
path Parameters
registrationId required | string <uri> Registration Id |
Responses
Response samples
- 200
- 400
- 404
{- "@context": { },
- "information": [
- {
- "properties": [
- "string"
], - "relationships": [
- "string"
]
}
], - "observationInterval": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "managementInterval": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "location": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observationSpace": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "operationSpace": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "expires": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "type": "ContextSourceRegistration",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
retrieveCSourceSubscriptions
Retrieves the context source discovery subscriptions available in an NGSI-LD system
query Parameters
limit | integer >= 1 Pagination limit |
Responses
Response samples
- 200
- 400
[- {
- "@context": { },
- "name": "string",
- "description": "string",
- "watchedAttributes": [
- "string"
], - "timeInterval": 0,
- "expires": "2019-08-24T14:15:22Z",
- "isActive": true,
- "throttling": 1,
- "q": "string",
- "geoQ": {
- "georel": "equals",
- "coordinates": [
- 0,
- 0
], - "geometry": "Point"
}, - "csf": "string",
- "type": "Subscription",
- "notification": {
- "attributes": [
- "string"
], - "format": "string",
- "status": "ok",
- "timesSent": 1,
- "lastNotification": "2019-08-24T14:15:22Z",
- "lastFailure": "2019-08-24T14:15:22Z",
- "lastSuccess": "2019-08-24T14:15:22Z"
}, - "status": "active",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
]
createCSourceSubscription
Creates a context source discovery Subscription within an NGSI-LD system
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
required | Array of objects (EntityInfo) non-empty |
name | string non-empty |
description | string non-empty |
watchedAttributes | Array of strings (Name) non-empty unique [^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?...] |
timeInterval | number >= 0 |
expires | string <date-time> |
isActive | boolean |
throttling | number >= 1 |
q | string |
object (GeoQuery) | |
csf | string |
id required | string <uri> |
type required | string Value: "Subscription" |
required | object (NotificationParams) |
status | string Enum: "active" "paused" "expired" |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
Responses
Request samples
- Payload
{- "@context": { },
- "name": "string",
- "description": "string",
- "watchedAttributes": [
- "string"
], - "timeInterval": 0,
- "expires": "2019-08-24T14:15:22Z",
- "isActive": true,
- "throttling": 1,
- "q": "string",
- "geoQ": {
- "georel": "equals",
- "coordinates": [
- 0,
- 0
], - "geometry": "Point"
}, - "csf": "string",
- "type": "Subscription",
- "notification": {
- "attributes": [
- "string"
], - "format": "string",
- "status": "ok",
- "timesSent": 1,
- "lastNotification": "2019-08-24T14:15:22Z",
- "lastFailure": "2019-08-24T14:15:22Z",
- "lastSuccess": "2019-08-24T14:15:22Z"
}, - "status": "active",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
Response samples
- 400
- 409
{- "title": "string",
- "detail": "string"
}
retrieveCSourceSubscriptionsById
Retrieves a specific Subscription from an NGSI-LD system
path Parameters
subscriptionId required | string <uri> Subscription Id |
Responses
Response samples
- 200
- 400
- 404
{- "@context": { },
- "name": "string",
- "description": "string",
- "watchedAttributes": [
- "string"
], - "timeInterval": 0,
- "expires": "2019-08-24T14:15:22Z",
- "isActive": true,
- "throttling": 1,
- "q": "string",
- "geoQ": {
- "georel": "equals",
- "coordinates": [
- 0,
- 0
], - "geometry": "Point"
}, - "csf": "string",
- "type": "Subscription",
- "notification": {
- "attributes": [
- "string"
], - "format": "string",
- "status": "ok",
- "timesSent": 1,
- "lastNotification": "2019-08-24T14:15:22Z",
- "lastFailure": "2019-08-24T14:15:22Z",
- "lastSuccess": "2019-08-24T14:15:22Z"
}, - "status": "active",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
updateCSourceSubscription
Updates a specific context source discovery Subscription within an NGSI-LD system
path Parameters
subscriptionId required | string <uri> Subscription Id |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
Array of objects (EntityInfo) non-empty | |
name | string non-empty |
description | string non-empty |
watchedAttributes | Array of strings (Name) non-empty unique [^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?...] |
timeInterval | number >= 0 |
expires | string <date-time> |
isActive | boolean |
throttling | number >= 1 |
q | string |
object (GeoQuery) | |
csf | string |
Responses
Request samples
- Payload
{- "@context": { },
- "name": "string",
- "description": "string",
- "watchedAttributes": [
- "string"
], - "timeInterval": 0,
- "expires": "2019-08-24T14:15:22Z",
- "isActive": true,
- "throttling": 1,
- "q": "string",
- "geoQ": {
- "georel": "equals",
- "coordinates": [
- 0,
- 0
], - "geometry": "Point"
}, - "csf": "string"
}
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
queryCsources
Retrieve a set of context sources which matches a specific query from an NGSI-LD system
query Parameters
id | string <uri> Comma separated list of URIs to be retrieved |
idPattern | string <regexp> Regular expression that must be matched by Entity ids |
type | string non-empty Comma separated list of Entity type names to be retrieved |
attrs | string non-empty Comma separated list of attribute names (properties or relationships) to be retrieved |
q | string non-empty Query |
string or string (georel) Geo-relationship | |
geometry | string (geometry) Enum: "Point" "MultiPoint" "LineString" "MultiLineString" "Polygon" "MultiPolygon" Geometry |
Array of position (numbers) or Array of positionArray (numbers) or Array of lineString (numbers) or Array of polygon (numbers) (coordinates) Coordinates serialized as a string | |
geoproperty | string non-empty The name of the property that contains the geo-spatial data that will be used to resolve the geoquery |
limit | integer >= 1 Pagination limit |
Responses
Response samples
- 200
- 400
[- {
- "id": "urn:ngsi-ld:ContextSourceRegistration:csr1a3456",
- "type": "ContextSourceRegistration",
- "information": [
- {
- "entities": [
- {
- "id": "urn:ngsi-ld:Vehicle:A456",
- "type": "Vehicle"
}
], - "properties": [
- "brandName",
- "speed"
], - "relationships": [
- "isParked"
]
}, - {
- "entities": [
- {
- "idPattern": ".*downtown$",
- "type": "OffStreetParking"
}, - {
- "idPattern": ".*47$",
- "type": "OffStreetParking"
}
], - "properties": [
- "availableSpotNumber",
- "totalSpotNumber"
], - "relationships": [
- "isNextToBuilding"
]
}
], - "location": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 100,
- 0
], - [
- 101,
- 0
], - [
- 101,
- 1
], - [
- 100,
- 1
], - [
- 100,
- 0
]
]
]
}, - "timestamp": [
- {
- "start": "2017-11-29T14:53:15Z"
}
],
}
]
registerCsource
Registers a new context source within an NGSI-LD system
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
required | Array of objects (RegistrationInfo) non-empty |
object (TimeInterval) | |
object (TimeInterval) | |
Point (object) or MultiPoint (object) or Polygon (object) or LineString (object) or MultiLineString (object) or MultiPolygon (object) (Geometry) Avalid GeoJSON geometry object | |
Point (object) or MultiPoint (object) or Polygon (object) or LineString (object) or MultiLineString (object) or MultiPolygon (object) (Geometry) Avalid GeoJSON geometry object | |
Point (object) or MultiPoint (object) or Polygon (object) or LineString (object) or MultiLineString (object) or MultiPolygon (object) (Geometry) Avalid GeoJSON geometry object | |
expires | string <date-time> |
name | string non-empty |
description | string non-empty |
endpoint required | string <uri> |
id required | string <uri> |
type required | string Value: "ContextSourceRegistration" |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
property name* additional property | any |
Responses
Request samples
- Payload
{- "@context": { },
- "information": [
- {
- "properties": [
- "string"
], - "relationships": [
- "string"
]
}
], - "observationInterval": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "managementInterval": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "location": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observationSpace": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "operationSpace": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "expires": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "type": "ContextSourceRegistration",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
Response samples
- 400
- 409
{- "title": "string",
- "detail": "string"
}
retrieveCsource
Retrieves a specific context source registration from an NGSI-LD system
path Parameters
registrationId required | string <uri> Registration Id |
Responses
Response samples
- 200
- 400
- 404
{- "@context": { },
- "information": [
- {
- "properties": [
- "string"
], - "relationships": [
- "string"
]
}
], - "observationInterval": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "managementInterval": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "location": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observationSpace": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "operationSpace": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "expires": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "type": "ContextSourceRegistration",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
retrieveCSourceSubscriptions
Retrieves the context source discovery subscriptions available in an NGSI-LD system
query Parameters
limit | integer >= 1 Pagination limit |
Responses
Response samples
- 200
- 400
[- {
- "@context": { },
- "name": "string",
- "description": "string",
- "watchedAttributes": [
- "string"
], - "timeInterval": 0,
- "expires": "2019-08-24T14:15:22Z",
- "isActive": true,
- "throttling": 1,
- "q": "string",
- "geoQ": {
- "georel": "equals",
- "coordinates": [
- 0,
- 0
], - "geometry": "Point"
}, - "csf": "string",
- "type": "Subscription",
- "notification": {
- "attributes": [
- "string"
], - "format": "string",
- "status": "ok",
- "timesSent": 1,
- "lastNotification": "2019-08-24T14:15:22Z",
- "lastFailure": "2019-08-24T14:15:22Z",
- "lastSuccess": "2019-08-24T14:15:22Z"
}, - "status": "active",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
]
createCSourceSubscription
Creates a context source discovery Subscription within an NGSI-LD system
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
required | Array of objects (EntityInfo) non-empty |
name | string non-empty |
description | string non-empty |
watchedAttributes | Array of strings (Name) non-empty unique [^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?...] |
timeInterval | number >= 0 |
expires | string <date-time> |
isActive | boolean |
throttling | number >= 1 |
q | string |
object (GeoQuery) | |
csf | string |
id required | string <uri> |
type required | string Value: "Subscription" |
required | object (NotificationParams) |
status | string Enum: "active" "paused" "expired" |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
Responses
Request samples
- Payload
{- "@context": { },
- "name": "string",
- "description": "string",
- "watchedAttributes": [
- "string"
], - "timeInterval": 0,
- "expires": "2019-08-24T14:15:22Z",
- "isActive": true,
- "throttling": 1,
- "q": "string",
- "geoQ": {
- "georel": "equals",
- "coordinates": [
- 0,
- 0
], - "geometry": "Point"
}, - "csf": "string",
- "type": "Subscription",
- "notification": {
- "attributes": [
- "string"
], - "format": "string",
- "status": "ok",
- "timesSent": 1,
- "lastNotification": "2019-08-24T14:15:22Z",
- "lastFailure": "2019-08-24T14:15:22Z",
- "lastSuccess": "2019-08-24T14:15:22Z"
}, - "status": "active",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
Response samples
- 400
- 409
{- "title": "string",
- "detail": "string"
}
retrieveCSourceSubscriptionsById
Retrieves a specific Subscription from an NGSI-LD system
path Parameters
subscriptionId required | string <uri> Subscription Id |
Responses
Response samples
- 200
- 400
- 404
{- "@context": { },
- "name": "string",
- "description": "string",
- "watchedAttributes": [
- "string"
], - "timeInterval": 0,
- "expires": "2019-08-24T14:15:22Z",
- "isActive": true,
- "throttling": 1,
- "q": "string",
- "geoQ": {
- "georel": "equals",
- "coordinates": [
- 0,
- 0
], - "geometry": "Point"
}, - "csf": "string",
- "type": "Subscription",
- "notification": {
- "attributes": [
- "string"
], - "format": "string",
- "status": "ok",
- "timesSent": 1,
- "lastNotification": "2019-08-24T14:15:22Z",
- "lastFailure": "2019-08-24T14:15:22Z",
- "lastSuccess": "2019-08-24T14:15:22Z"
}, - "status": "active",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
updateCSourceSubscription
Updates a specific context source discovery Subscription within an NGSI-LD system
path Parameters
subscriptionId required | string <uri> Subscription Id |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
Array of objects (EntityInfo) non-empty | |
name | string non-empty |
description | string non-empty |
watchedAttributes | Array of strings (Name) non-empty unique [^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?...] |
timeInterval | number >= 0 |
expires | string <date-time> |
isActive | boolean |
throttling | number >= 1 |
q | string |
object (GeoQuery) | |
csf | string |
Responses
Request samples
- Payload
{- "@context": { },
- "name": "string",
- "description": "string",
- "watchedAttributes": [
- "string"
], - "timeInterval": 0,
- "expires": "2019-08-24T14:15:22Z",
- "isActive": true,
- "throttling": 1,
- "q": "string",
- "geoQ": {
- "georel": "equals",
- "coordinates": [
- 0,
- 0
], - "geometry": "Point"
}, - "csf": "string"
}
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
batchEntityCreation
Batch Entity creation
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
object (GeoProperty) | |
object (GeoProperty) | |
object (GeoProperty) | |
id required | string <uri> |
type required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Property (object) or Relationship (object) or GeoProperty (object) |
Responses
Request samples
- Payload
[- {
- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
]
Response samples
- 200
- 400
{- "error": [
- {
}
]
}
batchEntityUpdate
Batch Entity update
query Parameters
options | string Value: "noOverwrite" |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
object (GeoProperty) | |
object (GeoProperty) | |
object (GeoProperty) | |
id required | string <uri> |
type required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Property (object) or Relationship (object) or GeoProperty (object) |
Responses
Request samples
- Payload
[- {
- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
]
Response samples
- 200
- 400
{- "error": [
- {
}
]
}
batchEntityUpsert
Batch Entity upsert
query Parameters
options | string Enum: "replace" "update" |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
object (GeoProperty) | |
object (GeoProperty) | |
object (GeoProperty) | |
id required | string <uri> |
type required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Property (object) or Relationship (object) or GeoProperty (object) |
Responses
Request samples
- Payload
[- {
- "@context": { },
- "location": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "observationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "operationSpace": {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}, - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
]
Response samples
- 200
- 400
{- "error": [
- {
}
]
}
batchEntityDelete
Batch Entity delete
Request Body schema: application/json;application/ld+jsonrequired
Responses
Request samples
- Payload
Response samples
- 200
- 400
{- "error": [
- {
}
]
}
queryTemporalEntities
Query temporal evolution of Entities from an NGSI-LD system
query Parameters
id | string <uri> Comma separated list of URIs to be retrieved |
idPattern | string <regexp> Regular expression that must be matched by Entity ids |
type | string non-empty Comma separated list of Entity type names to be retrieved |
attrs | string non-empty Comma separated list of attribute names (properties or relationships) to be retrieved |
q | string non-empty Query |
string or string (georel) Geo-relationship | |
geometry | string (geometry) Enum: "Point" "MultiPoint" "LineString" "MultiLineString" "Polygon" "MultiPolygon" Geometry |
Array of position (numbers) or Array of positionArray (numbers) or Array of lineString (numbers) or Array of polygon (numbers) (coordinates) Coordinates serialized as a string | |
geoproperty | string non-empty The name of the property that contains the geo-spatial data that will be used to resolve the geoquery |
timerel | string (timerel) Enum: "before" "after" "between" Time relationship |
timeproperty | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... The name of the property that contains the temporal data that will be used to resolve the temporal query |
time | string <date-time> start time for temporal query |
endTime | string <date-time> end time for temporal query |
csf | string non-empty Context Source Filter |
limit | integer >= 1 Pagination limit |
options | string Enum: "temporalValues" "sysAttrs" Options dictionary |
lastN | integer >= 1 Only retrieve last N instances |
Responses
Response samples
- 200
- 400
[- {
- "@context": { },
- "location": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "observationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "operationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
], - "property2": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
]
}
]
createUpdateEntityTemporal
Create or update temporal representation of an Entity within an NGSI-LD system
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
Array of objects (GeoProperty) non-empty | |
Array of objects (GeoProperty) non-empty | |
Array of objects (GeoProperty) non-empty | |
id required | string <uri> |
type required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Array of Property (objects) or Array of Relationship (objects) or Array of GeoProperty (objects) |
Responses
Request samples
- Payload
{- "@context": { },
- "location": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "observationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "operationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
], - "property2": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
]
}
Response samples
- 400
- 409
- 422
{- "title": "string",
- "detail": "string"
}
retrieveEntityTemporalById
Retrieve the temporal representation of an specific Entity from an NGSI-LD system. It's possible to specify the Entity attributes to be retrieved by using query parameters
path Parameters
entityId required | string <uri> Entity Id |
query Parameters
attrs | string non-empty Comma separated list of attribute names (properties or relationships) to be retrieved |
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Entity Type |
options | string Enum: "temporalValues" "sysAttrs" Options dictionary |
timerel | string (timerel) Enum: "before" "after" "between" Time relationship |
timeproperty | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... The name of the property that contains the temporal data that will be used to resolve the temporal query |
time | string <date-time> start time for temporal query |
endTime | string <date-time> end time for temporal query |
lastN | integer >= 1 Only retrieve last N instances |
Responses
Response samples
- 200
- 400
- 404
{- "@context": { },
- "location": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "observationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "operationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
], - "property2": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
]
}
removeEntityTemporalById
Removes the temporal representation of an Entity from an NGSI-LD system
path Parameters
entityId required | string <uri> Entity Id |
query Parameters
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Entity Type |
Responses
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
addTemporalEntityAttrs
Add new attributes to an existing Temporal Entity within an NGSI-LD system
path Parameters
entityId required | string <uri> Entity Id |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
Array of objects (GeoProperty) non-empty | |
Array of objects (GeoProperty) non-empty | |
Array of objects (GeoProperty) non-empty | |
id | string <uri> |
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Array of Property (objects) or Array of Relationship (objects) or Array of GeoProperty (objects) |
Responses
Request samples
- Payload
{- "@context": { },
- "location": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "observationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "operationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
], - "property2": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
]
}
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
removeEntityTemporalAttr
Attribute from Temporal Representation of Entity deletion
path Parameters
entityId required | string <uri> Entity Id |
attrId required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Attribute Id |
Responses
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
modifyEntityTemporalAttrInstance
Allows modifying a specific Attribute (Property or Relationship) instance, identified by its instanceId, of a Temporal Representation of an Entity.
path Parameters
entityId required | string <uri> Entity Id |
attrId required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Attribute Id |
instanceId required | string <uri> Instance Id |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
Array of objects (GeoProperty) non-empty | |
Array of objects (GeoProperty) non-empty | |
Array of objects (GeoProperty) non-empty | |
id | string <uri> |
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Array of Property (objects) or Array of Relationship (objects) or Array of GeoProperty (objects) |
Responses
Request samples
- Payload
{- "@context": { },
- "location": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "observationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "operationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
], - "property2": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
]
}
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
removeEntityTemporalAttrInstance
Attribute Instance deletion by instance id.
path Parameters
entityId required | string <uri> Entity Id |
attrId required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Attribute Id |
instanceId required | string <uri> Instance Id |
Responses
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
queryTemporalEntities
Query temporal evolution of Entities from an NGSI-LD system
query Parameters
id | string <uri> Comma separated list of URIs to be retrieved |
idPattern | string <regexp> Regular expression that must be matched by Entity ids |
type | string non-empty Comma separated list of Entity type names to be retrieved |
attrs | string non-empty Comma separated list of attribute names (properties or relationships) to be retrieved |
q | string non-empty Query |
string or string (georel) Geo-relationship | |
geometry | string (geometry) Enum: "Point" "MultiPoint" "LineString" "MultiLineString" "Polygon" "MultiPolygon" Geometry |
Array of position (numbers) or Array of positionArray (numbers) or Array of lineString (numbers) or Array of polygon (numbers) (coordinates) Coordinates serialized as a string | |
geoproperty | string non-empty The name of the property that contains the geo-spatial data that will be used to resolve the geoquery |
timerel | string (timerel) Enum: "before" "after" "between" Time relationship |
timeproperty | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... The name of the property that contains the temporal data that will be used to resolve the temporal query |
time | string <date-time> start time for temporal query |
endTime | string <date-time> end time for temporal query |
csf | string non-empty Context Source Filter |
limit | integer >= 1 Pagination limit |
options | string Enum: "temporalValues" "sysAttrs" Options dictionary |
lastN | integer >= 1 Only retrieve last N instances |
Responses
Response samples
- 200
- 400
[- {
- "@context": { },
- "location": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "observationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "operationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
], - "property2": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
]
}
]
createUpdateEntityTemporal
Create or update temporal representation of an Entity within an NGSI-LD system
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
Array of objects (GeoProperty) non-empty | |
Array of objects (GeoProperty) non-empty | |
Array of objects (GeoProperty) non-empty | |
id required | string <uri> |
type required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Array of Property (objects) or Array of Relationship (objects) or Array of GeoProperty (objects) |
Responses
Request samples
- Payload
{- "@context": { },
- "location": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "observationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "operationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
], - "property2": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
]
}
Response samples
- 400
- 409
- 422
{- "title": "string",
- "detail": "string"
}
retrieveEntityTemporalById
Retrieve the temporal representation of an specific Entity from an NGSI-LD system. It's possible to specify the Entity attributes to be retrieved by using query parameters
path Parameters
entityId required | string <uri> Entity Id |
query Parameters
attrs | string non-empty Comma separated list of attribute names (properties or relationships) to be retrieved |
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Entity Type |
options | string Enum: "temporalValues" "sysAttrs" Options dictionary |
timerel | string (timerel) Enum: "before" "after" "between" Time relationship |
timeproperty | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... The name of the property that contains the temporal data that will be used to resolve the temporal query |
time | string <date-time> start time for temporal query |
endTime | string <date-time> end time for temporal query |
lastN | integer >= 1 Only retrieve last N instances |
Responses
Response samples
- 200
- 400
- 404
{- "@context": { },
- "location": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "observationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "operationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
], - "property2": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
]
}
removeEntityTemporalById
Removes the temporal representation of an Entity from an NGSI-LD system
path Parameters
entityId required | string <uri> Entity Id |
query Parameters
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Entity Type |
Responses
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
addTemporalEntityAttrs
Add new attributes to an existing Temporal Entity within an NGSI-LD system
path Parameters
entityId required | string <uri> Entity Id |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
Array of objects (GeoProperty) non-empty | |
Array of objects (GeoProperty) non-empty | |
Array of objects (GeoProperty) non-empty | |
id | string <uri> |
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Array of Property (objects) or Array of Relationship (objects) or Array of GeoProperty (objects) |
Responses
Request samples
- Payload
{- "@context": { },
- "location": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "observationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "operationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
], - "property2": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
]
}
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
removeEntityTemporalAttr
Attribute from Temporal Representation of Entity deletion
path Parameters
entityId required | string <uri> Entity Id |
attrId required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Attribute Id |
Responses
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
modifyEntityTemporalAttrInstance
Allows modifying a specific Attribute (Property or Relationship) instance, identified by its instanceId, of a Temporal Representation of an Entity.
path Parameters
entityId required | string <uri> Entity Id |
attrId required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Attribute Id |
instanceId required | string <uri> Instance Id |
Request Body schema: application/json;application/ld+jsonrequired
object or string or (Array of strings or objects) (LdContext) | |
Array of objects (GeoProperty) non-empty | |
Array of objects (GeoProperty) non-empty | |
Array of objects (GeoProperty) non-empty | |
id | string <uri> |
type | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... NGSI-LD Name |
createdAt | string <date-time> (createdAt) |
modifiedAt | string <date-time> (modifiedAt) |
additional property | Array of Property (objects) or Array of Relationship (objects) or Array of GeoProperty (objects) |
Responses
Request samples
- Payload
{- "@context": { },
- "location": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "observationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "operationSpace": [
- {
- "type": "GeoProperty",
- "value": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}, - "property2": {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
}
], - "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
], - "property2": [
- {
- "type": "Property",
- "value": { },
- "observedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "property1": { },
- "property2": { }
}
]
}
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}
removeEntityTemporalAttrInstance
Attribute Instance deletion by instance id.
path Parameters
entityId required | string <uri> Entity Id |
attrId required | string (Name) non-empty ^((\d|[a-zA-Z]|_)+(:(\d|[a-zA-Z]|_)+)?(#\d+)?... Attribute Id |
instanceId required | string <uri> Instance Id |
Responses
Response samples
- 400
- 404
{- "title": "string",
- "detail": "string"
}