Skip to content

create

Request

Security
ApiKeyAuth
Bodyapplication/json
dataobjectrequired
curl -i -X POST \
  https://llm-api.treasuredata.com/api/form_interfaces \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "data": {
      "type": "form_interfaces",
      "attributes": {
        "projectId": "00000000-0000-0000-0000-000000000001",
        "agentId": "00000000-0000-0000-0000-000000000001",
        "name": "clean name",
        "promptTemplate": "test prompt",
        "formJsonSchema": "{\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\"}}}",
        "formUiSchema": "{\"ui:title\": \"Title\", \"ui:description\": \"Description\", \"ui:classNames\": \"my-class\", \"ui:submitButtonOptions\": {\"props\": {\"disabled\": false,\"className\": \"btn btn-info\"}}}"
      }
    }
  }'

Responses

Form interface successfully created

Bodyapplication/vnd.api+json
dataobjectrequired
Response
{ "data": { "id": "00000000-0000-0000-0000-000000000001", "type": "formInterfaces", "links": {}, "attributes": {} } }