Update a Request
client.cloudforceOne.requests.update(stringrequestId, RequestUpdateParams { account_id, content, priority, 3 more } params, RequestOptionsoptions?): Item { id, content, created, 10 more }
PUT/accounts/{account_id}/cloudforce-one/requests/{request_id}
Updating a request alters the request in the Cloudforce One queue. This API may be used to update any attributes of the request after the initial submission. Only fields that you choose to update need to be add to the request body.
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)
Update a Request
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 item = await client.cloudforceOne.requests.update('f174e90a-fafe-4643-bbbc-4a0ed4fc8415', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
console.log(item.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": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"content": "What regions were most effected by the recent DoS?",
"created": "2022-04-01T05:20:00Z",
"priority": "2022-04-01T05:20:00Z",
"request": "Victomology",
"summary": "DoS attack",
"tlp": "clear",
"updated": "2022-04-01T05:20:00Z",
"completed": "2022-04-01T05:20:00Z",
"message_tokens": 1,
"readable_id": "RFI-2022-000001",
"status": "open",
"tokens": 16
}
}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": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"content": "What regions were most effected by the recent DoS?",
"created": "2022-04-01T05:20:00Z",
"priority": "2022-04-01T05:20:00Z",
"request": "Victomology",
"summary": "DoS attack",
"tlp": "clear",
"updated": "2022-04-01T05:20:00Z",
"completed": "2022-04-01T05:20:00Z",
"message_tokens": 1,
"readable_id": "RFI-2022-000001",
"status": "open",
"tokens": 16
}
}