Create a New Request Message
client.cloudforceOne.requests.message.create(stringrequestId, MessageCreateParams { account_id, content } params, RequestOptionsoptions?): Message { id, author, content, 3 more }
POST/accounts/{account_id}/cloudforce-one/requests/{request_id}/message/new
Adds a message to a Cloudforce One intelligence request conversation.
Security
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Create a New Request Message
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiEmail: process.env['CLOUDFLARE_EMAIL'], // This is the default and can be omitted
apiKey: process.env['CLOUDFLARE_API_KEY'], // This is the default and can be omitted
});
const message = await client.cloudforceOne.requests.message.create(
'f174e90a-fafe-4643-bbbc-4a0ed4fc8415',
{ account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
);
console.log(message.id);{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"id": 0,
"author": "user@domain.com",
"content": "Can you elaborate on the type of DoS that occurred?",
"is_follow_on_request": true,
"updated": "2022-01-01T00:00:00Z",
"created": "2022-01-01T00:00:00Z"
}
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"id": 0,
"author": "user@domain.com",
"content": "Can you elaborate on the type of DoS that occurred?",
"is_follow_on_request": true,
"updated": "2022-01-01T00:00:00Z",
"created": "2022-01-01T00:00:00Z"
}
}