Skip to content

create

Request

Security
ApiKeyAuth
Bodyapplication/json
dataobjectrequired
curl -i -X POST \
  https://llm-api.treasuredata.com/api/text_resources \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "data": {
      "type": "text_resources",
      "attributes": {
        "name": "name 1",
        "description": "description 1",
        "text": "text 1"
      }
    }
  }'

Responses

creates a new text_resource

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