curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/triples/batch' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"triples": [
{
"confidence": 1,
"object_id": "string",
"predicate": "string",
"subject_id": "string",
"valid_from": "string",
"valid_to": "string"
}
]
}'
{
"created": 1,
"errors": [
"string"
],
"failed": 1,
"triples": [
{
"confidence": 1,
"object": "string",
"object_name": "string",
"predicate": "string",
"subject": "string",
"subject_name": "string",
"valid_from": "string",
"valid_to": "string"
}
]
}
Batch create triples
Batch create triples. Required scope: write
POST
/
api
/
v1
/
triples
/
batch
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/triples/batch' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"triples": [
{
"confidence": 1,
"object_id": "string",
"predicate": "string",
"subject_id": "string",
"valid_from": "string",
"valid_to": "string"
}
]
}'
{
"created": 1,
"errors": [
"string"
],
"failed": 1,
"triples": [
{
"confidence": 1,
"object": "string",
"object_name": "string",
"predicate": "string",
"subject": "string",
"subject_name": "string",
"valid_from": "string",
"valid_to": "string"
}
]
}
Batch create triples.
Required scope:
write
Request body
BatchCreateTriplesRequest
CreateTripleRequest[]
required
Response
BatchCreateTriplesResponse
integer
required
string[]
required
integer
required
TripleResponse[]
required
Status codes
| Code | Meaning |
|---|---|
200 | Per-item results; failures reported individually |
400 | Batch exceeds max_batch_size |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/triples/batch' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"triples": [
{
"confidence": 1,
"object_id": "string",
"predicate": "string",
"subject_id": "string",
"valid_from": "string",
"valid_to": "string"
}
]
}'
{
"created": 1,
"errors": [
"string"
],
"failed": 1,
"triples": [
{
"confidence": 1,
"object": "string",
"object_name": "string",
"predicate": "string",
"subject": "string",
"subject_name": "string",
"valid_from": "string",
"valid_to": "string"
}
]
}