File tree Expand file tree Collapse file tree 5 files changed +940
-50
lines changed Expand file tree Collapse file tree 5 files changed +940
-50
lines changed Original file line number Diff line number Diff line change @@ -354,6 +354,190 @@ paths:
354354 description : Forbidden
355355 " 404 " :
356356 description : Not Found
357+ /0/projects/{organization_id_or_slug}/{project_id_or_slug}/rules/ :
358+ parameters :
359+ - $ref : " #/components/parameters/organization_id_or_slug"
360+ - $ref : " #/components/parameters/project_id_or_slug"
361+ post :
362+ summary : Create a Rule
363+ operationId : createProjectRule
364+ requestBody :
365+ required : true
366+ content :
367+ application/json :
368+ schema :
369+ type : object
370+ required :
371+ - name
372+ properties :
373+ name :
374+ type : string
375+ environment :
376+ type : string
377+ conditions :
378+ type : array
379+ items :
380+ type : object
381+ required :
382+ - id
383+ - category
384+ - type
385+ properties :
386+ id :
387+ type : string
388+ category :
389+ type : string
390+ type :
391+ type : string
392+ values :
393+ type : array
394+ items :
395+ type : string
396+ actions :
397+ type : array
398+ items :
399+ type : object
400+ required :
401+ - id
402+ - category
403+ - type
404+ properties :
405+ id :
406+ type : string
407+ category :
408+ type : string
409+ type :
410+ type : string
411+ values :
412+ type : array
413+ items :
414+ type : string
415+ responses :
416+ " 201 " :
417+ description : Created
418+ content :
419+ application/json :
420+ schema :
421+ $ref : " #/components/schemas/ProjectRule"
422+ " 202 " :
423+ description : Accepted
424+ content :
425+ application/json :
426+ schema :
427+ type : object
428+ required :
429+ - uuid
430+ properties :
431+ uuid :
432+ type : string
433+ " 401 " :
434+ description : Unauthorized
435+ " 403 " :
436+ description : Forbidden
437+ " 404 " :
438+ description : Not Found
439+ /0/projects/{organization_id_or_slug}/{project_id_or_slug}/rules/{rule_id}/ :
440+ parameters :
441+ - $ref : " #/components/parameters/organization_id_or_slug"
442+ - $ref : " #/components/parameters/project_id_or_slug"
443+ - name : rule_id
444+ in : path
445+ required : true
446+ schema :
447+ type : string
448+ get :
449+ summary : Retrieve a Rule
450+ operationId : getProjectRule
451+ responses :
452+ " 200 " :
453+ description : OK
454+ content :
455+ application/json :
456+ schema :
457+ $ref : " #/components/schemas/ProjectRule"
458+ " 401 " :
459+ description : Unauthorized
460+ " 403 " :
461+ description : Forbidden
462+ " 404 " :
463+ description : Not Found
464+ put :
465+ summary : Update a Rule
466+ operationId : updateProjectRule
467+ requestBody :
468+ required : true
469+ content :
470+ application/json :
471+ schema :
472+ type : object
473+ properties :
474+ name :
475+ type : string
476+ environment :
477+ type : string
478+ conditions :
479+ type : array
480+ items :
481+ type : object
482+ required :
483+ - id
484+ - category
485+ - type
486+ properties :
487+ id :
488+ type : string
489+ category :
490+ type : string
491+ type :
492+ type : string
493+ values :
494+ type : array
495+ items :
496+ type : string
497+ actions :
498+ type : array
499+ items :
500+ type : object
501+ required :
502+ - id
503+ - category
504+ - type
505+ properties :
506+ id :
507+ type : string
508+ category :
509+ type : string
510+ type :
511+ type : string
512+ values :
513+ type : array
514+ items :
515+ type : string
516+ responses :
517+ " 200 " :
518+ description : OK
519+ content :
520+ application/json :
521+ schema :
522+ $ref : " #/components/schemas/ProjectRule"
523+ " 401 " :
524+ description : Unauthorized
525+ " 403 " :
526+ description : Forbidden
527+ " 404 " :
528+ description : Not Found
529+ delete :
530+ summary : Delete a Rule
531+ operationId : deleteProjectRule
532+ responses :
533+ " 204 " :
534+ description : No Content
535+ " 401 " :
536+ description : Unauthorized
537+ " 403 " :
538+ description : Forbidden
539+ " 404 " :
540+ description : Not Found
357541security :
358542 - bearerAuth : []
359543components :
@@ -545,6 +729,54 @@ components:
545729 type : boolean
546730 hasDebug :
547731 type : boolean
732+ ProjectRule :
733+ type : object
734+ required :
735+ - id
736+ - name
737+ - projects
738+ - actionMatch
739+ - filterMatch
740+ - frequency
741+ - environment
742+ - owner
743+ - conditions
744+ - filters
745+ - actions
746+ properties :
747+ id :
748+ type : string
749+ name :
750+ type : string
751+ projects :
752+ type : array
753+ items :
754+ type : string
755+ actionMatch :
756+ type : string
757+ filterMatch :
758+ type : string
759+ frequency :
760+ type : integer
761+ format : int64
762+ environment :
763+ type : string
764+ nullable : true
765+ owner :
766+ type : string
767+ nullable : true
768+ conditions :
769+ type : array
770+ items :
771+ type : object
772+ filters :
773+ type : array
774+ items :
775+ type : object
776+ actions :
777+ type : array
778+ items :
779+ type : object
548780 Team :
549781 type : object
550782 required :
You can’t perform that action at this time.
0 commit comments