OSTicket API
  • Introduction
  • Get Started
    • How to Use
    • Authentication
    • Request Structure
    • Configuration
  • Ticket
    • 🟢[POST] Add
    • 🟢[POST] Reply
    • 🟢[POST] Close
    • 🔵[GET] Specific
    • 🔵[GET] Status
    • 🔵[GET] Creation Date
    • 🔵[GET] Creation Date by Status
  • Users
    • 🟢[POST] Add
    • 🔵[GET] Specific by ID
    • 🔵[GET] Specific by Email
    • 🔵[GET] Creation Date
  • Departments
    • 🟢[POST] Add
    • 🔵[GET] Specific
    • 🔵[GET] Creation Date
    • 🔵[GET] Name
  • Tasks
    • 🔵[GET] Specific
    • 🔵[GET] Creation Date
    • 🔵[GET] By Ticket
  • SLA
    • 🟢[POST] Add
    • 🔴[DELETE] Delete
    • 🔵[GET] Specific
    • 🔵[GET] Creation Date
  • FAQ
    • 🔵[GET] Specific
    • 🔵[GET] All
  • Topics
    • 🔵[GET] Specific
    • 🔵[GET] All
Powered by GitBook
On this page
  1. Departments

[GET] Creation Date

Fetch all departments by creation between two given dates.

Base URL:

{YOUR-DOMAIN}/upload/ost_wbs/

[ Header ] Authentication

Field
Type
Mandatory

apikey

string

✔️

[ Body ] parameters

Option
Type
Mandatory

query

string

✔️

condition

string

✔️

sort

string

✔️

start_date

string

✔️

end_date

string

✔️

Body request example:

{
"query":"department",
"condition":"all",
"sort": "creationDate",
"parameters":{
    "start_date":"1990-01-01 00:00:00",
    "end_date":"2022-06-17 23:59:59"
    }
}

Status Code

{
    "status": "Success",
    "time": 0.0015869140625,
    "data": {
        "total": 2,
        "departments": [
            {
                "department_id": "1",
                "name": "Support",
                "created": "2022-06-15 11:04:28"
            },
            {
                "department_id": "3",
                "name": "Maintenance",
                "created": "2022-06-15 11:04:28"
            }
        ]
    }
}
{
    "status": "Error",
    "data": "No items found."
}
Previous[GET] SpecificNext[GET] Name

Last updated 2 years ago

🔵