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. Ticket

[POST] Close

Change state of a ticket

Previous[POST] ReplyNext[GET] Specific

Last updated 2 years ago

Base URL:

{YOUR-DOMAIN}/upload/ost_wbs/

[ Header ] Authentication

Field
Type
Mandatory

apikey

string

✔️

[ Body ] parameters

Option
Type
Mandatory

query

string

✔️

condition

string

✔️

ticket_id

int

✔️

body

string

✔️

staff_id

int

✔️

status_id

int

✔️

team_id

int

✔️

dept_id

int

✔️

topic_id

int

✔️

username

string

✔️

Body request example:

{
"query":"ticket",
"condition":"close",
"parameters":{
    "ticket_id":1,
    "body":"<p>Ticket closed. Thank You!</p>",
    "staff_id":1,
    "status_id":3,
    "team_id":1,
    "dept_id":2,
    "topic_id":1,
    "username": "Bruno Vieira"
    }
}

Status Code

{
    "status": "Success",
    "time": 0.09253191947937012,
    "data": "Success! Row 1 affected."
}
🟢
Click here to see all Ticket Status available