Record that a ticket can be in emergency, or not

This commit is contained in:
2025-06-24 10:42:51 +00:00
parent d43b739654
commit 0a331aab37
22 changed files with 896 additions and 5 deletions

View File

@@ -255,3 +255,36 @@ paths:
description: "OK"
401:
description: "UNAUTHORIZED"
/1.0/ticket/ticket/{id}/emergency/{emergency}:
post:
tags:
- ticket
summary: Set a ticket as emergency
description: |
Re-open an existing ticket.
If the ticket is already opened, no action will be performed on this ticket: his state will remains unchanged, and the
ticket will be returned.
parameters:
- name: id
in: path
required: true
description: The ticket id
schema:
type: integer
format: integer
minimum: 1
- name: emergency
in: path
required: true
description: the new state of emergency
schema:
type: string
enum:
- yes
- no
responses:
200:
description: "OK"
401:
description: "UNAUTHORIZED"