PUT api/v1/emails/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
Body Parameters
EmailName | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
|
user_id | globally unique identifier |
None. |
|
error | string |
None. |
|
user | UserSimple |
None. |
|
date_of_create | date |
Required |
|
date_of_sent | date |
None. |
|
state_id | integer |
Required |
|
mail_from | string |
Required |
|
mail_to | string |
Required |
|
subject | string |
Required |
|
body | string |
Required |
|
template | CodeList |
Required |
|
deleted | boolean |
Required |
|
system_information | SystemInformation |
None. |
Request Formats
application/json, text/json
Sample:
{ "id": "9e34f1bd-288b-4441-b0d8-4ed018725719", "user_id": "729fc898-95f4-45a1-8bbe-1c1bb61524ef", "error": "sample string 2", "user": { "full_name": "sample string 12 sample string 11", "id": "cefbcf1b-1a20-469d-b80d-7a4d5c61e03b", "image_id": "164879f4-7e0d-42d0-b627-8998477ef8e9", "id_user_work_position": "94c394cd-81e6-418c-be93-fcf1b82d79ec", "id_shift": "21ec3e99-5bfb-4916-9dc2-ac70186483dc", "code": "sample string 5", "code2": "sample string 6", "title": "sample string 9", "introduction": "sample string 10", "first_name": "sample string 11", "last_name": "sample string 12" }, "date_of_create": "2024-09-11T15:55:37Z", "date_of_sent": "2024-09-11T15:55:37Z", "state_id": 1, "mail_from": "sample string 3", "mail_to": "sample string 4", "subject": "sample string 5", "body": "sample string 6", "template": { "id": "ee40d508-6214-4e73-b9a3-f9b70c09bdb8", "name": "sample string 2", "deleted": true, "system_information": { "creation": { "user": { "full_name": "sample string 12 sample string 11", "id": "cefbcf1b-1a20-469d-b80d-7a4d5c61e03b", "image_id": "164879f4-7e0d-42d0-b627-8998477ef8e9", "id_user_work_position": "94c394cd-81e6-418c-be93-fcf1b82d79ec", "id_shift": "21ec3e99-5bfb-4916-9dc2-ac70186483dc", "code": "sample string 5", "code2": "sample string 6", "title": "sample string 9", "introduction": "sample string 10", "first_name": "sample string 11", "last_name": "sample string 12" }, "date": "2024-09-11T15:55:37Z" }, "last_change": { "user": { "full_name": "sample string 12 sample string 11", "id": "cefbcf1b-1a20-469d-b80d-7a4d5c61e03b", "image_id": "164879f4-7e0d-42d0-b627-8998477ef8e9", "id_user_work_position": "94c394cd-81e6-418c-be93-fcf1b82d79ec", "id_shift": "21ec3e99-5bfb-4916-9dc2-ac70186483dc", "code": "sample string 5", "code2": "sample string 6", "title": "sample string 9", "introduction": "sample string 10", "first_name": "sample string 11", "last_name": "sample string 12" }, "date": "2024-09-11T15:55:37Z" } } }, "deleted": true, "system_information": { "creation": { "user": { "full_name": "sample string 12 sample string 11", "id": "cefbcf1b-1a20-469d-b80d-7a4d5c61e03b", "image_id": "164879f4-7e0d-42d0-b627-8998477ef8e9", "id_user_work_position": "94c394cd-81e6-418c-be93-fcf1b82d79ec", "id_shift": "21ec3e99-5bfb-4916-9dc2-ac70186483dc", "code": "sample string 5", "code2": "sample string 6", "title": "sample string 9", "introduction": "sample string 10", "first_name": "sample string 11", "last_name": "sample string 12" }, "date": "2024-09-11T15:55:37Z" }, "last_change": { "user": { "full_name": "sample string 12 sample string 11", "id": "cefbcf1b-1a20-469d-b80d-7a4d5c61e03b", "image_id": "164879f4-7e0d-42d0-b627-8998477ef8e9", "id_user_work_position": "94c394cd-81e6-418c-be93-fcf1b82d79ec", "id_shift": "21ec3e99-5bfb-4916-9dc2-ac70186483dc", "code": "sample string 5", "code2": "sample string 6", "title": "sample string 9", "introduction": "sample string 10", "first_name": "sample string 11", "last_name": "sample string 12" }, "date": "2024-09-11T15:55:37Z" } } }
application/xml, text/xml
Sample:
<Email xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IO.Swagger.Models"> <body>sample string 6</body> <date_of_create>2024-09-11T17:55:37.144078+02:00</date_of_create> <date_of_sent>2024-09-11T17:55:37.144078+02:00</date_of_sent> <deleted>true</deleted> <error>sample string 2</error> <id>9e34f1bd-288b-4441-b0d8-4ed018725719</id> <mail_from>sample string 3</mail_from> <mail_to>sample string 4</mail_to> <state_id>1</state_id> <subject>sample string 5</subject> <system_information> <creation> <date>2024-09-11T17:55:37.146699+02:00</date> <user> <code>sample string 5</code> <code2>sample string 6</code2> <first_name>sample string 11</first_name> <full_name>sample string 12 sample string 11</full_name> <id>cefbcf1b-1a20-469d-b80d-7a4d5c61e03b</id> <id_shift>21ec3e99-5bfb-4916-9dc2-ac70186483dc</id_shift> <id_user_work_position>94c394cd-81e6-418c-be93-fcf1b82d79ec</id_user_work_position> <image_id>164879f4-7e0d-42d0-b627-8998477ef8e9</image_id> <introduction>sample string 10</introduction> <last_name>sample string 12</last_name> <title>sample string 9</title> </user> </creation> <last_change> <date>2024-09-11T17:55:37.146699+02:00</date> <user> <code>sample string 5</code> <code2>sample string 6</code2> <first_name>sample string 11</first_name> <full_name>sample string 12 sample string 11</full_name> <id>cefbcf1b-1a20-469d-b80d-7a4d5c61e03b</id> <id_shift>21ec3e99-5bfb-4916-9dc2-ac70186483dc</id_shift> <id_user_work_position>94c394cd-81e6-418c-be93-fcf1b82d79ec</id_user_work_position> <image_id>164879f4-7e0d-42d0-b627-8998477ef8e9</image_id> <introduction>sample string 10</introduction> <last_name>sample string 12</last_name> <title>sample string 9</title> </user> </last_change> </system_information> <template> <deleted>true</deleted> <id>ee40d508-6214-4e73-b9a3-f9b70c09bdb8</id> <name>sample string 2</name> <system_information> <creation> <date>2024-09-11T17:55:37.146699+02:00</date> <user> <code>sample string 5</code> <code2>sample string 6</code2> <first_name>sample string 11</first_name> <full_name>sample string 12 sample string 11</full_name> <id>cefbcf1b-1a20-469d-b80d-7a4d5c61e03b</id> <id_shift>21ec3e99-5bfb-4916-9dc2-ac70186483dc</id_shift> <id_user_work_position>94c394cd-81e6-418c-be93-fcf1b82d79ec</id_user_work_position> <image_id>164879f4-7e0d-42d0-b627-8998477ef8e9</image_id> <introduction>sample string 10</introduction> <last_name>sample string 12</last_name> <title>sample string 9</title> </user> </creation> <last_change> <date>2024-09-11T17:55:37.146699+02:00</date> <user> <code>sample string 5</code> <code2>sample string 6</code2> <first_name>sample string 11</first_name> <full_name>sample string 12 sample string 11</full_name> <id>cefbcf1b-1a20-469d-b80d-7a4d5c61e03b</id> <id_shift>21ec3e99-5bfb-4916-9dc2-ac70186483dc</id_shift> <id_user_work_position>94c394cd-81e6-418c-be93-fcf1b82d79ec</id_user_work_position> <image_id>164879f4-7e0d-42d0-b627-8998477ef8e9</image_id> <introduction>sample string 10</introduction> <last_name>sample string 12</last_name> <title>sample string 9</title> </user> </last_change> </system_information> </template> <user> <code>sample string 5</code> <code2>sample string 6</code2> <first_name>sample string 11</first_name> <full_name>sample string 12 sample string 11</full_name> <id>cefbcf1b-1a20-469d-b80d-7a4d5c61e03b</id> <id_shift>21ec3e99-5bfb-4916-9dc2-ac70186483dc</id_shift> <id_user_work_position>94c394cd-81e6-418c-be93-fcf1b82d79ec</id_user_work_position> <image_id>164879f4-7e0d-42d0-b627-8998477ef8e9</image_id> <introduction>sample string 10</introduction> <last_name>sample string 12</last_name> <title>sample string 9</title> </user> <user_id>729fc898-95f4-45a1-8bbe-1c1bb61524ef</user_id> </Email>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultName | Description | Type | Additional information |
---|---|---|---|
messages | Collection of ResultMessage |
None. |
|
count_of_errors | integer |
None. |
|
id | Object |
None. |
|
name | string |
None. |
|
data | Object |
None. |
|
url | string |
None. |
|
text | string |
None. |
|
inner_exception | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "messages": [ { "type": 1, "code": 1, "message": "sample string 1", "field": "sample string 2" }, { "type": 1, "code": 1, "message": "sample string 1", "field": "sample string 2" } ], "count_of_errors": 1, "id": {}, "name": "sample string 3", "data": {}, "url": "sample string 5", "text": "sample string 6", "inner_exception": "sample string 7" }
application/xml, text/xml
Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UP.Core.Data"> <count_of_errors>1</count_of_errors> <data /> <id /> <inner_exception>sample string 7</inner_exception> <messages> <ResultMessage> <code>1</code> <field>sample string 2</field> <message>sample string 1</message> <type>1</type> </ResultMessage> <ResultMessage> <code>1</code> <field>sample string 2</field> <message>sample string 1</message> <type>1</type> </ResultMessage> </messages> <name>sample string 3</name> <text>sample string 6</text> <url>sample string 5</url> </Result>