🤖NPCs
API utilized for our AI NPCs to be used in your applications.
NPCs
get
Responses
200
Success
get
/npcGET /npc HTTP/1.1
Host:
Accept: */*
200
Success
[
{
"id": 1,
"accountId": 1,
"name": "text",
"game": "text",
"npcRole": "text",
"background": "text",
"additionalFeatures": "text",
"actions": [
{
"id": 1,
"npcId": 1,
"name": "text",
"instruction": "text",
"npc": {
"id": 1,
"accountId": 1,
"name": "text",
"game": "text",
"npcRole": "text",
"background": "text",
"additionalFeatures": "text",
"actions": [
"[Circular Reference]"
],
"knowledge": [
"[Circular Reference]"
]
}
}
],
"knowledge": [
{
"id": 1,
"npcId": 1,
"knowledgeId": 1,
"npc": {
"id": 1,
"accountId": 1,
"name": "text",
"game": "text",
"npcRole": "text",
"background": "text",
"additionalFeatures": "text",
"actions": [
{
"id": 1,
"npcId": 1,
"name": "text",
"instruction": "text",
"npc": {
"id": 1,
"accountId": 1,
"name": "text",
"game": "text",
"npcRole": "text",
"background": "text",
"additionalFeatures": "text",
"actions": [
"[Circular Reference]"
],
"knowledge": [
"[Circular Reference]"
]
}
}
],
"knowledge": [
"[Circular Reference]"
]
},
"knowledge": {
"id": 1,
"topic": "text",
"body": "text"
}
}
]
}
]post
Body
namestring | nullableOptional
Responses
200
Success
post
/npcPOST /npc HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}200
Success
{
"id": 1,
"accountId": 1,
"name": "text",
"game": "text",
"npcRole": "text",
"background": "text",
"additionalFeatures": "text",
"actions": [
{
"id": 1,
"npcId": 1,
"name": "text",
"instruction": "text",
"npc": {
"id": 1,
"accountId": 1,
"name": "text",
"game": "text",
"npcRole": "text",
"background": "text",
"additionalFeatures": "text",
"actions": [
{
"id": 1,
"npcId": 1,
"name": "text",
"instruction": "text",
"npc": "[Circular Reference]"
}
],
"knowledge": [
{
"id": 1,
"npcId": 1,
"knowledgeId": 1,
"npc": "[Circular Reference]",
"knowledge": {
"id": 1,
"topic": "text",
"body": "text"
}
}
]
}
}
],
"knowledge": [
{
"id": 1,
"npcId": 1,
"knowledgeId": 1,
"npc": "[Circular Reference]",
"knowledge": {
"id": 1,
"topic": "text",
"body": "text"
}
}
]
}get
Path parameters
idinteger · int32Required
Responses
200
Success
get
/npc/{id}GET /npc/{id} HTTP/1.1
Host:
Accept: */*
200
Success
{
"id": 1,
"accountId": 1,
"name": "text",
"game": "text",
"npcRole": "text",
"background": "text",
"additionalFeatures": "text",
"actions": [
{
"id": 1,
"npcId": 1,
"name": "text",
"instruction": "text",
"npc": {
"id": 1,
"accountId": 1,
"name": "text",
"game": "text",
"npcRole": "text",
"background": "text",
"additionalFeatures": "text",
"actions": [
{
"id": 1,
"npcId": 1,
"name": "text",
"instruction": "text",
"npc": "[Circular Reference]"
}
],
"knowledge": [
{
"id": 1,
"npcId": 1,
"knowledgeId": 1,
"npc": "[Circular Reference]",
"knowledge": {
"id": 1,
"topic": "text",
"body": "text"
}
}
]
}
}
],
"knowledge": [
{
"id": 1,
"npcId": 1,
"knowledgeId": 1,
"npc": "[Circular Reference]",
"knowledge": {
"id": 1,
"topic": "text",
"body": "text"
}
}
]
}put
Path parameters
idinteger · int32Required
Body
idinteger · int32Optional
accountIdinteger · int32Optional
namestring | nullableOptional
gamestring | nullableOptional
npcRolestring | nullableOptional
backgroundstring | nullableOptional
additionalFeaturesstring | nullableOptional
Responses
200
Success
No content
put
/npc/{id}PUT /npc/{id} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 654
{
"id": 1,
"accountId": 1,
"name": "text",
"game": "text",
"npcRole": "text",
"background": "text",
"additionalFeatures": "text",
"actions": [
{
"id": 1,
"npcId": 1,
"name": "text",
"instruction": "text",
"npc": {
"id": 1,
"accountId": 1,
"name": "text",
"game": "text",
"npcRole": "text",
"background": "text",
"additionalFeatures": "text",
"actions": [
{
"id": 1,
"npcId": 1,
"name": "text",
"instruction": "text",
"npc": "[Circular Reference]"
}
],
"knowledge": [
{
"id": 1,
"npcId": 1,
"knowledgeId": 1,
"npc": "[Circular Reference]",
"knowledge": {
"id": 1,
"topic": "text",
"body": "text"
}
}
]
}
}
],
"knowledge": [
{
"id": 1,
"npcId": 1,
"knowledgeId": 1,
"npc": "[Circular Reference]",
"knowledge": {
"id": 1,
"topic": "text",
"body": "text"
}
}
]
}200
Success
No content
delete
Path parameters
idstring · uuidRequired
Responses
200
Success
delete
/npc/{id}DELETE /npc/{id} HTTP/1.1
Host:
Accept: */*
200
Success
{
"id": 1,
"accountId": 1,
"name": "text",
"game": "text",
"npcRole": "text",
"background": "text",
"additionalFeatures": "text",
"actions": [
{
"id": 1,
"npcId": 1,
"name": "text",
"instruction": "text",
"npc": {
"id": 1,
"accountId": 1,
"name": "text",
"game": "text",
"npcRole": "text",
"background": "text",
"additionalFeatures": "text",
"actions": [
{
"id": 1,
"npcId": 1,
"name": "text",
"instruction": "text",
"npc": "[Circular Reference]"
}
],
"knowledge": [
{
"id": 1,
"npcId": 1,
"knowledgeId": 1,
"npc": "[Circular Reference]",
"knowledge": {
"id": 1,
"topic": "text",
"body": "text"
}
}
]
}
}
],
"knowledge": [
{
"id": 1,
"npcId": 1,
"knowledgeId": 1,
"npc": "[Circular Reference]",
"knowledge": {
"id": 1,
"topic": "text",
"body": "text"
}
}
]
}Last updated