Download OpenAPI specification:
Kryton server API
| expiresAt | string <date-time> ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[... |
{- "expiresAt": "2019-08-24T14:15:22Z"
}{- "code": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdById": "string",
- "expiresAt": "2019-08-24T14:15:22Z",
- "id": "string",
- "usedById": "string"
}| window | string Default: "24h" Enum: "24h" "7d" "30d" |
{- "bytes_in": 9007199254740991,
- "bytes_out": 9007199254740991,
- "daily": [
- {
- "bytes_in": 9007199254740991,
- "bytes_out": 9007199254740991,
- "date": "string",
- "requests": 9007199254740991
}
], - "requests": 9007199254740991,
- "since": -9007199254740991,
- "window": "24h"
}| id required | string |
| disabled | boolean |
| role | string Enum: "user" "admin" |
{- "disabled": true,
- "role": "user"
}{- "createdAt": "2019-08-24T14:15:22Z",
- "disabled": true,
- "email": "string",
- "id": "string",
- "name": "string",
- "role": "string"
}| id required | string |
| newPassword required | string [ 8 .. 72 ] characters |
{- "newPassword": "stringst"
}{- "ok": true
}| key required | string |
| value required | string |
{- "value": "string"
}{- "key": "string",
- "message": "string",
- "value": "string"
}| agentId | string non-empty |
| expiresAt | string <date-time> ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[... |
| name required | string [ 1 .. 100 ] characters |
| scope required | string Enum: "read-only" "read-write" |
{- "agentId": "string",
- "expiresAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "scope": "read-only"
}{- "agentId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z",
- "id": "string",
- "key": "string",
- "keyPrefix": "string",
- "name": "string",
- "scope": "string"
}object | |
| name required | string [ 1 .. 200 ] characters |
{- "content": {
- "edges": [
- null
], - "nodes": [
- null
], - "property1": null,
- "property2": null
}, - "name": "string"
}{- "message": "string",
- "name": "string"
}| name required | string non-empty |
| edges | Array of any |
| nodes | Array of any |
| property name* additional property | any |
{- "edges": [
- null
], - "nodes": [
- null
], - "property1": null,
- "property2": null
}{- "message": "string",
- "name": "string"
}| * required | string |
| newPath required | string [ 1 .. 500 ] characters |
{- "newPath": "string"
}{- "message": "string",
- "newPath": "string",
- "oldPath": "string"
}| name | string [ 1 .. 200 ] characters |
| path | string [ 1 .. 500 ] characters |
{- "name": "string",
- "path": "string"
}{- "message": "string",
- "path": "string"
}| * required | string |
| newPath required | string [ 1 .. 500 ] characters |
{- "newPath": "string"
}{- "message": "string",
- "newPath": "string",
- "oldPath": "string"
}| content | string <= 1000000 characters |
| path required | string [ 1 .. 500 ] characters |
{- "content": "string",
- "path": "string"
}{- "message": "string",
- "path": "string"
}| * required | string |
| content required | string <= 1000000 characters |
{- "content": "string"
}{- "message": "string",
- "path": "string"
}| q required | string non-empty |
| limit | integer ( 0 .. 100 ] Default: 20 |
[- {
- "chunkIndex": -9007199254740991,
- "isShared": true,
- "modifiedAt": "2019-08-24T14:15:22Z",
- "ownerUserId": "string",
- "path": "string",
- "score": 0,
- "snippet": "string",
- "tags": [
- "string"
], - "title": "string"
}
]| graph required | number [ 0 .. 1 ] |
| lex required | number [ 0 .. 1 ] |
| sem required | number [ 0 .. 1 ] |
{- "graph": 1,
- "lex": 1,
- "sem": 1
}{- "graph": 1,
- "lex": 1,
- "sem": 1
}[- {
- "createdAt": "2019-08-24T14:15:22Z",
- "id": "string",
- "notePath": "string",
- "ownerUserId": "string",
- "requester": {
- "email": "string",
- "id": "string",
- "name": "string"
}, - "requesterUserId": "string",
- "status": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]| message | string <= 500 characters |
| notePath required | string [ 1 .. 500 ] characters |
| ownerUserId required | string [ 1 .. 100 ] characters |
{- "message": "string",
- "notePath": "string",
- "ownerUserId": "string"
}{- "createdAt": "2019-08-24T14:15:22Z",
- "id": "string",
- "notePath": "string",
- "ownerUserId": "string",
- "requesterUserId": "string",
- "status": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}| id required | string non-empty |
| action required | string Enum: "approve" "deny" |
| permission | string Enum: "read" "readwrite" |
{- "action": "approve",
- "permission": "read"
}{- "createdAt": "2019-08-24T14:15:22Z",
- "id": "string",
- "notePath": "string",
- "ownerUserId": "string",
- "requesterUserId": "string",
- "status": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}| label required | string [ 1 .. 200 ] characters |
| name required | string [ 1 .. 100 ] characters |
{- "label": "string",
- "name": "string"
}{- "createdAt": "2019-08-24T14:15:22Z",
- "id": "string",
- "label": "string",
- "lastSeenAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "ownerUserId": "string",
- "policyText": "string"
}| id required | string non-empty |
| expiresInSeconds required | integer ( 0 .. 9007199254740991 ] |
| scope | string |
{- "expiresInSeconds": 9007199254740991,
- "scope": "string"
}{- "expiresAt": "2019-08-24T14:15:22Z",
- "token": "string",
- "tokenId": "string"
}| newSource required | string |
| path required | string non-empty |
required | object |
{- "newSource": "string",
- "path": "string",
- "range": {
- "endLine": 9007199254740991,
- "startLine": 9007199254740991
}
}{- "ok": true
}| platform required | string Enum: "ios" "android" |
| token required | string [ 1 .. 2048 ] characters |
{- "platform": "ios",
- "token": "string"
}{- "id": "string",
- "platform": "ios"
}