title | language_tabs | language_clients | toc_footers | includes | search | highlight_theme | headingLevel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Chat Service v1.0.0 |
|
|
true |
darkula |
2 |
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
chat-service microservice.
Base URLs:
- HTTP Authentication, scheme: bearer
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"attachmentFiles": [
null
]
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/attach-files/bulk',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"attachmentFiles": [
null
]
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/attach-files/bulk',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /attach-files/bulk
Permissions |
---|
CreateAttachmentFile |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"attachmentFiles": [
null
]
}
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | [New Attachment Files](#schemanew attachment files) | false | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"attachmentFiles": [
null
]
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Attachment model instance | AttachmentFileDto |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/attach-files/count',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/attach-files/count',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /attach-files/count
Permissions |
---|
ViewAttachmentFile |
Name | In | Type | Required | Description |
---|---|---|---|---|
where | query | object | false | none |
Example responses
200 Response
{
"count": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | AttachmentFile model count | loopback.Count |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/attach-files/{id}',
{
method: 'PUT',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/attach-files/{id}',
{
method: 'PUT',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PUT /attach-files/{id}
Permissions |
---|
UpdateAttachmentFile |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
}
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
body | body | AttachmentFile | false | none |
Example responses
204 Response
null
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Return value of AttachmentFileController.replaceById | None |
204 | No Content | No Content | Inline |
Status Code 204
AttachmentFile PUT success
Name | Type | Required | Restrictions | Description |
---|
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
}';
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/attach-files/{id}',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
};
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/attach-files/{id}',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /attach-files/{id}
Permissions |
---|
UpdateAttachmentFile |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
}
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
body | body | AttachmentFilePartial | false | none |
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | AttachmentFile PATCH success | None |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/attach-files/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/attach-files/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /attach-files/{id}
Permissions |
---|
ViewAttachmentFile |
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
filter | query | message_files.Filter | false | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {},
"foreignKey": null
}
],
"attachmentFiles": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {},
"foreignKey": null
}
],
"parentMessage": {},
"foreignKey": null,
"messages": [
{}
]
},
"foreignKey": null
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | AttachmentFile model instance | AttachmentFileWithRelations |
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/attach-files/{id}',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('/attach-files/{id}',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /attach-files/{id}
Permissions |
---|
DeleteAttachmentFile |
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
Example responses
204 Response
null
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Return value of AttachmentFileController.deleteById | None |
204 | No Content | No Content | Inline |
Status Code 204
Attachment File DELETE success
Name | Type | Required | Restrictions | Description |
---|
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/attach-files',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/attach-files',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /attach-files
Permissions |
---|
CreateAttachmentFile |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
}
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | NewAttachmentFile | false | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Attachment model instance | AttachmentFile |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/attach-files',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/attach-files',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /attach-files
Permissions |
---|
UpdateAttachmentFile |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
}
Name | In | Type | Required | Description |
---|---|---|---|---|
where | query | object | false | none |
body | body | AttachmentFilePartial | false | none |
Example responses
200 Response
{
"count": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | AttachmentFile PATCH success count | loopback.Count |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/attach-files',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/attach-files',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /attach-files
Permissions |
---|
ViewAttachmentFile |
Name | In | Type | Required | Description |
---|---|---|---|---|
filter | query | message_files.Filter1 | false | none |
Example responses
200 Response
[
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {},
"foreignKey": null
}
],
"attachmentFiles": [
{}
],
"parentMessage": {},
"foreignKey": null,
"messages": [
{}
]
},
"foreignKey": null
}
]
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Array of AttachmentFile model instances | Inline |
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | [AttachmentFileWithRelations] | false | none | [(tsType: AttachmentFileWithRelations, schemaOptions: { includeRelations: true })] |
» AttachmentFileWithRelations | AttachmentFileWithRelations | false | none | (tsType: AttachmentFileWithRelations, schemaOptions: { includeRelations: true }) |
»» deleted | boolean | false | none | none |
»» deletedOn | string(date-time)¦null | false | none | none |
»» deletedBy | string¦null | false | none | none |
»» createdOn | string(date-time) | false | none | none |
»» modifiedOn | string(date-time) | false | none | none |
»» createdBy | string | false | none | none |
»» modifiedBy | string | false | none | none |
»» id | string | false | none | none |
»» channelId | string | false | none | none |
»» fileKey | string | false | none | none |
»» messageId | string | false | none | none |
»» metaData | object | false | none | none |
»» message | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»»» deleted | boolean | false | none | none |
»»» deletedOn | string(date-time)¦null | false | none | none |
»»» deletedBy | string¦null | false | none | none |
»»» createdOn | string(date-time) | false | none | none |
»»» modifiedOn | string(date-time) | false | none | none |
»»» createdBy | string | false | none | none |
»»» modifiedBy | string | false | none | none |
»»» id | string | false | none | none |
»»» body | string | true | none | none |
»»» channelId | string | true | none | none |
»»» channelType | string | true | none | none |
»»» status | number | false | none | none |
»»» subject | string | false | none | none |
»»» toUserId | string | false | none | none |
»»» parentMessageId | string | false | none | none |
»»» messageRecipients | [MessageRecipientWithRelations] | false | none | (tsType: MessageRecipientWithRelations, schemaOptions: { includeRelations: true }) |
»»»» MessageRecipientWithRelations | MessageRecipientWithRelations | false | none | (tsType: MessageRecipientWithRelations, schemaOptions: { includeRelations: true }) |
»»»»» deleted | boolean | false | none | none |
»»»»» deletedOn | string(date-time)¦null | false | none | none |
»»»»» deletedBy | string¦null | false | none | none |
»»»»» createdOn | string(date-time) | false | none | none |
»»»»» modifiedOn | string(date-time) | false | none | none |
»»»»» createdBy | string | false | none | none |
»»»»» modifiedBy | string | false | none | none |
»»»»» id | string | false | none | none |
»»»»» channelId | string | true | none | none |
»»»»» forwardedBy | string | false | none | none |
»»»»» isFavorite | boolean | false | none | none |
»»»»» isForwarded | boolean | false | none | none |
»»»»» isRead | boolean | false | none | none |
»»»»» recipientId | string | true | none | none |
»»»»» messageId | string | true | none | none |
»»»»» message | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»»»»» foreignKey | any | false | none | none |
»»» attachmentFiles | [AttachmentFileWithRelations] | false | none | (tsType: AttachmentFileWithRelations, schemaOptions: { includeRelations: true }) |
»»»» AttachmentFileWithRelations | AttachmentFileWithRelations | false | none | (tsType: AttachmentFileWithRelations, schemaOptions: { includeRelations: true }) |
»»» parentMessage | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»»» foreignKey | any | false | none | none |
»»» messages | [MessageWithRelations] | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»»»» MessageWithRelations | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»» foreignKey | any | false | none | none |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients/count',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients/count',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /message-recipients/count
Permissions |
---|
ViewMessageRecipient |
6 |
Name | In | Type | Required | Description |
---|---|---|---|---|
where | query | object | false | none |
Example responses
200 Response
{
"count": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | MessageRecipient model count | loopback.Count |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}';
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients/{id}',
{
method: 'PUT',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
};
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients/{id}',
{
method: 'PUT',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PUT /message-recipients/{id}
Permissions |
---|
UpdateMessageRecipient |
7 |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
body | body | MessageRecipient | false | none |
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | MessageRecipient PUT success | None |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}';
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients/{id}',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
};
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients/{id}',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /message-recipients/{id}
Permissions |
---|
UpdateMessageRecipient |
7 |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
body | body | MessageRecipientPartial | false | none |
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | MessageRecipient PATCH success | None |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /message-recipients/{id}
Permissions |
---|
ViewMessageRecipient |
6 |
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
filter | query | message_recipients.Filter | false | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {},
"foreignKey": null
}
],
"attachmentFiles": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {},
"foreignKey": null
}
],
"parentMessage": {},
"foreignKey": null,
"messages": [
{}
]
},
"foreignKey": null
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | MessageRecipient model instance | MessageRecipientWithRelations |
Code samples
const headers = {
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients/{id}',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients/{id}',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /message-recipients/{id}
Permissions |
---|
DeleteMessageRecipient |
8 |
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | MessageRecipient DELETE success | None |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /message-recipients
Permissions |
---|
CreateMessageRecipient |
5 |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | NewMessageRecipient | false | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | MessageRecipient model instance | MessageRecipient |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /message-recipients
Permissions |
---|
UpdateMessageRecipient |
7 |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
where | query | object | false | none |
body | body | MessageRecipientPartial | false | none |
Example responses
200 Response
{
"count": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | MessageRecipient PATCH success count | loopback.Count |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /message-recipients
Permissions |
---|
ViewMessageRecipient |
6 |
Name | In | Type | Required | Description |
---|---|---|---|---|
filter | query | message_recipients.Filter1 | false | none |
Example responses
200 Response
[
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{}
],
"attachmentFiles": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {},
"foreignKey": null
}
],
"parentMessage": {},
"foreignKey": null,
"messages": [
{}
]
},
"foreignKey": null
}
]
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Array of MessageRecipient model instances | Inline |
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | [MessageRecipientWithRelations] | false | none | [(tsType: MessageRecipientWithRelations, schemaOptions: { includeRelations: true })] |
» MessageRecipientWithRelations | MessageRecipientWithRelations | false | none | (tsType: MessageRecipientWithRelations, schemaOptions: { includeRelations: true }) |
»» deleted | boolean | false | none | none |
»» deletedOn | string(date-time)¦null | false | none | none |
»» deletedBy | string¦null | false | none | none |
»» createdOn | string(date-time) | false | none | none |
»» modifiedOn | string(date-time) | false | none | none |
»» createdBy | string | false | none | none |
»» modifiedBy | string | false | none | none |
»» id | string | false | none | none |
»» channelId | string | true | none | none |
»» forwardedBy | string | false | none | none |
»» isFavorite | boolean | false | none | none |
»» isForwarded | boolean | false | none | none |
»» isRead | boolean | false | none | none |
»» recipientId | string | true | none | none |
»» messageId | string | true | none | none |
»» message | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»»» deleted | boolean | false | none | none |
»»» deletedOn | string(date-time)¦null | false | none | none |
»»» deletedBy | string¦null | false | none | none |
»»» createdOn | string(date-time) | false | none | none |
»»» modifiedOn | string(date-time) | false | none | none |
»»» createdBy | string | false | none | none |
»»» modifiedBy | string | false | none | none |
»»» id | string | false | none | none |
»»» body | string | true | none | none |
»»» channelId | string | true | none | none |
»»» channelType | string | true | none | none |
»»» status | number | false | none | none |
»»» subject | string | false | none | none |
»»» toUserId | string | false | none | none |
»»» parentMessageId | string | false | none | none |
»»» messageRecipients | [MessageRecipientWithRelations] | false | none | (tsType: MessageRecipientWithRelations, schemaOptions: { includeRelations: true }) |
»»»» MessageRecipientWithRelations | MessageRecipientWithRelations | false | none | (tsType: MessageRecipientWithRelations, schemaOptions: { includeRelations: true }) |
»»» attachmentFiles | [AttachmentFileWithRelations] | false | none | (tsType: AttachmentFileWithRelations, schemaOptions: { includeRelations: true }) |
»»»» AttachmentFileWithRelations | AttachmentFileWithRelations | false | none | (tsType: AttachmentFileWithRelations, schemaOptions: { includeRelations: true }) |
»»»»» deleted | boolean | false | none | none |
»»»»» deletedOn | string(date-time)¦null | false | none | none |
»»»»» deletedBy | string¦null | false | none | none |
»»»»» createdOn | string(date-time) | false | none | none |
»»»»» modifiedOn | string(date-time) | false | none | none |
»»»»» createdBy | string | false | none | none |
»»»»» modifiedBy | string | false | none | none |
»»»»» id | string | false | none | none |
»»»»» channelId | string | false | none | none |
»»»»» fileKey | string | false | none | none |
»»»»» messageId | string | false | none | none |
»»»»» metaData | object | false | none | none |
»»»»» message | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»»»»» foreignKey | any | false | none | none |
»»» parentMessage | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»»» foreignKey | any | false | none | none |
»»» messages | [MessageWithRelations] | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»»»» MessageWithRelations | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»» foreignKey | any | false | none | none |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients/{id}/message',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/message-recipients/{id}/message',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /message-recipients/{id}/message
Permissions |
---|
ViewMessage |
1 |
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
Example responses
200 Response
[
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}
]
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Message belonging to MessageRecipient | Inline |
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | [Message] | false | none | none |
» Message | Message | false | none | none |
»» deleted | boolean | false | none | none |
»» deletedOn | string(date-time)¦null | false | none | none |
»» deletedBy | string¦null | false | none | none |
»» createdOn | string(date-time) | false | none | none |
»» modifiedOn | string(date-time) | false | none | none |
»» createdBy | string | false | none | none |
»» modifiedBy | string | false | none | none |
»» id | string | false | none | none |
»» body | string | true | none | none |
»» channelId | string | true | none | none |
»» channelType | string | true | none | none |
»» status | number | false | none | none |
»» subject | string | false | none | none |
»» toUserId | string | false | none | none |
»» parentMessageId | string | false | none | none |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/count',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/count',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /messages/count
Permissions |
---|
ViewMessage |
1 |
Name | In | Type | Required | Description |
---|---|---|---|---|
where | query | object | false | none |
Example responses
200 Response
{
"count": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Message model count | loopback.Count |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}';
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}',
{
method: 'PUT',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
};
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}',
{
method: 'PUT',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PUT /messages/{id}
Permissions |
---|
UpdateMessage |
3 |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
body | body | Message | false | none |
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Message PUT success | None |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}';
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
};
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /messages/{id}
Permissions |
---|
UpdateMessage |
3 |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
body | body | MessagePartial | false | none |
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Message PATCH success | None |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /messages/{id}
Permissions |
---|
ViewMessage |
1 |
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
filter | query | messages.Filter | false | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [],
"attachmentFiles": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {},
"foreignKey": null
}
],
"parentMessage": {},
"foreignKey": null,
"messages": [
{}
]
},
"foreignKey": null
}
],
"attachmentFiles": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {},
"foreignKey": null
}
],
"attachmentFiles": [],
"parentMessage": {},
"foreignKey": null,
"messages": [
{}
]
},
"foreignKey": null
}
],
"parentMessage": {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {},
"foreignKey": null
}
],
"attachmentFiles": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {},
"foreignKey": null
}
],
"parentMessage": {},
"foreignKey": null,
"messages": [
{}
]
},
"foreignKey": null,
"messages": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {},
"foreignKey": null
}
],
"attachmentFiles": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {},
"foreignKey": null
}
],
"parentMessage": {},
"foreignKey": null,
"messages": []
}
]
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Message model instance | MessageWithRelations |
Code samples
const headers = {
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /messages/{id}
Permissions |
---|
DeleteMessage |
4 |
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Message DELETE success | None |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /messages
Permissions |
---|
CreateMessage |
2 |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | NewMessage | false | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Message model instance | Message |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /messages
Permissions |
---|
UpdateMessage |
3 |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
where | query | object | false | none |
body | body | MessagePartial | false | none |
Example responses
200 Response
{
"count": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Message PATCH success count | loopback.Count |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /messages
Permissions |
---|
ViewMessage |
1 |
Name | In | Type | Required | Description |
---|---|---|---|---|
filter | query | messages.Filter1 | false | none |
Example responses
200 Response
[
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {},
"foreignKey": null
}
],
"attachmentFiles": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {},
"foreignKey": null
}
],
"parentMessage": {},
"foreignKey": null,
"messages": [
{}
]
}
]
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Array of Message model instances | Inline |
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | [MessageWithRelations] | false | none | [(tsType: MessageWithRelations, schemaOptions: { includeRelations: true })] |
» MessageWithRelations | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»» deleted | boolean | false | none | none |
»» deletedOn | string(date-time)¦null | false | none | none |
»» deletedBy | string¦null | false | none | none |
»» createdOn | string(date-time) | false | none | none |
»» modifiedOn | string(date-time) | false | none | none |
»» createdBy | string | false | none | none |
»» modifiedBy | string | false | none | none |
»» id | string | false | none | none |
»» body | string | true | none | none |
»» channelId | string | true | none | none |
»» channelType | string | true | none | none |
»» status | number | false | none | none |
»» subject | string | false | none | none |
»» toUserId | string | false | none | none |
»» parentMessageId | string | false | none | none |
»» messageRecipients | [MessageRecipientWithRelations] | false | none | (tsType: MessageRecipientWithRelations, schemaOptions: { includeRelations: true }) |
»»» MessageRecipientWithRelations | MessageRecipientWithRelations | false | none | (tsType: MessageRecipientWithRelations, schemaOptions: { includeRelations: true }) |
»»»» deleted | boolean | false | none | none |
»»»» deletedOn | string(date-time)¦null | false | none | none |
»»»» deletedBy | string¦null | false | none | none |
»»»» createdOn | string(date-time) | false | none | none |
»»»» modifiedOn | string(date-time) | false | none | none |
»»»» createdBy | string | false | none | none |
»»»» modifiedBy | string | false | none | none |
»»»» id | string | false | none | none |
»»»» channelId | string | true | none | none |
»»»» forwardedBy | string | false | none | none |
»»»» isFavorite | boolean | false | none | none |
»»»» isForwarded | boolean | false | none | none |
»»»» isRead | boolean | false | none | none |
»»»» recipientId | string | true | none | none |
»»»» messageId | string | true | none | none |
»»»» message | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»»»» foreignKey | any | false | none | none |
»» attachmentFiles | [AttachmentFileWithRelations] | false | none | (tsType: AttachmentFileWithRelations, schemaOptions: { includeRelations: true }) |
»»» AttachmentFileWithRelations | AttachmentFileWithRelations | false | none | (tsType: AttachmentFileWithRelations, schemaOptions: { includeRelations: true }) |
»»»» deleted | boolean | false | none | none |
»»»» deletedOn | string(date-time)¦null | false | none | none |
»»»» deletedBy | string¦null | false | none | none |
»»»» createdOn | string(date-time) | false | none | none |
»»»» modifiedOn | string(date-time) | false | none | none |
»»»» createdBy | string | false | none | none |
»»»» modifiedBy | string | false | none | none |
»»»» id | string | false | none | none |
»»»» channelId | string | false | none | none |
»»»» fileKey | string | false | none | none |
»»»» messageId | string | false | none | none |
»»»» metaData | object | false | none | none |
»»»» message | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»»»» foreignKey | any | false | none | none |
»» parentMessage | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»» foreignKey | any | false | none | none |
»» messages | [MessageWithRelations] | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
»»» MessageWithRelations | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/message-recipients',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/message-recipients',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /messages/{id}/message-recipients
Permissions |
---|
CreateMessageRecipient |
5 |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
body | body | NewMessageRecipientInMessage | false | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Message model instance | MessageRecipient |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/message-recipients',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/message-recipients',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /messages/{id}/message-recipients
Permissions |
---|
UpdateMessageRecipient |
7 |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
where | query | object | false | none |
body | body | MessageRecipientPartial | false | none |
Example responses
200 Response
{
"count": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Message.MessageRecipient PATCH success count | loopback.Count |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/message-recipients',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/message-recipients',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /messages/{id}/message-recipients
Permissions |
---|
ViewMessageRecipient |
6 |
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
filter | query | object | false | none |
Example responses
200 Response
[
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}
]
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Array of Message has many MessageRecipient | Inline |
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | [MessageRecipient] | false | none | none |
» MessageRecipient | MessageRecipient | false | none | none |
»» deleted | boolean | false | none | none |
»» deletedOn | string(date-time)¦null | false | none | none |
»» deletedBy | string¦null | false | none | none |
»» createdOn | string(date-time) | false | none | none |
»» modifiedOn | string(date-time) | false | none | none |
»» createdBy | string | false | none | none |
»» modifiedBy | string | false | none | none |
»» id | string | false | none | none |
»» channelId | string | true | none | none |
»» forwardedBy | string | false | none | none |
»» isFavorite | boolean | false | none | none |
»» isForwarded | boolean | false | none | none |
»» isRead | boolean | false | none | none |
»» recipientId | string | true | none | none |
»» messageId | string | true | none | none |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/message-recipients',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/message-recipients',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /messages/{id}/message-recipients
Permissions |
---|
DeleteMessageRecipient |
8 |
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
where | query | object | false | none |
Example responses
200 Response
{
"count": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Message.MessageRecipient DELETE success count | loopback.Count |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/messages',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/messages',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /messages/{id}/messages
Permissions |
---|
CreateMessage |
2 |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
body | body | NewMessageInMessage | false | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Message model instance | Message |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/messages',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/messages',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /messages/{id}/messages
Permissions |
---|
UpdateMessage |
3 |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
where | query | object | false | none |
body | body | MessagePartial | false | none |
Example responses
200 Response
{
"count": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Message.Message PATCH success count | loopback.Count |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/messages',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/messages',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /messages/{id}/messages
Permissions |
---|
ViewMessage |
1 |
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
filter | query | object | false | none |
Example responses
200 Response
[
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}
]
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Array of Message has many Message | Inline |
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | [Message] | false | none | none |
» Message | Message | false | none | none |
»» deleted | boolean | false | none | none |
»» deletedOn | string(date-time)¦null | false | none | none |
»» deletedBy | string¦null | false | none | none |
»» createdOn | string(date-time) | false | none | none |
»» modifiedOn | string(date-time) | false | none | none |
»» createdBy | string | false | none | none |
»» modifiedBy | string | false | none | none |
»» id | string | false | none | none |
»» body | string | true | none | none |
»» channelId | string | true | none | none |
»» channelType | string | true | none | none |
»» status | number | false | none | none |
»» subject | string | false | none | none |
»» toUserId | string | false | none | none |
»» parentMessageId | string | false | none | none |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/messages',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/messages/{id}/messages',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /messages/{id}/messages
Permissions |
---|
DeleteMessage |
4 |
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
where | query | object | false | none |
Example responses
200 Response
{
"count": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Message.Message DELETE success count | loopback.Count |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}
Message
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
id | string | false | none | none |
body | string | true | none | none |
channelId | string | true | none | none |
channelType | string | true | none | none |
status | number | false | none | none |
subject | string | false | none | none |
toUserId | string | false | none | none |
parentMessageId | string | false | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}
NewMessage
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
body | string | true | none | none |
channelId | string | true | none | none |
channelType | string | true | none | none |
status | number | false | none | none |
subject | string | false | none | none |
toUserId | string | false | none | none |
parentMessageId | string | false | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [],
"attachmentFiles": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {},
"foreignKey": null
}
],
"parentMessage": {},
"foreignKey": null,
"messages": [
{}
]
},
"foreignKey": null
}
],
"attachmentFiles": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {},
"foreignKey": null
}
],
"attachmentFiles": [],
"parentMessage": {},
"foreignKey": null,
"messages": [
{}
]
},
"foreignKey": null
}
],
"parentMessage": {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {},
"foreignKey": null
}
],
"attachmentFiles": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {},
"foreignKey": null
}
],
"parentMessage": {},
"foreignKey": null,
"messages": [
{}
]
},
"foreignKey": null,
"messages": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {},
"foreignKey": null
}
],
"attachmentFiles": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {},
"foreignKey": null
}
],
"parentMessage": {},
"foreignKey": null,
"messages": []
}
]
}
MessageWithRelations
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
id | string | false | none | none |
body | string | true | none | none |
channelId | string | true | none | none |
channelType | string | true | none | none |
status | number | false | none | none |
subject | string | false | none | none |
toUserId | string | false | none | none |
parentMessageId | string | false | none | none |
messageRecipients | [MessageRecipientWithRelations] | false | none | [(tsType: MessageRecipientWithRelations, schemaOptions: { includeRelations: true })] |
attachmentFiles | [AttachmentFileWithRelations] | false | none | [(tsType: AttachmentFileWithRelations, schemaOptions: { includeRelations: true })] |
parentMessage | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
foreignKey | any | false | none | none |
messages | [MessageWithRelations] | false | none | [(tsType: MessageWithRelations, schemaOptions: { includeRelations: true })] |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}
MessagePartial
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
id | string | false | none | none |
body | string | false | none | none |
channelId | string | false | none | none |
channelType | string | false | none | none |
status | number | false | none | none |
subject | string | false | none | none |
toUserId | string | false | none | none |
parentMessageId | string | false | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}
MessageRecipient
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
id | string | false | none | none |
channelId | string | true | none | none |
forwardedBy | string | false | none | none |
isFavorite | boolean | false | none | none |
isForwarded | boolean | false | none | none |
isRead | boolean | false | none | none |
recipientId | string | true | none | none |
messageId | string | true | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}
NewMessageRecipient
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
channelId | string | true | none | none |
forwardedBy | string | false | none | none |
isFavorite | boolean | false | none | none |
isForwarded | boolean | false | none | none |
isRead | boolean | false | none | none |
recipientId | string | true | none | none |
messageId | string | true | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {},
"foreignKey": null
}
],
"attachmentFiles": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {},
"foreignKey": null
}
],
"parentMessage": {},
"foreignKey": null,
"messages": [
{}
]
},
"foreignKey": null
}
MessageRecipientWithRelations
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
id | string | false | none | none |
channelId | string | true | none | none |
forwardedBy | string | false | none | none |
isFavorite | boolean | false | none | none |
isForwarded | boolean | false | none | none |
isRead | boolean | false | none | none |
recipientId | string | true | none | none |
messageId | string | true | none | none |
message | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
foreignKey | any | false | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}
MessageRecipientPartial
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
id | string | false | none | none |
channelId | string | false | none | none |
forwardedBy | string | false | none | none |
isFavorite | boolean | false | none | none |
isForwarded | boolean | false | none | none |
isRead | boolean | false | none | none |
recipientId | string | false | none | none |
messageId | string | false | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string"
}
NewMessageInMessage
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
body | string | true | none | none |
channelId | string | true | none | none |
channelType | string | true | none | none |
status | number | false | none | none |
subject | string | false | none | none |
toUserId | string | false | none | none |
parentMessageId | string | false | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string"
}
NewMessageRecipientInMessage
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
channelId | string | true | none | none |
forwardedBy | string | false | none | none |
isFavorite | boolean | false | none | none |
isForwarded | boolean | false | none | none |
isRead | boolean | false | none | none |
recipientId | string | true | none | none |
messageId | string | false | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
}
AttachmentFile
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
id | string | false | none | none |
channelId | string | false | none | none |
fileKey | string | false | none | none |
messageId | string | false | none | none |
metaData | object | false | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
}
NewAttachmentFile
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
channelId | string | false | none | none |
fileKey | string | false | none | none |
messageId | string | false | none | none |
metaData | object | false | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"attachmentFiles": [
null
]
}
AttachmentFileDto
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
attachmentFiles | [any] | true | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"attachmentFiles": [
null
]
}
New Attachment Files
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
attachmentFiles | [any] | true | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"body": "string",
"channelId": "string",
"channelType": "string",
"status": 0,
"subject": "string",
"toUserId": "string",
"parentMessageId": "string",
"messageRecipients": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"forwardedBy": "string",
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": "string",
"messageId": "string",
"message": {},
"foreignKey": null
}
],
"attachmentFiles": [
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {},
"message": {},
"foreignKey": null
}
],
"parentMessage": {},
"foreignKey": null,
"messages": [
{}
]
},
"foreignKey": null
}
AttachmentFileWithRelations
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
id | string | false | none | none |
channelId | string | false | none | none |
fileKey | string | false | none | none |
messageId | string | false | none | none |
metaData | object | false | none | none |
message | MessageWithRelations | false | none | (tsType: MessageWithRelations, schemaOptions: { includeRelations: true }) |
foreignKey | any | false | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"createdBy": "string",
"modifiedBy": "string",
"id": "string",
"channelId": "string",
"fileKey": "string",
"messageId": "string",
"metaData": {}
}
AttachmentFilePartial
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
createdBy | string | false | none | none |
modifiedBy | string | false | none | none |
id | string | false | none | none |
channelId | string | false | none | none |
fileKey | string | false | none | none |
messageId | string | false | none | none |
metaData | object | false | none | none |
{
"count": 0
}
loopback.Count
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
count | number | false | none | none |
{
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
message_files.ScopeFilter
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
offset | integer | false | none | none |
limit | integer | false | none | none |
skip | integer | false | none | none |
order | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
where | object | false | none | none |
fields | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | object | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
include | [object] | false | none | none |
{
"relation": "message",
"scope": {
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
}
message_files.IncludeFilter.Items
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
relation | string | false | none | none |
scope | message_files.ScopeFilter | false | none | none |
Property | Value |
---|---|
relation | message |
{
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"fields": {
"deleted": true,
"deletedOn": true,
"deletedBy": true,
"createdOn": true,
"modifiedOn": true,
"createdBy": true,
"modifiedBy": true,
"id": true,
"channelId": true,
"fileKey": true,
"messageId": true,
"metaData": true
},
"include": [
{
"relation": "message",
"scope": {
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
}
]
}
message_files.Filter
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
offset | integer | false | none | none |
limit | integer | false | none | none |
skip | integer | false | none | none |
order | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
fields | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | object | false | none | none |
»» deleted | boolean | false | none | none |
»» deletedOn | boolean | false | none | none |
»» deletedBy | boolean | false | none | none |
»» createdOn | boolean | false | none | none |
»» modifiedOn | boolean | false | none | none |
»» createdBy | boolean | false | none | none |
»» modifiedBy | boolean | false | none | none |
»» id | boolean | false | none | none |
»» channelId | boolean | false | none | none |
»» fileKey | boolean | false | none | none |
»» messageId | boolean | false | none | none |
»» metaData | boolean | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
include | [anyOf] | false | none | none |
anyOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | message_files.IncludeFilter.Items | false | none | none |
or
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
{
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {
"deleted": true,
"deletedOn": true,
"deletedBy": true,
"createdOn": true,
"modifiedOn": true,
"createdBy": true,
"modifiedBy": true,
"id": true,
"channelId": true,
"fileKey": true,
"messageId": true,
"metaData": true
},
"include": [
{
"relation": "message",
"scope": {
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
}
]
}
message_files.Filter
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
offset | integer | false | none | none |
limit | integer | false | none | none |
skip | integer | false | none | none |
order | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
where | object | false | none | none |
fields | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | object | false | none | none |
»» deleted | boolean | false | none | none |
»» deletedOn | boolean | false | none | none |
»» deletedBy | boolean | false | none | none |
»» createdOn | boolean | false | none | none |
»» modifiedOn | boolean | false | none | none |
»» createdBy | boolean | false | none | none |
»» modifiedBy | boolean | false | none | none |
»» id | boolean | false | none | none |
»» channelId | boolean | false | none | none |
»» fileKey | boolean | false | none | none |
»» messageId | boolean | false | none | none |
»» metaData | boolean | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
include | [anyOf] | false | none | none |
anyOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | message_files.IncludeFilter.Items | false | none | none |
or
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
{
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
message_recipients.ScopeFilter
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
offset | integer | false | none | none |
limit | integer | false | none | none |
skip | integer | false | none | none |
order | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
where | object | false | none | none |
fields | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | object | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
include | [object] | false | none | none |
{
"relation": "message",
"scope": {
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
}
message_recipients.IncludeFilter.Items
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
relation | string | false | none | none |
scope | message_recipients.ScopeFilter | false | none | none |
Property | Value |
---|---|
relation | message |
{
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"fields": {
"deleted": true,
"deletedOn": true,
"deletedBy": true,
"createdOn": true,
"modifiedOn": true,
"createdBy": true,
"modifiedBy": true,
"id": true,
"channelId": true,
"forwardedBy": true,
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": true,
"messageId": true
},
"include": [
{
"relation": "message",
"scope": {
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
}
]
}
message_recipients.Filter
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
offset | integer | false | none | none |
limit | integer | false | none | none |
skip | integer | false | none | none |
order | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
fields | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | object | false | none | none |
»» deleted | boolean | false | none | none |
»» deletedOn | boolean | false | none | none |
»» deletedBy | boolean | false | none | none |
»» createdOn | boolean | false | none | none |
»» modifiedOn | boolean | false | none | none |
»» createdBy | boolean | false | none | none |
»» modifiedBy | boolean | false | none | none |
»» id | boolean | false | none | none |
»» channelId | boolean | false | none | none |
»» forwardedBy | boolean | false | none | none |
»» isFavorite | boolean | false | none | none |
»» isForwarded | boolean | false | none | none |
»» isRead | boolean | false | none | none |
»» recipientId | boolean | false | none | none |
»» messageId | boolean | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
include | [anyOf] | false | none | none |
anyOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | message_recipients.IncludeFilter.Items | false | none | none |
or
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
{
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {
"deleted": true,
"deletedOn": true,
"deletedBy": true,
"createdOn": true,
"modifiedOn": true,
"createdBy": true,
"modifiedBy": true,
"id": true,
"channelId": true,
"forwardedBy": true,
"isFavorite": true,
"isForwarded": true,
"isRead": true,
"recipientId": true,
"messageId": true
},
"include": [
{
"relation": "message",
"scope": {
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
}
]
}
message_recipients.Filter
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
offset | integer | false | none | none |
limit | integer | false | none | none |
skip | integer | false | none | none |
order | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
where | object | false | none | none |
fields | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | object | false | none | none |
»» deleted | boolean | false | none | none |
»» deletedOn | boolean | false | none | none |
»» deletedBy | boolean | false | none | none |
»» createdOn | boolean | false | none | none |
»» modifiedOn | boolean | false | none | none |
»» createdBy | boolean | false | none | none |
»» modifiedBy | boolean | false | none | none |
»» id | boolean | false | none | none |
»» channelId | boolean | false | none | none |
»» forwardedBy | boolean | false | none | none |
»» isFavorite | boolean | false | none | none |
»» isForwarded | boolean | false | none | none |
»» isRead | boolean | false | none | none |
»» recipientId | boolean | false | none | none |
»» messageId | boolean | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
include | [anyOf] | false | none | none |
anyOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | message_recipients.IncludeFilter.Items | false | none | none |
or
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
{
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
messages.ScopeFilter
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
offset | integer | false | none | none |
limit | integer | false | none | none |
skip | integer | false | none | none |
order | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
where | object | false | none | none |
fields | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | object | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
include | [object] | false | none | none |
{
"relation": "messageRecipients",
"scope": {
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
}
messages.IncludeFilter.Items
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
relation | string | false | none | none |
scope | messages.ScopeFilter | false | none | none |
Property | Value |
---|---|
relation | messageRecipients |
relation | attachmentFiles |
relation | parentMessage |
relation | messages |
{
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"fields": {
"deleted": true,
"deletedOn": true,
"deletedBy": true,
"createdOn": true,
"modifiedOn": true,
"createdBy": true,
"modifiedBy": true,
"id": true,
"body": true,
"channelId": true,
"channelType": true,
"status": true,
"subject": true,
"toUserId": true,
"parentMessageId": true
},
"include": [
{
"relation": "messageRecipients",
"scope": {
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
}
]
}
messages.Filter
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
offset | integer | false | none | none |
limit | integer | false | none | none |
skip | integer | false | none | none |
order | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
fields | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | object | false | none | none |
»» deleted | boolean | false | none | none |
»» deletedOn | boolean | false | none | none |
»» deletedBy | boolean | false | none | none |
»» createdOn | boolean | false | none | none |
»» modifiedOn | boolean | false | none | none |
»» createdBy | boolean | false | none | none |
»» modifiedBy | boolean | false | none | none |
»» id | boolean | false | none | none |
»» body | boolean | false | none | none |
»» channelId | boolean | false | none | none |
»» channelType | boolean | false | none | none |
»» status | boolean | false | none | none |
»» subject | boolean | false | none | none |
»» toUserId | boolean | false | none | none |
»» parentMessageId | boolean | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
include | [anyOf] | false | none | none |
anyOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | messages.IncludeFilter.Items | false | none | none |
or
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
{
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {
"deleted": true,
"deletedOn": true,
"deletedBy": true,
"createdOn": true,
"modifiedOn": true,
"createdBy": true,
"modifiedBy": true,
"id": true,
"body": true,
"channelId": true,
"channelType": true,
"status": true,
"subject": true,
"toUserId": true,
"parentMessageId": true
},
"include": [
{
"relation": "messageRecipients",
"scope": {
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {},
"include": [
{}
]
}
}
]
}
messages.Filter
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
offset | integer | false | none | none |
limit | integer | false | none | none |
skip | integer | false | none | none |
order | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
where | object | false | none | none |
fields | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | object | false | none | none |
»» deleted | boolean | false | none | none |
»» deletedOn | boolean | false | none | none |
»» deletedBy | boolean | false | none | none |
»» createdOn | boolean | false | none | none |
»» modifiedOn | boolean | false | none | none |
»» createdBy | boolean | false | none | none |
»» modifiedBy | boolean | false | none | none |
»» id | boolean | false | none | none |
»» body | boolean | false | none | none |
»» channelId | boolean | false | none | none |
»» channelType | boolean | false | none | none |
»» status | boolean | false | none | none |
»» subject | boolean | false | none | none |
»» toUserId | boolean | false | none | none |
»» parentMessageId | boolean | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
include | [anyOf] | false | none | none |
anyOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | messages.IncludeFilter.Items | false | none | none |
or
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |