curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/types/subtypes' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"subtype": "philosopher",
"supertype": "person"
}'
Register a subtype relationship
Required scope: write
POST
/
api
/
v1
/
types
/
subtypes
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/types/subtypes' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"subtype": "philosopher",
"supertype": "person"
}'
Required scope:
write
Request body
RegisterSubtypeRequest
string
required
The subtype
string
required
The supertype
Response
No response body. Subtype relationship registered.Status codes
| Code | Meaning |
|---|---|
201 | Subtype relationship registered |
400 | Invalid subtype definition |
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/types/subtypes' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"subtype": "philosopher",
"supertype": "person"
}'
Last modified on August 31, 2026