cURL
curl --request PATCH \ --url https://commerce.driv.ly/api/logs/{id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "updatedAt": "<string>", "createdAt": "<string>", "title": "<string>", "method": "<string>", "status": "<string>", "path": "<string>", "ip": "<string>", "userAgent": "<string>", "trace": "<string>", "requestHeaders": {}, "responseHeaders": {}, "requestBody": {}, "responseBody": {} } '
{ "doc": { "updatedAt": "<string>", "createdAt": "<string>", "title": "<string>", "method": "<string>", "status": "<string>", "path": "<string>", "ip": "<string>", "userAgent": "<string>", "trace": "<string>", "requestHeaders": {}, "responseHeaders": {}, "requestBody": {}, "responseBody": {} }, "message": "<string>" }
Updates a Log
Usage with the Drivly SDK
import { SDK } from '@drivly/commerce' import type { logs } from '@drivly/commerce' const sdk = new SDK(...) const logs = await sdk.logs.update(logsId: string, data: logs): Promise<logs>
id of the Log
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
ok
Show child attributes