|
350 | 350 | } |
351 | 351 | } |
352 | 352 | }, |
353 | | - "/api/v2/administrators/attribute-values/{adminId}/{definitionId}": { |
| 353 | + "/api/v2/administrators/{adminId}/attributes/{definitionId}": { |
354 | 354 | "get": { |
355 | 355 | "tags": [ |
356 | 356 | "admin-attributes" |
357 | 357 | ], |
358 | 358 | "summary": "Gets admin attribute.", |
359 | 359 | "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production. Returns a single attribute.", |
360 | | - "operationId": "993bda3c9e739aebc4691af2f2326f6a", |
| 360 | + "operationId": "c78ef2b0910f4e150dbcd2a6cd0ea27e", |
361 | 361 | "parameters": [ |
362 | 362 | { |
363 | 363 | "name": "definitionId", |
|
432 | 432 | ], |
433 | 433 | "summary": "Create/update an admin attribute.", |
434 | 434 | "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production. Returns created/updated admin attribute.", |
435 | | - "operationId": "675aaea8f721e9bb44ad4037a8cf2911", |
| 435 | + "operationId": "3cc645e3d26cc49501ad67adda844712", |
436 | 436 | "parameters": [ |
437 | 437 | { |
438 | 438 | "name": "php-auth-pw", |
|
518 | 518 | ], |
519 | 519 | "summary": "Deletes an attribute.", |
520 | 520 | "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production. Deletes a single admin attribute.", |
521 | | - "operationId": "4f76366b588001989ec8040c0335d2a4", |
| 521 | + "operationId": "7e8b9cefb17ef3cbb69501820e0d0f6c", |
522 | 522 | "parameters": [ |
523 | 523 | { |
524 | 524 | "name": "php-auth-pw", |
|
575 | 575 | } |
576 | 576 | } |
577 | 577 | }, |
578 | | - "/api/v2/administrators/attribute-values/{adminId}": { |
| 578 | + "/api/v2/administrators/{adminId}/attributes": { |
579 | 579 | "get": { |
580 | 580 | "tags": [ |
581 | 581 | "admin-attributes" |
582 | 582 | ], |
583 | 583 | "summary": "Gets a list of all admin attributes.", |
584 | 584 | "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production. Returns a JSON list of all admin attributes.", |
585 | | - "operationId": "3697baedcd4df34b5b8b78ef0b3238c5", |
| 585 | + "operationId": "d6a09a4d6f2451e72c2a8b23e2fd1911", |
586 | 586 | "parameters": [ |
587 | 587 | { |
588 | 588 | "name": "php-auth-pw", |
|
657 | 657 | } |
658 | 658 | } |
659 | 659 | } |
| 660 | + }, |
| 661 | + "404": { |
| 662 | + "description": "Failure", |
| 663 | + "content": { |
| 664 | + "application/json": { |
| 665 | + "schema": { |
| 666 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 667 | + } |
| 668 | + } |
| 669 | + } |
660 | 670 | } |
661 | 671 | } |
662 | 672 | } |
|
776 | 786 | } |
777 | 787 | } |
778 | 788 | }, |
779 | | - "/api/v2/administrators/{administratorId}": { |
| 789 | + "/api/v2/administrators/{adminId}": { |
780 | 790 | "get": { |
781 | 791 | "tags": [ |
782 | 792 | "administrators" |
783 | 793 | ], |
784 | 794 | "summary": "Get Administrator", |
785 | 795 | "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production. Get administrator by ID.", |
786 | | - "operationId": "7b0c7aa05f2c6230af358826c3e6755a", |
| 796 | + "operationId": "71a302c638b746ec7169b15da4ae7c9a", |
787 | 797 | "parameters": [ |
788 | 798 | { |
789 | | - "name": "administratorId", |
| 799 | + "name": "adminId", |
790 | 800 | "in": "path", |
791 | 801 | "description": "Administrator ID", |
792 | 802 | "required": true, |
|
826 | 836 | ], |
827 | 837 | "summary": "Update Administrator", |
828 | 838 | "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production. Update an administrator.", |
829 | | - "operationId": "08cb2e738c87f73709980cb140528918", |
| 839 | + "operationId": "53023c81474020aca57ac09031e1c49c", |
830 | 840 | "parameters": [ |
831 | 841 | { |
832 | | - "name": "administratorId", |
| 842 | + "name": "adminId", |
833 | 843 | "in": "path", |
834 | 844 | "description": "Administrator ID", |
835 | 845 | "required": true, |
|
880 | 890 | ], |
881 | 891 | "summary": "Delete Administrator", |
882 | 892 | "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production. Delete an administrator.", |
883 | | - "operationId": "18f8713da580af36ce4b9909a8a1c01e", |
| 893 | + "operationId": "52cdf4ca32e2fe304993bdac19c1bc92", |
884 | 894 | "parameters": [ |
885 | 895 | { |
886 | | - "name": "administratorId", |
| 896 | + "name": "adminId", |
887 | 897 | "in": "path", |
888 | 898 | "description": "Administrator ID", |
889 | 899 | "required": true, |
|
1705 | 1715 | } |
1706 | 1716 | } |
1707 | 1717 | } |
| 1718 | + }, |
| 1719 | + "404": { |
| 1720 | + "description": "Failure", |
| 1721 | + "content": { |
| 1722 | + "application/json": { |
| 1723 | + "schema": { |
| 1724 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 1725 | + } |
| 1726 | + } |
| 1727 | + } |
1708 | 1728 | } |
1709 | 1729 | } |
1710 | 1730 | }, |
|
1791 | 1811 | } |
1792 | 1812 | } |
1793 | 1813 | }, |
| 1814 | + "404": { |
| 1815 | + "description": "Failure", |
| 1816 | + "content": { |
| 1817 | + "application/json": { |
| 1818 | + "schema": { |
| 1819 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 1820 | + } |
| 1821 | + } |
| 1822 | + } |
| 1823 | + }, |
1794 | 1824 | "422": { |
1795 | 1825 | "description": "Failure", |
1796 | 1826 | "content": { |
|
2418 | 2448 | "content": { |
2419 | 2449 | "multipart/form-data": { |
2420 | 2450 | "schema": { |
2421 | | - "required": [ |
2422 | | - "title" |
2423 | | - ], |
2424 | | - "properties": { |
2425 | | - "title": { |
2426 | | - "type": "string", |
2427 | | - "example": "Newsletter Template" |
2428 | | - }, |
2429 | | - "content": { |
2430 | | - "type": "string", |
2431 | | - "example": "<html><body>[CONTENT]</body></html>" |
2432 | | - }, |
2433 | | - "text": { |
2434 | | - "type": "string", |
2435 | | - "example": "[CONTENT]" |
2436 | | - }, |
2437 | | - "file": { |
2438 | | - "description": "Optional file upload for HTML content", |
2439 | | - "type": "string", |
2440 | | - "format": "binary" |
2441 | | - }, |
2442 | | - "check_links": { |
2443 | | - "description": "Check that all links have full URLs", |
2444 | | - "type": "boolean", |
2445 | | - "example": true |
2446 | | - }, |
2447 | | - "check_images": { |
2448 | | - "description": "Check that all images have full URLs", |
2449 | | - "type": "boolean", |
2450 | | - "example": false |
2451 | | - }, |
2452 | | - "check_external_images": { |
2453 | | - "description": "Check that all external images exist", |
2454 | | - "type": "boolean", |
2455 | | - "example": true |
2456 | | - } |
2457 | | - }, |
2458 | | - "type": "object" |
| 2451 | + "$ref": "#/components/schemas/CreateTemplateRequest" |
2459 | 2452 | } |
2460 | 2453 | } |
2461 | 2454 | } |
|
3549 | 3542 | } |
3550 | 3543 | } |
3551 | 3544 | } |
| 3545 | + }, |
| 3546 | + "404": { |
| 3547 | + "description": "Failure", |
| 3548 | + "content": { |
| 3549 | + "application/json": { |
| 3550 | + "schema": { |
| 3551 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 3552 | + } |
| 3553 | + } |
| 3554 | + } |
3552 | 3555 | } |
3553 | 3556 | } |
3554 | 3557 | } |
|
5855 | 5858 | }, |
5856 | 5859 | "type": "object" |
5857 | 5860 | }, |
| 5861 | + "CreateTemplateRequest": { |
| 5862 | + "required": [ |
| 5863 | + "title" |
| 5864 | + ], |
| 5865 | + "properties": { |
| 5866 | + "title": { |
| 5867 | + "type": "string", |
| 5868 | + "example": "Newsletter Template" |
| 5869 | + }, |
| 5870 | + "content": { |
| 5871 | + "type": "string", |
| 5872 | + "example": "<html><body>[CONTENT]</body></html>" |
| 5873 | + }, |
| 5874 | + "text": { |
| 5875 | + "type": "string", |
| 5876 | + "example": "[CONTENT]" |
| 5877 | + }, |
| 5878 | + "file": { |
| 5879 | + "description": "Optional file upload for HTML content", |
| 5880 | + "type": "string", |
| 5881 | + "format": "binary" |
| 5882 | + }, |
| 5883 | + "check_links": { |
| 5884 | + "description": "Check that all links have full URLs", |
| 5885 | + "type": "boolean", |
| 5886 | + "example": true |
| 5887 | + }, |
| 5888 | + "check_images": { |
| 5889 | + "description": "Check that all images have full URLs", |
| 5890 | + "type": "boolean", |
| 5891 | + "example": false |
| 5892 | + }, |
| 5893 | + "check_external_images": { |
| 5894 | + "description": "Check that all external images exist", |
| 5895 | + "type": "boolean", |
| 5896 | + "example": true |
| 5897 | + } |
| 5898 | + }, |
| 5899 | + "type": "object" |
| 5900 | + }, |
5858 | 5901 | "MessageContentRequest": { |
5859 | 5902 | "required": [ |
5860 | 5903 | "subject", |
|
0 commit comments