POST
/
api
/
object
Create new object.
curl --request POST \
  --url https://api.coinfer.ai/api/object \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "payload": {
    "object_type": "<string>",
    "type": "local",
    "env": "<string>",
    "name": "",
    "content": {
      "meta": {
        "project_file": "Project.toml",
        "entrance_file": "main.jl",
        "entrance_func": "model",
        "manifest": "Manifest.toml"
      },
      "tree": [
        {
          "name": "<string>",
          "type": "file",
          "content": "",
          "children": []
        }
      ]
    },
    "tag": "model",
    "single_instance": true,
    "lang": "python",
    "entrance_file": "",
    "lambda_image": false,
    "source_url": ""
  }
}'
{
  "status": "<string>",
  "data": {
    "object_type": "<string>",
    "short_id": "",
    "name": "",
    "model_id": "",
    "status": "",
    "meta": "<any>",
    "n_chains": 0,
    "n_variables": 0,
    "n_samples": 0,
    "sample_update_time": "",
    "run_on": "",
    "input": "<string>",
    "output": "<string>",
    "share_info": [
      {
        "id": 123,
        "password": "<string>",
        "user_id": "<string>",
        "short_id": "<string>",
        "to_user_id": "<string>"
      }
    ],
    "model_name": "<string>",
    "workflow_id": "",
    "workflow_name": ""
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
payload
object
required

Response

OK

status
string
required
Allowed value: "ok"
data
object
required