跳转到主要内容
POST
/
v1
/
answers
创建答案
curl --request POST \
  --url https://api.olostep.com/v1/answers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "task": "<string>",
  "json_format": {}
}
'
{
  "id": "<string>",
  "object": "<string>",
  "created": 123,
  "metadata": {},
  "task": "<string>",
  "result": {
    "json_content": "<string>",
    "json_hosted_url": "<string>"
  }
}

授权

Authorization
string
header
必填

Bearer 认证头格式为 Bearer ,其中 是你的认证令牌。

请求体

application/json
task
string
必填

要执行的任务。

json_format
object

期望的输出 JSON 对象,带有空值作为模式,或者简单地描述你想要的数据作为字符串。

响应

成功响应并附带答案。

id
string
object
string
created
integer
metadata
object
task
string
result
object