Source: https://support.atomicwork.com/api-reference/requests/postapi-v1-requests-items-item-id

# Create service request for item

POST `https://{tenant}.atomicwork.com/api/v1/requests/items/{item_id}`

## Authorization

#### X-Api-Key (header, string, required)

API key authentication.

## Headers

#### X-Workspace-Id (header, string)

## Path Parameters

#### item\_id (path, integer, required)

The item ID

## Body

#### request\_type (body, string)

#### request\_source (body, enum (string)) — allowed: EMAIL, SLACK, TEAMS, PORTAL, WORKFLOW, JOURNEY, API, UNIVERSAL\_AGENT

#### category (body, string)

#### subcategory (body, string)

#### cti\_item (body, string)

#### description (body, string)

#### email\_content (body, string)

#### status (body, string)

#### priority (body, string)

#### parent\_request\_id (body, integer)

#### agent\_group (body, integer)

ID of the agent group to associate with the request. Members of this group are included in follower notifications when the group is also a request follower.

#### assignee (body, integer)

ID of the user assigned to the request.

#### subject (body, string)

#### notes (body, array of object)

#### properties

#### user\_id (integer)

#### conversation\_id (integer)

When set, the reply is mirrored into this conversation's thread (UAG).

#### description (string)

#### mentions (array of integer)

User IDs mentioned in the note. Mentioned users are notified and added as direct followers.

#### agent\_group\_mentions (array of integer)

Agent group IDs mentioned in the note. Members of these groups are notified
and the groups are added as request followers.

#### is\_private (boolean)

#### source (enum (string)) — allowed: EMAIL, SLACK, TEAMS, PORTAL, WORKFLOW, JOURNEY, API, UNIVERSAL\_AGENT

#### type (enum (string)) — allowed: ESD\_NOTE, SLACK\_NOTE, EMAIL\_NOTE, RATING, TEMPLATE, WORKFLOW\_NOTE

#### attachments (array of integer)

#### cc\_emails (array of string)

#### bcc\_emails (array of string)

#### is\_broadcast (boolean)

#### external\_id (string)

#### external\_source\_type (enum (string)) — allowed: SAAS\_GENIE, SNOW, JSM\_BRIDGE

#### email\_content (string)

#### event\_created\_at (string)

Event creation timestamp. When provided via public API, also backdates the note's created time, SLA metrics, and activity timestamps. Must not be in the future or before the request's creation time.

#### transition (object)

Applied in the same transaction as the note: both commit, or neither does. Takes the same body PATCH /requests/{requestId} accepts

#### workspace\_id (body, integer)

#### conversation\_info (body, object)

#### properties

#### channel\_name (string)

#### channel\_id (string)

#### start\_timestamp (string, required)

#### tags (body, array of integer)

#### cc\_emails (body, array of string)

#### bcc\_emails (body, array of string)

#### attachments (body, array of integer)

#### requester (body, integer)

#### to\_email (body, string)

#### request\_created\_from (body, object)

#### properties

#### id (string)

#### type (enum (string)) — allowed: REQUEST\_SETTINGS

#### custom\_fields (body, object)

#### created\_at (body, string)

#### updated\_at (body, string)

#### external\_id (body, string)

#### external\_source (body, enum (string)) — allowed: SAAS\_GENIE, SNOW, JSM\_BRIDGE

#### resolution\_time (body, string)

When the ticket was resolved in the source system. Only accepted during migration (requires external\_id or external\_source).

#### first\_response\_time (body, string)

When the first agent response occurred in the source system. Only accepted during migration (requires external\_id or external\_source).

#### first\_response\_due\_time (body, string)

SLA due time for first response from the source system. Only accepted during migration (requires external\_id or external\_source).

#### resolution\_due\_time (body, string)

SLA due time for resolution from the source system. Only accepted during migration (requires external\_id or external\_source).

#### closed\_status\_at (body, string)

When the ticket was moved to closed status in the source system. Only accepted during migration (requires external\_id or external\_source). When provided with a closed status, also sets resolution\_time if not explicitly provided.

#### item\_id (body, integer)

#### item\_fields (body, object)

## Response

#### 200

Successful response

#### Request

```bash cURL
curl -X POST 'https://{tenant}.atomicwork.com/api/v1/requests/items/{item_id}' \
  -H 'X-Api-Key: <api-key>' \
  -H 'Content-Type: application/json' \
  -d '{"request_type": "string", "request_source": "EMAIL", "category": "string", "subcategory": "string", "cti_item": "string", "description": "string", "email_content": "string", "status": "string", "priority": "string", "parent_request_id": 0, "agent_group": 0, "assignee": 0, "subject": "string", "notes": [{"user_id": 0, "conversation_id": 0, "description": "string", "mentions": ["\u2026"], "agent_group_mentions": ["\u2026"], "is_private": true, "source": "EMAIL", "type": "ESD_NOTE", "attachments": ["\u2026"], "cc_emails": ["\u2026"], "bcc_emails": ["\u2026"], "is_broadcast": true, "external_id": "string", "external_source_type": "SAAS_GENIE", "email_content": "string", "event_created_at": "date-time", "transition": {}}], "workspace_id": 0, "conversation_info": {"channel_name": "string", "channel_id": "string", "start_timestamp": "unix-timestamp"}, "tags": [0], "cc_emails": ["string"], "bcc_emails": ["string"], "attachments": [0], "requester": 0, "to_email": "string", "request_created_from": {"id": "string", "type": "REQUEST_SETTINGS"}, "custom_fields": {}, "created_at": "date-time", "updated_at": "date-time", "external_id": "string", "external_source": "SAAS_GENIE", "resolution_time": "date-time", "first_response_time": "date-time", "first_response_due_time": "date-time", "resolution_due_time": "date-time", "closed_status_at": "date-time", "item_id": 0, "item_fields": {}}'
```

```javascript JavaScript
const res = await fetch('https://{tenant}.atomicwork.com/api/v1/requests/items/{item_id}', {
  method: 'POST',
  headers: {
    'X-Api-Key': '<api-key>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"request_type": "string", "request_source": "EMAIL", "category": "string", "subcategory": "string", "cti_item": "string", "description": "string", "email_content": "string", "status": "string", "priority": "string", "parent_request_id": 0, "agent_group": 0, "assignee": 0, "subject": "string", "notes": [{"user_id": 0, "conversation_id": 0, "description": "string", "mentions": ["\u2026"], "agent_group_mentions": ["\u2026"], "is_private": true, "source": "EMAIL", "type": "ESD_NOTE", "attachments": ["\u2026"], "cc_emails": ["\u2026"], "bcc_emails": ["\u2026"], "is_broadcast": true, "external_id": "string", "external_source_type": "SAAS_GENIE", "email_content": "string", "event_created_at": "date-time", "transition": {}}], "workspace_id": 0, "conversation_info": {"channel_name": "string", "channel_id": "string", "start_timestamp": "unix-timestamp"}, "tags": [0], "cc_emails": ["string"], "bcc_emails": ["string"], "attachments": [0], "requester": 0, "to_email": "string", "request_created_from": {"id": "string", "type": "REQUEST_SETTINGS"}, "custom_fields": {}, "created_at": "date-time", "updated_at": "date-time", "external_id": "string", "external_source": "SAAS_GENIE", "resolution_time": "date-time", "first_response_time": "date-time", "first_response_due_time": "date-time", "resolution_due_time": "date-time", "closed_status_at": "date-time", "item_id": 0, "item_fields": {}}),
});
const data = await res.json();
```

```python Python
import requests

res = requests.post(
    'https://{tenant}.atomicwork.com/api/v1/requests/items/{item_id}',
    headers={'X-Api-Key': '<api-key>'},
    json={"request_type": "string", "request_source": "EMAIL", "category": "string", "subcategory": "string", "cti_item": "string", "description": "string", "email_content": "string", "status": "string", "priority": "string", "parent_request_id": 0, "agent_group": 0, "assignee": 0, "subject": "string", "notes": [{"user_id": 0, "conversation_id": 0, "description": "string", "mentions": ["\u2026"], "agent_group_mentions": ["\u2026"], "is_private": true, "source": "EMAIL", "type": "ESD_NOTE", "attachments": ["\u2026"], "cc_emails": ["\u2026"], "bcc_emails": ["\u2026"], "is_broadcast": true, "external_id": "string", "external_source_type": "SAAS_GENIE", "email_content": "string", "event_created_at": "date-time", "transition": {}}], "workspace_id": 0, "conversation_info": {"channel_name": "string", "channel_id": "string", "start_timestamp": "unix-timestamp"}, "tags": [0], "cc_emails": ["string"], "bcc_emails": ["string"], "attachments": [0], "requester": 0, "to_email": "string", "request_created_from": {"id": "string", "type": "REQUEST_SETTINGS"}, "custom_fields": {}, "created_at": "date-time", "updated_at": "date-time", "external_id": "string", "external_source": "SAAS_GENIE", "resolution_time": "date-time", "first_response_time": "date-time", "first_response_due_time": "date-time", "resolution_due_time": "date-time", "closed_status_at": "date-time", "item_id": 0, "item_fields": {}}
)
data = res.json()
```
