File tree 1 file changed +44
-0
lines changed
1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -340,6 +340,50 @@ paths:
340
340
NoQueryParametersBadRequestError :
341
341
$ref : " #/components/examples/InternalServerError"
342
342
343
+ /v1/persons/{hmppsId}/alerts/pnd :
344
+ get :
345
+ tags :
346
+ - persons
347
+ - alerts
348
+ summary : Returns alerts associated with a person.
349
+ parameters :
350
+ - $ref : " #/components/parameters/HmppsId"
351
+ - $ref : " #/components/parameters/Page"
352
+ - $ref : " #/components/parameters/PerPage"
353
+ responses :
354
+ " 200 " :
355
+ description : Successfully found alerts for a person with the provided HMPPS ID.
356
+ content :
357
+ application/json :
358
+ schema :
359
+ type : object
360
+ properties :
361
+ data :
362
+ type : array
363
+ minItems : 0
364
+ items :
365
+ $ref : " #/components/schemas/Alert"
366
+ pagination :
367
+ $ref : " #/components/schemas/Pagination"
368
+ " 404 " :
369
+ description : Failed to find alerts a person with the provided HMPPS ID.
370
+ content :
371
+ application/json :
372
+ schema :
373
+ $ref : " #/components/schemas/Error"
374
+ examples :
375
+ PersonNotFoundError :
376
+ $ref : " #/components/examples/PersonNotFoundError"
377
+ " 500 " :
378
+ description : An upstream service was not responding, so we cannot verify the accuracy of any data we did get.
379
+ content :
380
+ application/json :
381
+ schema :
382
+ $ref : " #/components/schemas/Error"
383
+ examples :
384
+ NoQueryParametersBadRequestError :
385
+ $ref : " #/components/examples/InternalServerError"
386
+
343
387
/v1/persons/{hmppsId}/sentences :
344
388
get :
345
389
tags :
You can’t perform that action at this time.
0 commit comments