Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 2.1 KB

File metadata and controls

46 lines (37 loc) · 2.1 KB

Event

An API request log entry.

Properties

Name Type Description Notes
id int Unique identifier. For POST requests, leave it at `0` — the server will assign one automatically. For PUT requests, set it to the id of the record you want to update. [optional]
created datetime Creation date. It is set automatically. [optional] [readonly]
version int Row version, for optimistic concurrency. It is set automatically. [optional] [readonly]
user_id int User id. [optional]
api_key_id int Api key id. [optional]
company_id int Company id. [optional]
method str Request method.
endpoint str API endpoint.
api_version int Api version. [optional]
status_code int Status code returned by the API. [optional]
date_time datetime Date and time of the request. [optional]
error str Response error. [optional]
resource_id int ID of the resource created or modified by this request. [optional]
user_agent str User-Agent header from the HTTP request. [optional]
success bool Whether the request was successful. [optional] [readonly]
query str Request query. Only used for internal logging, not sent to webhooks. [optional]
response_body str Response payload. It is guaranteed to be encrypted at rest. [optional]

Example

from invoicetronic_sdk.models.event import Event

# TODO update the JSON string below
json = "{}"
# create an instance of Event from a JSON string
event_instance = Event.from_json(json)
# print the JSON string representation of the object
print(Event.to_json())

# convert the object into a dict
event_dict = event_instance.to_dict()
# create an instance of Event from a dict
event_from_dict = Event.from_dict(event_dict)

[Back to Model list] [Back to API list] [Back to README]