cURL
curl --request POST \ --url https://commerce.driv.ly/api/definitions \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "updatedAt": "<string>", "createdAt": "<string>", "name": "<string>", "definition": "<string>", "model": "gpt-3.5-turbo" } '
{ "doc": { "updatedAt": "<string>", "createdAt": "<string>", "name": "<string>", "definition": "<string>", "model": "gpt-3.5-turbo" }, "message": "<string>" }
Create a new Definition
Usage with the Drivly SDK
import { SDK } from '@drivly/commerce' import type { definitions } from '@drivly/commerce' const sdk = new SDK(...) const definitions = await sdk.definitions.create(data: definitions): Promise<definitions>
number of levels to automatically populate relationships and uploads
retrieves document(s) in a specific locale
specifies a fallback locale if no locale value exists
gpt-3.5-turbo
gpt-4
gpt-4-0613
XState
gpt-4-0314
XML
gpt-4-1106-preview
ok
Show child attributes