POST
/
schemas
curl --request POST \
  --url https://dev.startree.ai/schemas \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: */*' \
  --data '{
  "contentDisposition": {
    "type": "<string>",
    "parameters": {},
    "fileName": "<string>",
    "creationDate": "2023-11-07T05:31:56Z",
    "modificationDate": "2023-11-07T05:31:56Z",
    "readDate": "2023-11-07T05:31:56Z",
    "size": 123
  },
  "entity": {},
  "headers": {},
  "mediaType": {
    "type": "<string>",
    "subtype": "<string>",
    "parameters": {},
    "wildcardType": true,
    "wildcardSubtype": true
  },
  "messageBodyWorkers": {},
  "parent": {
    "contentDisposition": {
      "type": "<string>",
      "parameters": {},
      "fileName": "<string>",
      "creationDate": "2023-11-07T05:31:56Z",
      "modificationDate": "2023-11-07T05:31:56Z",
      "readDate": "2023-11-07T05:31:56Z",
      "size": 123
    },
    "entity": {},
    "headers": {},
    "mediaType": {
      "type": "<string>",
      "subtype": "<string>",
      "parameters": {},
      "wildcardType": true,
      "wildcardSubtype": true
    },
    "messageBodyWorkers": {},
    "parent": {},
    "providers": {},
    "bodyParts": [
      {
        "contentDisposition": {
          "type": "<string>",
          "parameters": {},
          "fileName": "<string>",
          "creationDate": "2023-11-07T05:31:56Z",
          "modificationDate": "2023-11-07T05:31:56Z",
          "readDate": "2023-11-07T05:31:56Z",
          "size": 123
        },
        "entity": {},
        "headers": {},
        "mediaType": {
          "type": "<string>",
          "subtype": "<string>",
          "parameters": {},
          "wildcardType": true,
          "wildcardSubtype": true
        },
        "messageBodyWorkers": {},
        "parent": {},
        "providers": {},
        "parameterizedHeaders": {}
      }
    ],
    "parameterizedHeaders": {}
  },
  "providers": {},
  "bodyParts": [
    {
      "contentDisposition": {
        "type": "<string>",
        "parameters": {},
        "fileName": "<string>",
        "creationDate": "2023-11-07T05:31:56Z",
        "modificationDate": "2023-11-07T05:31:56Z",
        "readDate": "2023-11-07T05:31:56Z",
        "size": 123
      },
      "entity": {},
      "headers": {},
      "mediaType": {
        "type": "<string>",
        "subtype": "<string>",
        "parameters": {},
        "wildcardType": true,
        "wildcardSubtype": true
      },
      "messageBodyWorkers": {},
      "parent": {},
      "providers": {},
      "parameterizedHeaders": {}
    }
  ],
  "fields": {},
  "parameterizedHeaders": {}
}'

Authorizations

Authorization
string
header
required

The format of the key is "Basic <token>" or "Bearer <token>"

Query Parameters

override
boolean
default:true

Whether to override the schema if the schema exists

force
boolean
default:false

Whether to force overriding the schema if the schema exists

Body

*/*