mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2026-01-06 14:23:57 +01:00
@@ -2759,101 +2759,6 @@
|
||||
"tags" : [ "tickets" ]
|
||||
}
|
||||
},
|
||||
"/tickets/{id}/files" : {
|
||||
"put" : {
|
||||
"description" : "Link files to an ticket. The files themself will be stored in object storage.",
|
||||
"operationId" : "linkFiles",
|
||||
"parameters" : [ {
|
||||
"description" : "Ticket ID",
|
||||
"example" : 8125,
|
||||
"in" : "path",
|
||||
"name" : "id",
|
||||
"required" : true,
|
||||
"schema" : {
|
||||
"format" : "int64",
|
||||
"type" : "integer"
|
||||
}
|
||||
} ],
|
||||
"requestBody" : {
|
||||
"content" : {
|
||||
"application/json" : {
|
||||
"schema" : {
|
||||
"items" : {
|
||||
"$ref" : "#/components/schemas/File"
|
||||
},
|
||||
"type" : "array"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description" : "Added files",
|
||||
"required" : true
|
||||
},
|
||||
"responses" : {
|
||||
"200" : {
|
||||
"content" : {
|
||||
"application/json" : {
|
||||
"schema" : {
|
||||
"$ref" : "#/components/schemas/TicketWithTickets"
|
||||
}
|
||||
},
|
||||
"test" : {
|
||||
"example" : {
|
||||
"created" : "2021-10-02T16:04:59.078+0000",
|
||||
"files" : [ {
|
||||
"key" : "myfile",
|
||||
"name" : "document.doc"
|
||||
} ],
|
||||
"id" : 8125,
|
||||
"modified" : "2021-12-12T12:12:12.000+0000",
|
||||
"name" : "phishing from selenafadel@von.com detected",
|
||||
"owner" : "demo",
|
||||
"references" : [ {
|
||||
"href" : "https://www.seniorleading-edge.name/users/efficient",
|
||||
"name" : "recovery"
|
||||
}, {
|
||||
"href" : "http://www.dynamicseamless.com/clicks-and-mortar",
|
||||
"name" : "force"
|
||||
}, {
|
||||
"href" : "http://www.leadscalable.biz/envisioneer",
|
||||
"name" : "fund"
|
||||
} ],
|
||||
"schema" : "{}",
|
||||
"status" : "closed",
|
||||
"tickets" : [ {
|
||||
"created" : "2021-10-02T16:04:59.078+0000",
|
||||
"id" : 8126,
|
||||
"modified" : "2021-10-02T16:04:59.078+0000",
|
||||
"name" : "Surfaceintroduce virus detected",
|
||||
"owner" : "demo",
|
||||
"references" : [ {
|
||||
"href" : "http://www.centralworld-class.io/synthesize",
|
||||
"name" : "university"
|
||||
}, {
|
||||
"href" : "https://www.futurevirtual.org/supply-chains/markets/sticky/iterate",
|
||||
"name" : "goal"
|
||||
}, {
|
||||
"href" : "http://www.chiefsyndicate.io/action-items",
|
||||
"name" : "unemployment"
|
||||
} ],
|
||||
"schema" : "{}",
|
||||
"status" : "closed",
|
||||
"type" : "alert"
|
||||
} ],
|
||||
"type" : "alert"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description" : "successful operation"
|
||||
}
|
||||
},
|
||||
"security" : [ {
|
||||
"roles" : [ "ticket:write" ]
|
||||
} ],
|
||||
"summary" : "Link files to an ticket",
|
||||
"tags" : [ "tickets" ],
|
||||
"x-codegen-request-body-name" : "files"
|
||||
}
|
||||
},
|
||||
"/tickets/{id}/playbooks" : {
|
||||
"post" : {
|
||||
"operationId" : "addTicketPlaybook",
|
||||
|
||||
Reference in New Issue
Block a user