Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.63 KB

File metadata and controls

31 lines (22 loc) · 1.63 KB

GenericResponse

Standard success response returned by write operations (send, add rule, delete, etc.). The status field is always \"ok\" on success. The text field carries operation-specific data — for sending calls it contains the relay transaction ID; for create calls it contains the new record's ID; for delete calls it contains a confirmation string.

Properties

Name Type Description Notes
status str Always `"ok"` on success. [optional]
text str Operation-specific result string. For send operations this is the relay transaction ID (e.g. `185caa69ff7000f47c`) which can be used as the `mailid` parameter in `GET /mail/log`. For create operations this is the new record's numeric ID. For delete operations this is a human-readable confirmation. [optional]

Example

from openapi_client.models.generic_response import GenericResponse

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

# convert the object into a dict
generic_response_dict = generic_response_instance.to_dict()
# create an instance of GenericResponse from a dict
generic_response_from_dict = GenericResponse.from_dict(generic_response_dict)

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