PUT api/v1/emails/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

Email
NameDescriptionTypeAdditional 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": "5f88ef4d-776a-4887-a471-93e30ea32e4e",
  "user_id": "38955f23-8a10-4edd-bd99-7ae484f477a9",
  "error": "sample string 2",
  "user": {
    "full_name": "sample string 12 sample string 11",
    "id": "9a8f8055-8a7c-4e61-acbf-9aff7bd43140",
    "image_id": "c154b884-aff3-41ec-a8e0-c3418bcbcaa0",
    "id_user_work_position": "c0a96be4-1e31-46b8-84fd-d9f11491c818",
    "id_shift": "fd7b7e62-b4af-473c-b386-f49cc4e3af5e",
    "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-07-27T04:12:23Z",
  "date_of_sent": "2024-07-27T04:12:23Z",
  "state_id": 1,
  "mail_from": "sample string 3",
  "mail_to": "sample string 4",
  "subject": "sample string 5",
  "body": "sample string 6",
  "template": {
    "id": "99d897d2-b261-40ce-89e4-9e723ab43522",
    "name": "sample string 2",
    "deleted": true,
    "system_information": {
      "creation": {
        "user": {
          "full_name": "sample string 12 sample string 11",
          "id": "9a8f8055-8a7c-4e61-acbf-9aff7bd43140",
          "image_id": "c154b884-aff3-41ec-a8e0-c3418bcbcaa0",
          "id_user_work_position": "c0a96be4-1e31-46b8-84fd-d9f11491c818",
          "id_shift": "fd7b7e62-b4af-473c-b386-f49cc4e3af5e",
          "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-07-27T04:12:23Z"
      },
      "last_change": {
        "user": {
          "full_name": "sample string 12 sample string 11",
          "id": "9a8f8055-8a7c-4e61-acbf-9aff7bd43140",
          "image_id": "c154b884-aff3-41ec-a8e0-c3418bcbcaa0",
          "id_user_work_position": "c0a96be4-1e31-46b8-84fd-d9f11491c818",
          "id_shift": "fd7b7e62-b4af-473c-b386-f49cc4e3af5e",
          "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-07-27T04:12:23Z"
      }
    }
  },
  "deleted": true,
  "system_information": {
    "creation": {
      "user": {
        "full_name": "sample string 12 sample string 11",
        "id": "9a8f8055-8a7c-4e61-acbf-9aff7bd43140",
        "image_id": "c154b884-aff3-41ec-a8e0-c3418bcbcaa0",
        "id_user_work_position": "c0a96be4-1e31-46b8-84fd-d9f11491c818",
        "id_shift": "fd7b7e62-b4af-473c-b386-f49cc4e3af5e",
        "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-07-27T04:12:23Z"
    },
    "last_change": {
      "user": {
        "full_name": "sample string 12 sample string 11",
        "id": "9a8f8055-8a7c-4e61-acbf-9aff7bd43140",
        "image_id": "c154b884-aff3-41ec-a8e0-c3418bcbcaa0",
        "id_user_work_position": "c0a96be4-1e31-46b8-84fd-d9f11491c818",
        "id_shift": "fd7b7e62-b4af-473c-b386-f49cc4e3af5e",
        "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-07-27T04:12:23Z"
    }
  }
}

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-07-27T06:12:23.5393714+02:00</date_of_create>
  <date_of_sent>2024-07-27T06:12:23.5393714+02:00</date_of_sent>
  <deleted>true</deleted>
  <error>sample string 2</error>
  <id>5f88ef4d-776a-4887-a471-93e30ea32e4e</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-07-27T06:12:23.5393714+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>9a8f8055-8a7c-4e61-acbf-9aff7bd43140</id>
        <id_shift>fd7b7e62-b4af-473c-b386-f49cc4e3af5e</id_shift>
        <id_user_work_position>c0a96be4-1e31-46b8-84fd-d9f11491c818</id_user_work_position>
        <image_id>c154b884-aff3-41ec-a8e0-c3418bcbcaa0</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-07-27T06:12:23.5393714+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>9a8f8055-8a7c-4e61-acbf-9aff7bd43140</id>
        <id_shift>fd7b7e62-b4af-473c-b386-f49cc4e3af5e</id_shift>
        <id_user_work_position>c0a96be4-1e31-46b8-84fd-d9f11491c818</id_user_work_position>
        <image_id>c154b884-aff3-41ec-a8e0-c3418bcbcaa0</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>99d897d2-b261-40ce-89e4-9e723ab43522</id>
    <name>sample string 2</name>
    <system_information>
      <creation>
        <date>2024-07-27T06:12:23.5393714+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>9a8f8055-8a7c-4e61-acbf-9aff7bd43140</id>
          <id_shift>fd7b7e62-b4af-473c-b386-f49cc4e3af5e</id_shift>
          <id_user_work_position>c0a96be4-1e31-46b8-84fd-d9f11491c818</id_user_work_position>
          <image_id>c154b884-aff3-41ec-a8e0-c3418bcbcaa0</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-07-27T06:12:23.5393714+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>9a8f8055-8a7c-4e61-acbf-9aff7bd43140</id>
          <id_shift>fd7b7e62-b4af-473c-b386-f49cc4e3af5e</id_shift>
          <id_user_work_position>c0a96be4-1e31-46b8-84fd-d9f11491c818</id_user_work_position>
          <image_id>c154b884-aff3-41ec-a8e0-c3418bcbcaa0</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>9a8f8055-8a7c-4e61-acbf-9aff7bd43140</id>
    <id_shift>fd7b7e62-b4af-473c-b386-f49cc4e3af5e</id_shift>
    <id_user_work_position>c0a96be4-1e31-46b8-84fd-d9f11491c818</id_user_work_position>
    <image_id>c154b884-aff3-41ec-a8e0-c3418bcbcaa0</image_id>
    <introduction>sample string 10</introduction>
    <last_name>sample string 12</last_name>
    <title>sample string 9</title>
  </user>
  <user_id>38955f23-8a10-4edd-bd99-7ae484f477a9</user_id>
</Email>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional 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>