VirtuousAI
ReferenceV1

Create Artifact

POST
/api/v1/artifacts

Header Parameters

authorization?|
X-API-Key?|
vai_token?|

Request Body

application/json

actionRunId*string
content?
kind*string

Types of artifacts that can be produced.

Value in"json" | "text" | "file"
title?|

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/artifacts" \  -H "Content-Type: application/json" \  -d '{    "actionRunId": "string",    "kind": "json"  }'
{
  "actionRunId": "string",
  "content": {
    "data": {},
    "kind": "json",
    "storage": "inline"
  },
  "createdAt": "2019-08-24T14:15:22Z",
  "id": "string",
  "kind": "json",
  "storageType": "string",
  "title": "string",
  "updatedAt": "2019-08-24T14:15:22Z"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}