POST api/v1/SetMailJournals

Request Information

URI Parameters

None.

Body Parameters

SetMailJournalsParameter
NameDescriptionTypeAdditional information
MailIDs

Collection of MailID

None.

AddJournalItemIDList

Collection of string

None.

AddJournalItemFolderIDList

Collection of integer

None.

DeleteJournalItemIDList

Collection of string

None.

DeleteJournalItemFolderIDList

Collection of integer

None.

UpdatedBySmartJournalize

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "MailIDs": [
    {
      "ConversationID": "sample string 1",
      "MessageID": "sample string 2"
    },
    {
      "ConversationID": "sample string 1",
      "MessageID": "sample string 2"
    }
  ],
  "AddJournalItemIDList": [
    "sample string 1",
    "sample string 2"
  ],
  "AddJournalItemFolderIDList": [
    1,
    1
  ],
  "DeleteJournalItemIDList": [
    "sample string 1",
    "sample string 2"
  ],
  "DeleteJournalItemFolderIDList": [
    1,
    1
  ],
  "UpdatedBySmartJournalize": true
}

application/xml, text/xml

Sample:
<SetMailJournalsParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WorkPointEMM.API.Model">
  <AddJournalItemFolderIDList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>1</d2p1:int>
  </AddJournalItemFolderIDList>
  <AddJournalItemIDList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </AddJournalItemIDList>
  <DeleteJournalItemFolderIDList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>1</d2p1:int>
  </DeleteJournalItemFolderIDList>
  <DeleteJournalItemIDList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </DeleteJournalItemIDList>
  <MailIDs>
    <MailID>
      <ConversationID>sample string 1</ConversationID>
      <MessageID>sample string 2</MessageID>
    </MailID>
    <MailID>
      <ConversationID>sample string 1</ConversationID>
      <MessageID>sample string 2</MessageID>
    </MailID>
  </MailIDs>
  <UpdatedBySmartJournalize>true</UpdatedBySmartJournalize>
</SetMailJournalsParameter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResponseOfInt32
NameDescriptionTypeAdditional information
Data

integer

None.

Error

ServiceError

None.

IsError

boolean

None.

Warning

string

None.

Misc1

Object

None.

Misc2

Object

None.

Misc3

Object

None.

Exception

Exception

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": 1,
  "Error": {
    "Message": "sample string 1",
    "ErrorNumber": 2,
    "AddtionalInfo": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "TimeStamp": "2024-11-21T09:30:17.2504759+00:00"
  },
  "IsError": true,
  "Warning": "sample string 3",
  "Misc1": {},
  "Misc2": {},
  "Misc3": {},
  "Exception": {
    "ClassName": "System.Exception",
    "Message": null,
    "Data": null,
    "InnerException": null,
    "HelpURL": "sample string 1",
    "StackTraceString": null,
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": 3,
    "Source": "sample string 2",
    "WatsonBuckets": null
  }
}

application/xml, text/xml

Sample:
<ServiceResponseOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.workpointemm.dk/API">
  <Data>1</Data>
  <Error>
    <AddtionalInfo xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value>sample string 2</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 3</d3p1:Key>
        <d3p1:Value>sample string 4</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </AddtionalInfo>
    <ErrorNumber>2</ErrorNumber>
    <Message>sample string 1</Message>
    <TimeStamp>2024-11-21T09:30:17.2504759+00:00</TimeStamp>
  </Error>
  <Exception xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
    <Message i:nil="true" xmlns="" />
    <Data i:nil="true" xmlns="" />
    <InnerException i:nil="true" xmlns="" />
    <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
    <StackTraceString i:nil="true" xmlns="" />
    <RemoteStackTraceString i:nil="true" xmlns="" />
    <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
    <ExceptionMethod i:nil="true" xmlns="" />
    <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
    <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
    <WatsonBuckets i:nil="true" xmlns="" />
  </Exception>
  <IsError>true</IsError>
  <Misc1 />
  <Misc2 />
  <Misc3 />
  <Warning>sample string 3</Warning>
</ServiceResponseOfint>