POST
/
v1
/
requests
/
batch_import
curl --request POST \
  --url https://api.siit.io/v1/requests/batch_import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "items": [
    {
      "title": "<string>",
      "description": "<string>",
      "priority": "low",
      "target_uid": "<string>",
      "requested_by_uid": "<string>",
      "assignee_admin_uid": "<string>",
      "completed_at": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}'
{
  "results": [
    {
      "uid": "<string>",
      "title": "<string>",
      "description": "<string>",
      "priority": "low",
      "submitted_from": "employee_portal",
      "author_uid": "<string>",
      "requested_by_uid": "<string>",
      "assignee_admin_uid": "<string>",
      "assignee_inbox_uid": "<string>",
      "target_uid": "<string>",
      "admin_permalink_url": "<string>",
      "mode": "private",
      "status": "open",
      "friendly_id": "<string>",
      "slack_channel_id": "<string>",
      "slack_thread_ts": "<string>",
      "slack_ts": "<string>",
      "completed_at": "2023-11-07T05:31:56Z",
      "completed_by_uid": "<string>",
      "tag_uids": [
        "<string>"
      ],
      "custom_form_inputs": [
        {
          "label": "<string>",
          "kind": "attachment",
          "value": "<string>"
        }
      ],
      "sla_data": {
        "first_replied_at": "2023-11-07T05:31:56Z",
        "first_completed_at": "2023-11-07T05:31:56Z"
      },
      "updated_at": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Introduction

This endpoint allows you to import previous requests (e.g., from another ticketing system).

Please note that:

  1. These requests will be imported with a resolved status.
  2. You can override the created_at field.
  3. You can import up to 200 requests at once.
  4. Any row that fails to import will abort the whole process.
  5. Workflows won’t be triggered.
  6. Notifications won’t be sent out.
  7. Imported records will appear as if they were created from the Admin Dashboard.

Usage

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
items
object[]
required

Response

201
application/json
Request created
results
object[]