Changeset 58216
- Timestamp:
- 05/27/2024 07:03:49 PM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/qunit/fixtures/wp-api-generated.js
r58184 r58216 2712 2712 ], 2713 2713 "default": "view", 2714 "required": false2715 }2716 }2717 }2718 ]2719 },2720 "/wp/v2/menu-items": {2721 "namespace": "wp/v2",2722 "methods": [2723 "GET",2724 "POST"2725 ],2726 "endpoints": [2727 {2728 "methods": [2729 "GET"2730 ],2731 "allow_batch": {2732 "v1": true2733 },2734 "args": {2735 "context": {2736 "description": "Scope under which the request is made; determines fields present in response.",2737 "type": "string",2738 "enum": [2739 "view",2740 "embed",2741 "edit"2742 ],2743 "default": "view",2744 "required": false2745 },2746 "page": {2747 "description": "Current page of the collection.",2748 "type": "integer",2749 "default": 1,2750 "minimum": 1,2751 "required": false2752 },2753 "per_page": {2754 "description": "Maximum number of items to be returned in result set.",2755 "type": "integer",2756 "default": 100,2757 "minimum": 1,2758 "maximum": 100,2759 "required": false2760 },2761 "search": {2762 "description": "Limit results to those matching a string.",2763 "type": "string",2764 "required": false2765 },2766 "after": {2767 "description": "Limit response to posts published after a given ISO8601 compliant date.",2768 "type": "string",2769 "format": "date-time",2770 "required": false2771 },2772 "modified_after": {2773 "description": "Limit response to posts modified after a given ISO8601 compliant date.",2774 "type": "string",2775 "format": "date-time",2776 "required": false2777 },2778 "before": {2779 "description": "Limit response to posts published before a given ISO8601 compliant date.",2780 "type": "string",2781 "format": "date-time",2782 "required": false2783 },2784 "modified_before": {2785 "description": "Limit response to posts modified before a given ISO8601 compliant date.",2786 "type": "string",2787 "format": "date-time",2788 "required": false2789 },2790 "exclude": {2791 "description": "Ensure result set excludes specific IDs.",2792 "type": "array",2793 "items": {2794 "type": "integer"2795 },2796 "default": [],2797 "required": false2798 },2799 "include": {2800 "description": "Limit result set to specific IDs.",2801 "type": "array",2802 "items": {2803 "type": "integer"2804 },2805 "default": [],2806 "required": false2807 },2808 "offset": {2809 "description": "Offset the result set by a specific number of items.",2810 "type": "integer",2811 "required": false2812 },2813 "order": {2814 "description": "Order sort attribute ascending or descending.",2815 "type": "string",2816 "default": "asc",2817 "enum": [2818 "asc",2819 "desc"2820 ],2821 "required": false2822 },2823 "orderby": {2824 "description": "Sort collection by object attribute.",2825 "type": "string",2826 "default": "menu_order",2827 "enum": [2828 "author",2829 "date",2830 "id",2831 "include",2832 "modified",2833 "parent",2834 "relevance",2835 "slug",2836 "include_slugs",2837 "title",2838 "menu_order"2839 ],2840 "required": false2841 },2842 "search_columns": {2843 "default": [],2844 "description": "Array of column names to be searched.",2845 "type": "array",2846 "items": {2847 "enum": [2848 "post_title",2849 "post_content",2850 "post_excerpt"2851 ],2852 "type": "string"2853 },2854 "required": false2855 },2856 "slug": {2857 "description": "Limit result set to posts with one or more specific slugs.",2858 "type": "array",2859 "items": {2860 "type": "string"2861 },2862 "required": false2863 },2864 "status": {2865 "default": "publish",2866 "description": "Limit result set to posts assigned one or more statuses.",2867 "type": "array",2868 "items": {2869 "enum": [2870 "publish",2871 "future",2872 "draft",2873 "pending",2874 "private",2875 "trash",2876 "auto-draft",2877 "inherit",2878 "request-pending",2879 "request-confirmed",2880 "request-failed",2881 "request-completed",2882 "any"2883 ],2884 "type": "string"2885 },2886 "required": false2887 },2888 "tax_relation": {2889 "description": "Limit result set based on relationship between multiple taxonomies.",2890 "type": "string",2891 "enum": [2892 "AND",2893 "OR"2894 ],2895 "required": false2896 },2897 "menus": {2898 "description": "Limit result set to items with specific terms assigned in the menus taxonomy.",2899 "type": [2900 "object",2901 "array"2902 ],2903 "oneOf": [2904 {2905 "title": "Term ID List",2906 "description": "Match terms with the listed IDs.",2907 "type": "array",2908 "items": {2909 "type": "integer"2910 }2911 },2912 {2913 "title": "Term ID Taxonomy Query",2914 "description": "Perform an advanced term query.",2915 "type": "object",2916 "properties": {2917 "terms": {2918 "description": "Term IDs.",2919 "type": "array",2920 "items": {2921 "type": "integer"2922 },2923 "default": []2924 },2925 "operator": {2926 "description": "Whether items must be assigned all or any of the specified terms.",2927 "type": "string",2928 "enum": [2929 "AND",2930 "OR"2931 ],2932 "default": "OR"2933 }2934 },2935 "additionalProperties": false2936 }2937 ],2938 "required": false2939 },2940 "menus_exclude": {2941 "description": "Limit result set to items except those with specific terms assigned in the menus taxonomy.",2942 "type": [2943 "object",2944 "array"2945 ],2946 "oneOf": [2947 {2948 "title": "Term ID List",2949 "description": "Match terms with the listed IDs.",2950 "type": "array",2951 "items": {2952 "type": "integer"2953 }2954 },2955 {2956 "title": "Term ID Taxonomy Query",2957 "description": "Perform an advanced term query.",2958 "type": "object",2959 "properties": {2960 "terms": {2961 "description": "Term IDs.",2962 "type": "array",2963 "items": {2964 "type": "integer"2965 },2966 "default": []2967 }2968 },2969 "additionalProperties": false2970 }2971 ],2972 "required": false2973 },2974 "menu_order": {2975 "description": "Limit result set to posts with a specific menu_order value.",2976 "type": "integer",2977 "required": false2978 }2979 }2980 },2981 {2982 "methods": [2983 "POST"2984 ],2985 "allow_batch": {2986 "v1": true2987 },2988 "args": {2989 "title": {2990 "description": "The title for the object.",2991 "type": [2992 "string",2993 "object"2994 ],2995 "properties": {2996 "raw": {2997 "description": "Title for the object, as it exists in the database.",2998 "type": "string",2999 "context": [3000 "edit"3001 ]3002 },3003 "rendered": {3004 "description": "HTML title for the object, transformed for display.",3005 "type": "string",3006 "context": [3007 "view",3008 "edit",3009 "embed"3010 ],3011 "readonly": true3012 }3013 },3014 "required": false3015 },3016 "type": {3017 "default": "custom",3018 "description": "The family of objects originally represented, such as \"post_type\" or \"taxonomy\".",3019 "type": "string",3020 "enum": [3021 "taxonomy",3022 "post_type",3023 "post_type_archive",3024 "custom"3025 ],3026 "required": false3027 },3028 "status": {3029 "default": "publish",3030 "description": "A named status for the object.",3031 "type": "string",3032 "enum": [3033 "publish",3034 "future",3035 "draft",3036 "pending",3037 "private"3038 ],3039 "required": false3040 },3041 "parent": {3042 "default": 0,3043 "description": "The ID for the parent of the object.",3044 "type": "integer",3045 "minimum": 0,3046 "required": false3047 },3048 "attr_title": {3049 "description": "Text for the title attribute of the link element for this menu item.",3050 "type": "string",3051 "required": false3052 },3053 "classes": {3054 "description": "Class names for the link element of this menu item.",3055 "type": "array",3056 "items": {3057 "type": "string"3058 },3059 "required": false3060 },3061 "description": {3062 "description": "The description of this menu item.",3063 "type": "string",3064 "required": false3065 },3066 "menu_order": {3067 "default": 1,3068 "description": "The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.",3069 "type": "integer",3070 "minimum": 1,3071 "required": false3072 },3073 "object": {3074 "description": "The type of object originally represented, such as \"category\", \"post\", or \"attachment\".",3075 "type": "string",3076 "required": false3077 },3078 "object_id": {3079 "default": 0,3080 "description": "The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.",3081 "type": "integer",3082 "minimum": 0,3083 "required": false3084 },3085 "target": {3086 "description": "The target attribute of the link element for this menu item.",3087 "type": "string",3088 "enum": [3089 "_blank",3090 ""3091 ],3092 "required": false3093 },3094 "url": {3095 "description": "The URL to which this menu item points.",3096 "type": "string",3097 "format": "uri",3098 "required": false3099 },3100 "xfn": {3101 "description": "The XFN relationship expressed in the link of this menu item.",3102 "type": "array",3103 "items": {3104 "type": "string"3105 },3106 "required": false3107 },3108 "menus": {3109 "description": "The terms assigned to the object in the nav_menu taxonomy.",3110 "type": "integer",3111 "required": false3112 },3113 "meta": {3114 "description": "Meta fields.",3115 "type": "object",3116 "properties": [],3117 "required": false3118 }3119 }3120 }3121 ],3122 "_links": {3123 "self": [3124 {3125 "href": "http://example.org/index.php?rest_route=/wp/v2/menu-items"3126 }3127 ]3128 }3129 },3130 "/wp/v2/menu-items/(?P<id>[\\d]+)": {3131 "namespace": "wp/v2",3132 "methods": [3133 "GET",3134 "POST",3135 "PUT",3136 "PATCH",3137 "DELETE"3138 ],3139 "endpoints": [3140 {3141 "methods": [3142 "GET"3143 ],3144 "allow_batch": {3145 "v1": true3146 },3147 "args": {3148 "id": {3149 "description": "Unique identifier for the post.",3150 "type": "integer",3151 "required": false3152 },3153 "context": {3154 "description": "Scope under which the request is made; determines fields present in response.",3155 "type": "string",3156 "enum": [3157 "view",3158 "embed",3159 "edit"3160 ],3161 "default": "view",3162 "required": false3163 }3164 }3165 },3166 {3167 "methods": [3168 "POST",3169 "PUT",3170 "PATCH"3171 ],3172 "allow_batch": {3173 "v1": true3174 },3175 "args": {3176 "id": {3177 "description": "Unique identifier for the post.",3178 "type": "integer",3179 "required": false3180 },3181 "title": {3182 "description": "The title for the object.",3183 "type": [3184 "string",3185 "object"3186 ],3187 "properties": {3188 "raw": {3189 "description": "Title for the object, as it exists in the database.",3190 "type": "string",3191 "context": [3192 "edit"3193 ]3194 },3195 "rendered": {3196 "description": "HTML title for the object, transformed for display.",3197 "type": "string",3198 "context": [3199 "view",3200 "edit",3201 "embed"3202 ],3203 "readonly": true3204 }3205 },3206 "required": false3207 },3208 "type": {3209 "description": "The family of objects originally represented, such as \"post_type\" or \"taxonomy\".",3210 "type": "string",3211 "enum": [3212 "taxonomy",3213 "post_type",3214 "post_type_archive",3215 "custom"3216 ],3217 "required": false3218 },3219 "status": {3220 "description": "A named status for the object.",3221 "type": "string",3222 "enum": [3223 "publish",3224 "future",3225 "draft",3226 "pending",3227 "private"3228 ],3229 "required": false3230 },3231 "parent": {3232 "description": "The ID for the parent of the object.",3233 "type": "integer",3234 "minimum": 0,3235 "required": false3236 },3237 "attr_title": {3238 "description": "Text for the title attribute of the link element for this menu item.",3239 "type": "string",3240 "required": false3241 },3242 "classes": {3243 "description": "Class names for the link element of this menu item.",3244 "type": "array",3245 "items": {3246 "type": "string"3247 },3248 "required": false3249 },3250 "description": {3251 "description": "The description of this menu item.",3252 "type": "string",3253 "required": false3254 },3255 "menu_order": {3256 "description": "The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.",3257 "type": "integer",3258 "minimum": 1,3259 "required": false3260 },3261 "object": {3262 "description": "The type of object originally represented, such as \"category\", \"post\", or \"attachment\".",3263 "type": "string",3264 "required": false3265 },3266 "object_id": {3267 "description": "The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.",3268 "type": "integer",3269 "minimum": 0,3270 "required": false3271 },3272 "target": {3273 "description": "The target attribute of the link element for this menu item.",3274 "type": "string",3275 "enum": [3276 "_blank",3277 ""3278 ],3279 "required": false3280 },3281 "url": {3282 "description": "The URL to which this menu item points.",3283 "type": "string",3284 "format": "uri",3285 "required": false3286 },3287 "xfn": {3288 "description": "The XFN relationship expressed in the link of this menu item.",3289 "type": "array",3290 "items": {3291 "type": "string"3292 },3293 "required": false3294 },3295 "menus": {3296 "description": "The terms assigned to the object in the nav_menu taxonomy.",3297 "type": "integer",3298 "required": false3299 },3300 "meta": {3301 "description": "Meta fields.",3302 "type": "object",3303 "properties": [],3304 "required": false3305 }3306 }3307 },3308 {3309 "methods": [3310 "DELETE"3311 ],3312 "allow_batch": {3313 "v1": true3314 },3315 "args": {3316 "id": {3317 "description": "Unique identifier for the post.",3318 "type": "integer",3319 "required": false3320 },3321 "force": {3322 "type": "boolean",3323 "default": false,3324 "description": "Whether to bypass Trash and force deletion.",3325 "required": false3326 }3327 }3328 }3329 ]3330 },3331 "/wp/v2/menu-items/(?P<id>[\\d]+)/autosaves": {3332 "namespace": "wp/v2",3333 "methods": [3334 "GET",3335 "POST"3336 ],3337 "endpoints": [3338 {3339 "methods": [3340 "GET"3341 ],3342 "args": {3343 "parent": {3344 "description": "The ID for the parent of the autosave.",3345 "type": "integer",3346 "required": false3347 },3348 "context": {3349 "description": "Scope under which the request is made; determines fields present in response.",3350 "type": "string",3351 "enum": [3352 "view",3353 "embed",3354 "edit"3355 ],3356 "default": "view",3357 "required": false3358 }3359 }3360 },3361 {3362 "methods": [3363 "POST"3364 ],3365 "args": {3366 "parent": {3367 "description": "The ID for the parent of the object.",3368 "type": "integer",3369 "minimum": 0,3370 "required": false3371 },3372 "title": {3373 "description": "The title for the object.",3374 "type": [3375 "string",3376 "object"3377 ],3378 "properties": {3379 "raw": {3380 "description": "Title for the object, as it exists in the database.",3381 "type": "string",3382 "context": [3383 "edit"3384 ]3385 },3386 "rendered": {3387 "description": "HTML title for the object, transformed for display.",3388 "type": "string",3389 "context": [3390 "view",3391 "edit",3392 "embed"3393 ],3394 "readonly": true3395 }3396 },3397 "required": false3398 },3399 "type": {3400 "description": "The family of objects originally represented, such as \"post_type\" or \"taxonomy\".",3401 "type": "string",3402 "enum": [3403 "taxonomy",3404 "post_type",3405 "post_type_archive",3406 "custom"3407 ],3408 "required": false3409 },3410 "status": {3411 "description": "A named status for the object.",3412 "type": "string",3413 "enum": [3414 "publish",3415 "future",3416 "draft",3417 "pending",3418 "private"3419 ],3420 "required": false3421 },3422 "attr_title": {3423 "description": "Text for the title attribute of the link element for this menu item.",3424 "type": "string",3425 "required": false3426 },3427 "classes": {3428 "description": "Class names for the link element of this menu item.",3429 "type": "array",3430 "items": {3431 "type": "string"3432 },3433 "required": false3434 },3435 "description": {3436 "description": "The description of this menu item.",3437 "type": "string",3438 "required": false3439 },3440 "menu_order": {3441 "description": "The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.",3442 "type": "integer",3443 "minimum": 1,3444 "required": false3445 },3446 "object": {3447 "description": "The type of object originally represented, such as \"category\", \"post\", or \"attachment\".",3448 "type": "string",3449 "required": false3450 },3451 "object_id": {3452 "description": "The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.",3453 "type": "integer",3454 "minimum": 0,3455 "required": false3456 },3457 "target": {3458 "description": "The target attribute of the link element for this menu item.",3459 "type": "string",3460 "enum": [3461 "_blank",3462 ""3463 ],3464 "required": false3465 },3466 "url": {3467 "description": "The URL to which this menu item points.",3468 "type": "string",3469 "format": "uri",3470 "required": false3471 },3472 "xfn": {3473 "description": "The XFN relationship expressed in the link of this menu item.",3474 "type": "array",3475 "items": {3476 "type": "string"3477 },3478 "required": false3479 },3480 "menus": {3481 "description": "The terms assigned to the object in the nav_menu taxonomy.",3482 "type": "integer",3483 "required": false3484 },3485 "meta": {3486 "description": "Meta fields.",3487 "type": "object",3488 "properties": [],3489 "required": false3490 }3491 }3492 }3493 ]3494 },3495 "/wp/v2/menu-items/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": {3496 "namespace": "wp/v2",3497 "methods": [3498 "GET"3499 ],3500 "endpoints": [3501 {3502 "methods": [3503 "GET"3504 ],3505 "args": {3506 "parent": {3507 "description": "The ID for the parent of the autosave.",3508 "type": "integer",3509 "required": false3510 },3511 "id": {3512 "description": "The ID for the autosave.",3513 "type": "integer",3514 "required": false3515 },3516 "context": {3517 "description": "Scope under which the request is made; determines fields present in response.",3518 "type": "string",3519 "enum": [3520 "view",3521 "embed",3522 "edit"3523 ],3524 "default": "view",3525 "required": false3526 }3527 }3528 }3529 ]3530 },3531 "/wp/v2/blocks": {3532 "namespace": "wp/v2",3533 "methods": [3534 "GET",3535 "POST"3536 ],3537 "endpoints": [3538 {3539 "methods": [3540 "GET"3541 ],3542 "allow_batch": {3543 "v1": true3544 },3545 "args": {3546 "context": {3547 "description": "Scope under which the request is made; determines fields present in response.",3548 "type": "string",3549 "enum": [3550 "view",3551 "embed",3552 "edit"3553 ],3554 "default": "view",3555 "required": false3556 },3557 "page": {3558 "description": "Current page of the collection.",3559 "type": "integer",3560 "default": 1,3561 "minimum": 1,3562 "required": false3563 },3564 "per_page": {3565 "description": "Maximum number of items to be returned in result set.",3566 "type": "integer",3567 "default": 10,3568 "minimum": 1,3569 "maximum": 100,3570 "required": false3571 },3572 "search": {3573 "description": "Limit results to those matching a string.",3574 "type": "string",3575 "required": false3576 },3577 "after": {3578 "description": "Limit response to posts published after a given ISO8601 compliant date.",3579 "type": "string",3580 "format": "date-time",3581 "required": false3582 },3583 "modified_after": {3584 "description": "Limit response to posts modified after a given ISO8601 compliant date.",3585 "type": "string",3586 "format": "date-time",3587 "required": false3588 },3589 "before": {3590 "description": "Limit response to posts published before a given ISO8601 compliant date.",3591 "type": "string",3592 "format": "date-time",3593 "required": false3594 },3595 "modified_before": {3596 "description": "Limit response to posts modified before a given ISO8601 compliant date.",3597 "type": "string",3598 "format": "date-time",3599 "required": false3600 },3601 "exclude": {3602 "description": "Ensure result set excludes specific IDs.",3603 "type": "array",3604 "items": {3605 "type": "integer"3606 },3607 "default": [],3608 "required": false3609 },3610 "include": {3611 "description": "Limit result set to specific IDs.",3612 "type": "array",3613 "items": {3614 "type": "integer"3615 },3616 "default": [],3617 "required": false3618 },3619 "offset": {3620 "description": "Offset the result set by a specific number of items.",3621 "type": "integer",3622 "required": false3623 },3624 "order": {3625 "description": "Order sort attribute ascending or descending.",3626 "type": "string",3627 "default": "desc",3628 "enum": [3629 "asc",3630 "desc"3631 ],3632 "required": false3633 },3634 "orderby": {3635 "description": "Sort collection by post attribute.",3636 "type": "string",3637 "default": "date",3638 "enum": [3639 "author",3640 "date",3641 "id",3642 "include",3643 "modified",3644 "parent",3645 "relevance",3646 "slug",3647 "include_slugs",3648 "title"3649 ],3650 "required": false3651 },3652 "search_columns": {3653 "default": [],3654 "description": "Array of column names to be searched.",3655 "type": "array",3656 "items": {3657 "enum": [3658 "post_title",3659 "post_content",3660 "post_excerpt"3661 ],3662 "type": "string"3663 },3664 "required": false3665 },3666 "slug": {3667 "description": "Limit result set to posts with one or more specific slugs.",3668 "type": "array",3669 "items": {3670 "type": "string"3671 },3672 "required": false3673 },3674 "status": {3675 "default": "publish",3676 "description": "Limit result set to posts assigned one or more statuses.",3677 "type": "array",3678 "items": {3679 "enum": [3680 "publish",3681 "future",3682 "draft",3683 "pending",3684 "private",3685 "trash",3686 "auto-draft",3687 "inherit",3688 "request-pending",3689 "request-confirmed",3690 "request-failed",3691 "request-completed",3692 "any"3693 ],3694 "type": "string"3695 },3696 "required": false3697 },3698 "tax_relation": {3699 "description": "Limit result set based on relationship between multiple taxonomies.",3700 "type": "string",3701 "enum": [3702 "AND",3703 "OR"3704 ],3705 "required": false3706 },3707 "wp_pattern_category": {3708 "description": "Limit result set to items with specific terms assigned in the wp_pattern_category taxonomy.",3709 "type": [3710 "object",3711 "array"3712 ],3713 "oneOf": [3714 {3715 "title": "Term ID List",3716 "description": "Match terms with the listed IDs.",3717 "type": "array",3718 "items": {3719 "type": "integer"3720 }3721 },3722 {3723 "title": "Term ID Taxonomy Query",3724 "description": "Perform an advanced term query.",3725 "type": "object",3726 "properties": {3727 "terms": {3728 "description": "Term IDs.",3729 "type": "array",3730 "items": {3731 "type": "integer"3732 },3733 "default": []3734 },3735 "operator": {3736 "description": "Whether items must be assigned all or any of the specified terms.",3737 "type": "string",3738 "enum": [3739 "AND",3740 "OR"3741 ],3742 "default": "OR"3743 }3744 },3745 "additionalProperties": false3746 }3747 ],3748 "required": false3749 },3750 "wp_pattern_category_exclude": {3751 "description": "Limit result set to items except those with specific terms assigned in the wp_pattern_category taxonomy.",3752 "type": [3753 "object",3754 "array"3755 ],3756 "oneOf": [3757 {3758 "title": "Term ID List",3759 "description": "Match terms with the listed IDs.",3760 "type": "array",3761 "items": {3762 "type": "integer"3763 }3764 },3765 {3766 "title": "Term ID Taxonomy Query",3767 "description": "Perform an advanced term query.",3768 "type": "object",3769 "properties": {3770 "terms": {3771 "description": "Term IDs.",3772 "type": "array",3773 "items": {3774 "type": "integer"3775 },3776 "default": []3777 }3778 },3779 "additionalProperties": false3780 }3781 ],3782 "required": false3783 }3784 }3785 },3786 {3787 "methods": [3788 "POST"3789 ],3790 "allow_batch": {3791 "v1": true3792 },3793 "args": {3794 "date": {3795 "description": "The date the post was published, in the site's timezone.",3796 "type": [3797 "string",3798 "null"3799 ],3800 "format": "date-time",3801 "required": false3802 },3803 "date_gmt": {3804 "description": "The date the post was published, as GMT.",3805 "type": [3806 "string",3807 "null"3808 ],3809 "format": "date-time",3810 "required": false3811 },3812 "slug": {3813 "description": "An alphanumeric identifier for the post unique to its type.",3814 "type": "string",3815 "required": false3816 },3817 "status": {3818 "description": "A named status for the post.",3819 "type": "string",3820 "enum": [3821 "publish",3822 "future",3823 "draft",3824 "pending",3825 "private"3826 ],3827 "required": false3828 },3829 "password": {3830 "description": "A password to protect access to the content and excerpt.",3831 "type": "string",3832 "required": false3833 },3834 "title": {3835 "description": "The title for the post.",3836 "type": "object",3837 "properties": {3838 "raw": {3839 "description": "Title for the post, as it exists in the database.",3840 "type": "string",3841 "context": [3842 "view",3843 "edit"3844 ]3845 }3846 },3847 "required": false3848 },3849 "content": {3850 "description": "The content for the post.",3851 "type": "object",3852 "properties": {3853 "raw": {3854 "description": "Content for the post, as it exists in the database.",3855 "type": "string",3856 "context": [3857 "view",3858 "edit"3859 ]3860 },3861 "block_version": {3862 "description": "Version of the content block format used by the post.",3863 "type": "integer",3864 "context": [3865 "edit"3866 ],3867 "readonly": true3868 },3869 "protected": {3870 "description": "Whether the content is protected with a password.",3871 "type": "boolean",3872 "context": [3873 "view",3874 "edit",3875 "embed"3876 ],3877 "readonly": true3878 }3879 },3880 "required": false3881 },3882 "excerpt": {3883 "description": "The excerpt for the post.",3884 "type": "object",3885 "properties": {3886 "raw": {3887 "description": "Excerpt for the post, as it exists in the database.",3888 "type": "string",3889 "context": [3890 "edit"3891 ]3892 },3893 "rendered": {3894 "description": "HTML excerpt for the post, transformed for display.",3895 "type": "string",3896 "context": [3897 "view",3898 "edit",3899 "embed"3900 ],3901 "readonly": true3902 },3903 "protected": {3904 "description": "Whether the excerpt is protected with a password.",3905 "type": "boolean",3906 "context": [3907 "view",3908 "edit",3909 "embed"3910 ],3911 "readonly": true3912 }3913 },3914 "required": false3915 },3916 "meta": {3917 "description": "Meta fields.",3918 "type": "object",3919 "properties": [],3920 "required": false3921 },3922 "template": {3923 "description": "The theme file to use to display the post.",3924 "type": "string",3925 "required": false3926 },3927 "wp_pattern_category": {3928 "description": "The terms assigned to the post in the wp_pattern_category taxonomy.",3929 "type": "array",3930 "items": {3931 "type": "integer"3932 },3933 "required": false3934 }3935 }3936 }3937 ],3938 "_links": {3939 "self": "http://example.org/index.php?rest_route=/wp/v2/blocks"3940 }3941 },3942 "/wp/v2/blocks/(?P<id>[\\d]+)": {3943 "namespace": "wp/v2",3944 "methods": [3945 "GET",3946 "POST",3947 "PUT",3948 "PATCH",3949 "DELETE"3950 ],3951 "endpoints": [3952 {3953 "methods": [3954 "GET"3955 ],3956 "allow_batch": {3957 "v1": true3958 },3959 "args": {3960 "id": {3961 "description": "Unique identifier for the post.",3962 "type": "integer",3963 "required": false3964 },3965 "context": {3966 "description": "Scope under which the request is made; determines fields present in response.",3967 "type": "string",3968 "enum": [3969 "view",3970 "embed",3971 "edit"3972 ],3973 "default": "view",3974 "required": false3975 },3976 "excerpt_length": {3977 "description": "Override the default excerpt length.",3978 "type": "integer",3979 "required": false3980 },3981 "password": {3982 "description": "The password for the post if it is password protected.",3983 "type": "string",3984 "required": false3985 }3986 }3987 },3988 {3989 "methods": [3990 "POST",3991 "PUT",3992 "PATCH"3993 ],3994 "allow_batch": {3995 "v1": true3996 },3997 "args": {3998 "id": {3999 "description": "Unique identifier for the post.",4000 "type": "integer",4001 "required": false4002 },4003 "date": {4004 "description": "The date the post was published, in the site's timezone.",4005 "type": [4006 "string",4007 "null"4008 ],4009 "format": "date-time",4010 "required": false4011 },4012 "date_gmt": {4013 "description": "The date the post was published, as GMT.",4014 "type": [4015 "string",4016 "null"4017 ],4018 "format": "date-time",4019 "required": false4020 },4021 "slug": {4022 "description": "An alphanumeric identifier for the post unique to its type.",4023 "type": "string",4024 "required": false4025 },4026 "status": {4027 "description": "A named status for the post.",4028 "type": "string",4029 "enum": [4030 "publish",4031 "future",4032 "draft",4033 "pending",4034 "private"4035 ],4036 "required": false4037 },4038 "password": {4039 "description": "A password to protect access to the content and excerpt.",4040 "type": "string",4041 "required": false4042 },4043 "title": {4044 "description": "The title for the post.",4045 "type": "object",4046 "properties": {4047 "raw": {4048 "description": "Title for the post, as it exists in the database.",4049 "type": "string",4050 "context": [4051 "view",4052 "edit"4053 ]4054 }4055 },4056 "required": false4057 },4058 "content": {4059 "description": "The content for the post.",4060 "type": "object",4061 "properties": {4062 "raw": {4063 "description": "Content for the post, as it exists in the database.",4064 "type": "string",4065 "context": [4066 "view",4067 "edit"4068 ]4069 },4070 "block_version": {4071 "description": "Version of the content block format used by the post.",4072 "type": "integer",4073 "context": [4074 "edit"4075 ],4076 "readonly": true4077 },4078 "protected": {4079 "description": "Whether the content is protected with a password.",4080 "type": "boolean",4081 "context": [4082 "view",4083 "edit",4084 "embed"4085 ],4086 "readonly": true4087 }4088 },4089 "required": false4090 },4091 "excerpt": {4092 "description": "The excerpt for the post.",4093 "type": "object",4094 "properties": {4095 "raw": {4096 "description": "Excerpt for the post, as it exists in the database.",4097 "type": "string",4098 "context": [4099 "edit"4100 ]4101 },4102 "rendered": {4103 "description": "HTML excerpt for the post, transformed for display.",4104 "type": "string",4105 "context": [4106 "view",4107 "edit",4108 "embed"4109 ],4110 "readonly": true4111 },4112 "protected": {4113 "description": "Whether the excerpt is protected with a password.",4114 "type": "boolean",4115 "context": [4116 "view",4117 "edit",4118 "embed"4119 ],4120 "readonly": true4121 }4122 },4123 "required": false4124 },4125 "meta": {4126 "description": "Meta fields.",4127 "type": "object",4128 "properties": [],4129 "required": false4130 },4131 "template": {4132 "description": "The theme file to use to display the post.",4133 "type": "string",4134 "required": false4135 },4136 "wp_pattern_category": {4137 "description": "The terms assigned to the post in the wp_pattern_category taxonomy.",4138 "type": "array",4139 "items": {4140 "type": "integer"4141 },4142 "required": false4143 }4144 }4145 },4146 {4147 "methods": [4148 "DELETE"4149 ],4150 "allow_batch": {4151 "v1": true4152 },4153 "args": {4154 "id": {4155 "description": "Unique identifier for the post.",4156 "type": "integer",4157 "required": false4158 },4159 "force": {4160 "type": "boolean",4161 "default": false,4162 "description": "Whether to bypass Trash and force deletion.",4163 "required": false4164 }4165 }4166 }4167 ]4168 },4169 "/wp/v2/blocks/(?P<parent>[\\d]+)/revisions": {4170 "namespace": "wp/v2",4171 "methods": [4172 "GET"4173 ],4174 "endpoints": [4175 {4176 "methods": [4177 "GET"4178 ],4179 "args": {4180 "parent": {4181 "description": "The ID for the parent of the revision.",4182 "type": "integer",4183 "required": false4184 },4185 "context": {4186 "description": "Scope under which the request is made; determines fields present in response.",4187 "type": "string",4188 "enum": [4189 "view",4190 "embed",4191 "edit"4192 ],4193 "default": "view",4194 "required": false4195 },4196 "page": {4197 "description": "Current page of the collection.",4198 "type": "integer",4199 "default": 1,4200 "minimum": 1,4201 "required": false4202 },4203 "per_page": {4204 "description": "Maximum number of items to be returned in result set.",4205 "type": "integer",4206 "minimum": 1,4207 "maximum": 100,4208 "required": false4209 },4210 "search": {4211 "description": "Limit results to those matching a string.",4212 "type": "string",4213 "required": false4214 },4215 "exclude": {4216 "description": "Ensure result set excludes specific IDs.",4217 "type": "array",4218 "items": {4219 "type": "integer"4220 },4221 "default": [],4222 "required": false4223 },4224 "include": {4225 "description": "Limit result set to specific IDs.",4226 "type": "array",4227 "items": {4228 "type": "integer"4229 },4230 "default": [],4231 "required": false4232 },4233 "offset": {4234 "description": "Offset the result set by a specific number of items.",4235 "type": "integer",4236 "required": false4237 },4238 "order": {4239 "description": "Order sort attribute ascending or descending.",4240 "type": "string",4241 "default": "desc",4242 "enum": [4243 "asc",4244 "desc"4245 ],4246 "required": false4247 },4248 "orderby": {4249 "description": "Sort collection by object attribute.",4250 "type": "string",4251 "default": "date",4252 "enum": [4253 "date",4254 "id",4255 "include",4256 "relevance",4257 "slug",4258 "include_slugs",4259 "title"4260 ],4261 "required": false4262 }4263 }4264 }4265 ]4266 },4267 "/wp/v2/blocks/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": {4268 "namespace": "wp/v2",4269 "methods": [4270 "GET",4271 "DELETE"4272 ],4273 "endpoints": [4274 {4275 "methods": [4276 "GET"4277 ],4278 "args": {4279 "parent": {4280 "description": "The ID for the parent of the revision.",4281 "type": "integer",4282 "required": false4283 },4284 "id": {4285 "description": "Unique identifier for the revision.",4286 "type": "integer",4287 "required": false4288 },4289 "context": {4290 "description": "Scope under which the request is made; determines fields present in response.",4291 "type": "string",4292 "enum": [4293 "view",4294 "embed",4295 "edit"4296 ],4297 "default": "view",4298 "required": false4299 }4300 }4301 },4302 {4303 "methods": [4304 "DELETE"4305 ],4306 "args": {4307 "parent": {4308 "description": "The ID for the parent of the revision.",4309 "type": "integer",4310 "required": false4311 },4312 "id": {4313 "description": "Unique identifier for the revision.",4314 "type": "integer",4315 "required": false4316 },4317 "force": {4318 "type": "boolean",4319 "default": false,4320 "description": "Required to be true, as revisions do not support trashing.",4321 "required": false4322 }4323 }4324 }4325 ]4326 },4327 "/wp/v2/blocks/(?P<id>[\\d]+)/autosaves": {4328 "namespace": "wp/v2",4329 "methods": [4330 "GET",4331 "POST"4332 ],4333 "endpoints": [4334 {4335 "methods": [4336 "GET"4337 ],4338 "args": {4339 "parent": {4340 "description": "The ID for the parent of the autosave.",4341 "type": "integer",4342 "required": false4343 },4344 "context": {4345 "description": "Scope under which the request is made; determines fields present in response.",4346 "type": "string",4347 "enum": [4348 "view",4349 "embed",4350 "edit"4351 ],4352 "default": "view",4353 "required": false4354 }4355 }4356 },4357 {4358 "methods": [4359 "POST"4360 ],4361 "args": {4362 "parent": {4363 "description": "The ID for the parent of the autosave.",4364 "type": "integer",4365 "required": false4366 },4367 "date": {4368 "description": "The date the post was published, in the site's timezone.",4369 "type": [4370 "string",4371 "null"4372 ],4373 "format": "date-time",4374 "required": false4375 },4376 "date_gmt": {4377 "description": "The date the post was published, as GMT.",4378 "type": [4379 "string",4380 "null"4381 ],4382 "format": "date-time",4383 "required": false4384 },4385 "slug": {4386 "description": "An alphanumeric identifier for the post unique to its type.",4387 "type": "string",4388 "required": false4389 },4390 "status": {4391 "description": "A named status for the post.",4392 "type": "string",4393 "enum": [4394 "publish",4395 "future",4396 "draft",4397 "pending",4398 "private"4399 ],4400 "required": false4401 },4402 "password": {4403 "description": "A password to protect access to the content and excerpt.",4404 "type": "string",4405 "required": false4406 },4407 "title": {4408 "description": "The title for the post.",4409 "type": "object",4410 "properties": {4411 "raw": {4412 "description": "Title for the post, as it exists in the database.",4413 "type": "string",4414 "context": [4415 "view",4416 "edit"4417 ]4418 }4419 },4420 "required": false4421 },4422 "content": {4423 "description": "The content for the post.",4424 "type": "object",4425 "properties": {4426 "raw": {4427 "description": "Content for the post, as it exists in the database.",4428 "type": "string",4429 "context": [4430 "view",4431 "edit"4432 ]4433 },4434 "block_version": {4435 "description": "Version of the content block format used by the post.",4436 "type": "integer",4437 "context": [4438 "edit"4439 ],4440 "readonly": true4441 },4442 "protected": {4443 "description": "Whether the content is protected with a password.",4444 "type": "boolean",4445 "context": [4446 "view",4447 "edit",4448 "embed"4449 ],4450 "readonly": true4451 }4452 },4453 "required": false4454 },4455 "excerpt": {4456 "description": "The excerpt for the post.",4457 "type": "object",4458 "properties": {4459 "raw": {4460 "description": "Excerpt for the post, as it exists in the database.",4461 "type": "string",4462 "context": [4463 "edit"4464 ]4465 },4466 "rendered": {4467 "description": "HTML excerpt for the post, transformed for display.",4468 "type": "string",4469 "context": [4470 "view",4471 "edit",4472 "embed"4473 ],4474 "readonly": true4475 },4476 "protected": {4477 "description": "Whether the excerpt is protected with a password.",4478 "type": "boolean",4479 "context": [4480 "view",4481 "edit",4482 "embed"4483 ],4484 "readonly": true4485 }4486 },4487 "required": false4488 },4489 "meta": {4490 "description": "Meta fields.",4491 "type": "object",4492 "properties": [],4493 "required": false4494 },4495 "template": {4496 "description": "The theme file to use to display the post.",4497 "type": "string",4498 "required": false4499 },4500 "wp_pattern_category": {4501 "description": "The terms assigned to the post in the wp_pattern_category taxonomy.",4502 "type": "array",4503 "items": {4504 "type": "integer"4505 },4506 "required": false4507 }4508 }4509 }4510 ]4511 },4512 "/wp/v2/blocks/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": {4513 "namespace": "wp/v2",4514 "methods": [4515 "GET"4516 ],4517 "endpoints": [4518 {4519 "methods": [4520 "GET"4521 ],4522 "args": {4523 "parent": {4524 "description": "The ID for the parent of the autosave.",4525 "type": "integer",4526 "required": false4527 },4528 "id": {4529 "description": "The ID for the autosave.",4530 "type": "integer",4531 "required": false4532 },4533 "context": {4534 "description": "Scope under which the request is made; determines fields present in response.",4535 "type": "string",4536 "enum": [4537 "view",4538 "embed",4539 "edit"4540 ],4541 "default": "view",4542 "required": false4543 }4544 }4545 }4546 ]4547 },4548 "/wp/v2/templates/(?P<parent>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/revisions": {4549 "namespace": "wp/v2",4550 "methods": [4551 "GET"4552 ],4553 "endpoints": [4554 {4555 "methods": [4556 "GET"4557 ],4558 "args": {4559 "parent": {4560 "description": "The id of a template",4561 "type": "string",4562 "required": false4563 },4564 "context": {4565 "description": "Scope under which the request is made; determines fields present in response.",4566 "type": "string",4567 "enum": [4568 "view",4569 "embed",4570 "edit"4571 ],4572 "default": "view",4573 "required": false4574 },4575 "page": {4576 "description": "Current page of the collection.",4577 "type": "integer",4578 "default": 1,4579 "minimum": 1,4580 "required": false4581 },4582 "per_page": {4583 "description": "Maximum number of items to be returned in result set.",4584 "type": "integer",4585 "minimum": 1,4586 "maximum": 100,4587 "required": false4588 },4589 "search": {4590 "description": "Limit results to those matching a string.",4591 "type": "string",4592 "required": false4593 },4594 "exclude": {4595 "description": "Ensure result set excludes specific IDs.",4596 "type": "array",4597 "items": {4598 "type": "integer"4599 },4600 "default": [],4601 "required": false4602 },4603 "include": {4604 "description": "Limit result set to specific IDs.",4605 "type": "array",4606 "items": {4607 "type": "integer"4608 },4609 "default": [],4610 "required": false4611 },4612 "offset": {4613 "description": "Offset the result set by a specific number of items.",4614 "type": "integer",4615 "required": false4616 },4617 "order": {4618 "description": "Order sort attribute ascending or descending.",4619 "type": "string",4620 "default": "desc",4621 "enum": [4622 "asc",4623 "desc"4624 ],4625 "required": false4626 },4627 "orderby": {4628 "description": "Sort collection by object attribute.",4629 "type": "string",4630 "default": "date",4631 "enum": [4632 "date",4633 "id",4634 "include",4635 "relevance",4636 "slug",4637 "include_slugs",4638 "title"4639 ],4640 "required": false4641 }4642 }4643 }4644 ]4645 },4646 "/wp/v2/templates/(?P<parent>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/revisions/(?P<id>[\\d]+)": {4647 "namespace": "wp/v2",4648 "methods": [4649 "GET",4650 "DELETE"4651 ],4652 "endpoints": [4653 {4654 "methods": [4655 "GET"4656 ],4657 "args": {4658 "parent": {4659 "description": "The id of a template",4660 "type": "string",4661 "required": false4662 },4663 "id": {4664 "description": "Unique identifier for the revision.",4665 "type": "integer",4666 "required": false4667 },4668 "context": {4669 "description": "Scope under which the request is made; determines fields present in response.",4670 "type": "string",4671 "enum": [4672 "view",4673 "embed",4674 "edit"4675 ],4676 "default": "view",4677 "required": false4678 }4679 }4680 },4681 {4682 "methods": [4683 "DELETE"4684 ],4685 "args": {4686 "parent": {4687 "description": "The id of a template",4688 "type": "string",4689 "required": false4690 },4691 "id": {4692 "description": "Unique identifier for the revision.",4693 "type": "integer",4694 "required": false4695 },4696 "force": {4697 "type": "boolean",4698 "default": false,4699 "description": "Required to be true, as revisions do not support trashing.",4700 "required": false4701 }4702 }4703 }4704 ]4705 },4706 "/wp/v2/templates/(?P<id>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/autosaves": {4707 "namespace": "wp/v2",4708 "methods": [4709 "GET",4710 "POST"4711 ],4712 "endpoints": [4713 {4714 "methods": [4715 "GET"4716 ],4717 "args": {4718 "id": {4719 "description": "The id of a template",4720 "type": "string",4721 "required": false4722 },4723 "context": {4724 "description": "Scope under which the request is made; determines fields present in response.",4725 "type": "string",4726 "enum": [4727 "view",4728 "embed",4729 "edit"4730 ],4731 "default": "view",4732 "required": false4733 }4734 }4735 },4736 {4737 "methods": [4738 "POST"4739 ],4740 "args": {4741 "id": {4742 "description": "The id of a template",4743 "type": "string",4744 "required": false4745 },4746 "slug": {4747 "description": "Unique slug identifying the template.",4748 "type": "string",4749 "minLength": 1,4750 "pattern": "[a-zA-Z0-9_\\%-]+",4751 "required": false4752 },4753 "theme": {4754 "description": "Theme identifier for the template.",4755 "type": "string",4756 "required": false4757 },4758 "type": {4759 "description": "Type of template.",4760 "type": "string",4761 "required": false4762 },4763 "content": {4764 "description": "Content of template.",4765 "type": [4766 "object",4767 "string"4768 ],4769 "properties": {4770 "raw": {4771 "description": "Content for the template, as it exists in the database.",4772 "type": "string",4773 "context": [4774 "view",4775 "edit"4776 ]4777 },4778 "block_version": {4779 "description": "Version of the content block format used by the template.",4780 "type": "integer",4781 "context": [4782 "edit"4783 ],4784 "readonly": true4785 }4786 },4787 "required": false4788 },4789 "title": {4790 "description": "Title of template.",4791 "type": [4792 "object",4793 "string"4794 ],4795 "properties": {4796 "raw": {4797 "description": "Title for the template, as it exists in the database.",4798 "type": "string",4799 "context": [4800 "view",4801 "edit",4802 "embed"4803 ]4804 },4805 "rendered": {4806 "description": "HTML title for the template, transformed for display.",4807 "type": "string",4808 "context": [4809 "view",4810 "edit",4811 "embed"4812 ],4813 "readonly": true4814 }4815 },4816 "required": false4817 },4818 "description": {4819 "description": "Description of template.",4820 "type": "string",4821 "required": false4822 },4823 "status": {4824 "description": "Status of template.",4825 "type": "string",4826 "enum": [4827 "publish",4828 "future",4829 "draft",4830 "pending",4831 "private"4832 ],4833 "required": false4834 },4835 "author": {4836 "description": "The ID for the author of the template.",4837 "type": "integer",4838 "required": false4839 }4840 }4841 }4842 ]4843 },4844 "/wp/v2/templates/(?P<parent>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/autosaves/(?P<id>[\\d]+)": {4845 "namespace": "wp/v2",4846 "methods": [4847 "GET"4848 ],4849 "endpoints": [4850 {4851 "methods": [4852 "GET"4853 ],4854 "args": {4855 "parent": {4856 "description": "The id of a template",4857 "type": "string",4858 "required": false4859 },4860 "id": {4861 "description": "The ID for the autosave.",4862 "type": "integer",4863 "required": false4864 },4865 "context": {4866 "description": "Scope under which the request is made; determines fields present in response.",4867 "type": "string",4868 "enum": [4869 "view",4870 "embed",4871 "edit"4872 ],4873 "default": "view",4874 "required": false4875 }4876 }4877 }4878 ]4879 },4880 "/wp/v2/templates": {4881 "namespace": "wp/v2",4882 "methods": [4883 "GET",4884 "POST"4885 ],4886 "endpoints": [4887 {4888 "methods": [4889 "GET"4890 ],4891 "args": {4892 "context": {4893 "description": "Scope under which the request is made; determines fields present in response.",4894 "type": "string",4895 "enum": [4896 "view",4897 "embed",4898 "edit"4899 ],4900 "default": "view",4901 "required": false4902 },4903 "wp_id": {4904 "description": "Limit to the specified post id.",4905 "type": "integer",4906 "required": false4907 },4908 "area": {4909 "description": "Limit to the specified template part area.",4910 "type": "string",4911 "required": false4912 },4913 "post_type": {4914 "description": "Post type to get the templates for.",4915 "type": "string",4916 "required": false4917 }4918 }4919 },4920 {4921 "methods": [4922 "POST"4923 ],4924 "args": {4925 "slug": {4926 "description": "Unique slug identifying the template.",4927 "type": "string",4928 "minLength": 1,4929 "pattern": "[a-zA-Z0-9_\\%-]+",4930 "required": true4931 },4932 "theme": {4933 "description": "Theme identifier for the template.",4934 "type": "string",4935 "required": false4936 },4937 "type": {4938 "description": "Type of template.",4939 "type": "string",4940 "required": false4941 },4942 "content": {4943 "default": "",4944 "description": "Content of template.",4945 "type": [4946 "object",4947 "string"4948 ],4949 "properties": {4950 "raw": {4951 "description": "Content for the template, as it exists in the database.",4952 "type": "string",4953 "context": [4954 "view",4955 "edit"4956 ]4957 },4958 "block_version": {4959 "description": "Version of the content block format used by the template.",4960 "type": "integer",4961 "context": [4962 "edit"4963 ],4964 "readonly": true4965 }4966 },4967 "required": false4968 },4969 "title": {4970 "default": "",4971 "description": "Title of template.",4972 "type": [4973 "object",4974 "string"4975 ],4976 "properties": {4977 "raw": {4978 "description": "Title for the template, as it exists in the database.",4979 "type": "string",4980 "context": [4981 "view",4982 "edit",4983 "embed"4984 ]4985 },4986 "rendered": {4987 "description": "HTML title for the template, transformed for display.",4988 "type": "string",4989 "context": [4990 "view",4991 "edit",4992 "embed"4993 ],4994 "readonly": true4995 }4996 },4997 "required": false4998 },4999 "description": {5000 "default": "",5001 "description": "Description of template.",5002 "type": "string",5003 "required": false5004 },5005 "status": {5006 "default": "publish",5007 "description": "Status of template.",5008 "type": "string",5009 "enum": [5010 "publish",5011 "future",5012 "draft",5013 "pending",5014 "private"5015 ],5016 "required": false5017 },5018 "author": {5019 "description": "The ID for the author of the template.",5020 "type": "integer",5021 "required": false5022 }5023 }5024 }5025 ],5026 "_links": {5027 "self": [5028 {5029 "href": "http://example.org/index.php?rest_route=/wp/v2/templates"5030 }5031 ]5032 }5033 },5034 "/wp/v2/templates/lookup": {5035 "namespace": "wp/v2",5036 "methods": [5037 "GET"5038 ],5039 "endpoints": [5040 {5041 "methods": [5042 "GET"5043 ],5044 "args": {5045 "slug": {5046 "description": "The slug of the template to get the fallback for",5047 "type": "string",5048 "required": true5049 },5050 "is_custom": {5051 "description": "Indicates if a template is custom or part of the template hierarchy",5052 "type": "boolean",5053 "required": false5054 },5055 "template_prefix": {5056 "description": "The template prefix for the created template. This is used to extract the main template type, e.g. in `taxonomy-books` extracts the `taxonomy`",5057 "type": "string",5058 "required": false5059 }5060 }5061 }5062 ],5063 "_links": {5064 "self": [5065 {5066 "href": "http://example.org/index.php?rest_route=/wp/v2/templates/lookup"5067 }5068 ]5069 }5070 },5071 "/wp/v2/templates/(?P<id>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)": {5072 "namespace": "wp/v2",5073 "methods": [5074 "GET",5075 "POST",5076 "PUT",5077 "PATCH",5078 "DELETE"5079 ],5080 "endpoints": [5081 {5082 "methods": [5083 "GET"5084 ],5085 "args": {5086 "id": {5087 "description": "The id of a template",5088 "type": "string",5089 "required": false5090 },5091 "context": {5092 "description": "Scope under which the request is made; determines fields present in response.",5093 "type": "string",5094 "enum": [5095 "view",5096 "embed",5097 "edit"5098 ],5099 "default": "view",5100 "required": false5101 }5102 }5103 },5104 {5105 "methods": [5106 "POST",5107 "PUT",5108 "PATCH"5109 ],5110 "args": {5111 "id": {5112 "description": "The id of a template",5113 "type": "string",5114 "required": false5115 },5116 "slug": {5117 "description": "Unique slug identifying the template.",5118 "type": "string",5119 "minLength": 1,5120 "pattern": "[a-zA-Z0-9_\\%-]+",5121 "required": false5122 },5123 "theme": {5124 "description": "Theme identifier for the template.",5125 "type": "string",5126 "required": false5127 },5128 "type": {5129 "description": "Type of template.",5130 "type": "string",5131 "required": false5132 },5133 "content": {5134 "description": "Content of template.",5135 "type": [5136 "object",5137 "string"5138 ],5139 "properties": {5140 "raw": {5141 "description": "Content for the template, as it exists in the database.",5142 "type": "string",5143 "context": [5144 "view",5145 "edit"5146 ]5147 },5148 "block_version": {5149 "description": "Version of the content block format used by the template.",5150 "type": "integer",5151 "context": [5152 "edit"5153 ],5154 "readonly": true5155 }5156 },5157 "required": false5158 },5159 "title": {5160 "description": "Title of template.",5161 "type": [5162 "object",5163 "string"5164 ],5165 "properties": {5166 "raw": {5167 "description": "Title for the template, as it exists in the database.",5168 "type": "string",5169 "context": [5170 "view",5171 "edit",5172 "embed"5173 ]5174 },5175 "rendered": {5176 "description": "HTML title for the template, transformed for display.",5177 "type": "string",5178 "context": [5179 "view",5180 "edit",5181 "embed"5182 ],5183 "readonly": true5184 }5185 },5186 "required": false5187 },5188 "description": {5189 "description": "Description of template.",5190 "type": "string",5191 "required": false5192 },5193 "status": {5194 "description": "Status of template.",5195 "type": "string",5196 "enum": [5197 "publish",5198 "future",5199 "draft",5200 "pending",5201 "private"5202 ],5203 "required": false5204 },5205 "author": {5206 "description": "The ID for the author of the template.",5207 "type": "integer",5208 "required": false5209 }5210 }5211 },5212 {5213 "methods": [5214 "DELETE"5215 ],5216 "args": {5217 "id": {5218 "description": "The id of a template",5219 "type": "string",5220 "required": false5221 },5222 "force": {5223 "type": "boolean",5224 "default": false,5225 "description": "Whether to bypass Trash and force deletion.",5226 "required": false5227 }5228 }5229 }5230 ]5231 },5232 "/wp/v2/template-parts/(?P<parent>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/revisions": {5233 "namespace": "wp/v2",5234 "methods": [5235 "GET"5236 ],5237 "endpoints": [5238 {5239 "methods": [5240 "GET"5241 ],5242 "args": {5243 "parent": {5244 "description": "The id of a template",5245 "type": "string",5246 "required": false5247 },5248 "context": {5249 "description": "Scope under which the request is made; determines fields present in response.",5250 "type": "string",5251 "enum": [5252 "view",5253 "embed",5254 "edit"5255 ],5256 "default": "view",5257 "required": false5258 },5259 "page": {5260 "description": "Current page of the collection.",5261 "type": "integer",5262 "default": 1,5263 "minimum": 1,5264 "required": false5265 },5266 "per_page": {5267 "description": "Maximum number of items to be returned in result set.",5268 "type": "integer",5269 "minimum": 1,5270 "maximum": 100,5271 "required": false5272 },5273 "search": {5274 "description": "Limit results to those matching a string.",5275 "type": "string",5276 "required": false5277 },5278 "exclude": {5279 "description": "Ensure result set excludes specific IDs.",5280 "type": "array",5281 "items": {5282 "type": "integer"5283 },5284 "default": [],5285 "required": false5286 },5287 "include": {5288 "description": "Limit result set to specific IDs.",5289 "type": "array",5290 "items": {5291 "type": "integer"5292 },5293 "default": [],5294 "required": false5295 },5296 "offset": {5297 "description": "Offset the result set by a specific number of items.",5298 "type": "integer",5299 "required": false5300 },5301 "order": {5302 "description": "Order sort attribute ascending or descending.",5303 "type": "string",5304 "default": "desc",5305 "enum": [5306 "asc",5307 "desc"5308 ],5309 "required": false5310 },5311 "orderby": {5312 "description": "Sort collection by object attribute.",5313 "type": "string",5314 "default": "date",5315 "enum": [5316 "date",5317 "id",5318 "include",5319 "relevance",5320 "slug",5321 "include_slugs",5322 "title"5323 ],5324 "required": false5325 }5326 }5327 }5328 ]5329 },5330 "/wp/v2/template-parts/(?P<parent>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/revisions/(?P<id>[\\d]+)": {5331 "namespace": "wp/v2",5332 "methods": [5333 "GET",5334 "DELETE"5335 ],5336 "endpoints": [5337 {5338 "methods": [5339 "GET"5340 ],5341 "args": {5342 "parent": {5343 "description": "The id of a template",5344 "type": "string",5345 "required": false5346 },5347 "id": {5348 "description": "Unique identifier for the revision.",5349 "type": "integer",5350 "required": false5351 },5352 "context": {5353 "description": "Scope under which the request is made; determines fields present in response.",5354 "type": "string",5355 "enum": [5356 "view",5357 "embed",5358 "edit"5359 ],5360 "default": "view",5361 "required": false5362 }5363 }5364 },5365 {5366 "methods": [5367 "DELETE"5368 ],5369 "args": {5370 "parent": {5371 "description": "The id of a template",5372 "type": "string",5373 "required": false5374 },5375 "id": {5376 "description": "Unique identifier for the revision.",5377 "type": "integer",5378 "required": false5379 },5380 "force": {5381 "type": "boolean",5382 "default": false,5383 "description": "Required to be true, as revisions do not support trashing.",5384 "required": false5385 }5386 }5387 }5388 ]5389 },5390 "/wp/v2/template-parts/(?P<id>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/autosaves": {5391 "namespace": "wp/v2",5392 "methods": [5393 "GET",5394 "POST"5395 ],5396 "endpoints": [5397 {5398 "methods": [5399 "GET"5400 ],5401 "args": {5402 "id": {5403 "description": "The id of a template",5404 "type": "string",5405 "required": false5406 },5407 "context": {5408 "description": "Scope under which the request is made; determines fields present in response.",5409 "type": "string",5410 "enum": [5411 "view",5412 "embed",5413 "edit"5414 ],5415 "default": "view",5416 "required": false5417 }5418 }5419 },5420 {5421 "methods": [5422 "POST"5423 ],5424 "args": {5425 "id": {5426 "description": "The id of a template",5427 "type": "string",5428 "required": false5429 },5430 "slug": {5431 "description": "Unique slug identifying the template.",5432 "type": "string",5433 "minLength": 1,5434 "pattern": "[a-zA-Z0-9_\\%-]+",5435 "required": false5436 },5437 "theme": {5438 "description": "Theme identifier for the template.",5439 "type": "string",5440 "required": false5441 },5442 "type": {5443 "description": "Type of template.",5444 "type": "string",5445 "required": false5446 },5447 "content": {5448 "description": "Content of template.",5449 "type": [5450 "object",5451 "string"5452 ],5453 "properties": {5454 "raw": {5455 "description": "Content for the template, as it exists in the database.",5456 "type": "string",5457 "context": [5458 "view",5459 "edit"5460 ]5461 },5462 "block_version": {5463 "description": "Version of the content block format used by the template.",5464 "type": "integer",5465 "context": [5466 "edit"5467 ],5468 "readonly": true5469 }5470 },5471 "required": false5472 },5473 "title": {5474 "description": "Title of template.",5475 "type": [5476 "object",5477 "string"5478 ],5479 "properties": {5480 "raw": {5481 "description": "Title for the template, as it exists in the database.",5482 "type": "string",5483 "context": [5484 "view",5485 "edit",5486 "embed"5487 ]5488 },5489 "rendered": {5490 "description": "HTML title for the template, transformed for display.",5491 "type": "string",5492 "context": [5493 "view",5494 "edit",5495 "embed"5496 ],5497 "readonly": true5498 }5499 },5500 "required": false5501 },5502 "description": {5503 "description": "Description of template.",5504 "type": "string",5505 "required": false5506 },5507 "status": {5508 "description": "Status of template.",5509 "type": "string",5510 "enum": [5511 "publish",5512 "future",5513 "draft",5514 "pending",5515 "private"5516 ],5517 "required": false5518 },5519 "author": {5520 "description": "The ID for the author of the template.",5521 "type": "integer",5522 "required": false5523 },5524 "area": {5525 "description": "Where the template part is intended for use (header, footer, etc.)",5526 "type": "string",5527 "required": false5528 }5529 }5530 }5531 ]5532 },5533 "/wp/v2/template-parts/(?P<parent>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/autosaves/(?P<id>[\\d]+)": {5534 "namespace": "wp/v2",5535 "methods": [5536 "GET"5537 ],5538 "endpoints": [5539 {5540 "methods": [5541 "GET"5542 ],5543 "args": {5544 "parent": {5545 "description": "The id of a template",5546 "type": "string",5547 "required": false5548 },5549 "id": {5550 "description": "The ID for the autosave.",5551 "type": "integer",5552 "required": false5553 },5554 "context": {5555 "description": "Scope under which the request is made; determines fields present in response.",5556 "type": "string",5557 "enum": [5558 "view",5559 "embed",5560 "edit"5561 ],5562 "default": "view",5563 "required": false5564 }5565 }5566 }5567 ]5568 },5569 "/wp/v2/template-parts": {5570 "namespace": "wp/v2",5571 "methods": [5572 "GET",5573 "POST"5574 ],5575 "endpoints": [5576 {5577 "methods": [5578 "GET"5579 ],5580 "args": {5581 "context": {5582 "description": "Scope under which the request is made; determines fields present in response.",5583 "type": "string",5584 "enum": [5585 "view",5586 "embed",5587 "edit"5588 ],5589 "default": "view",5590 "required": false5591 },5592 "wp_id": {5593 "description": "Limit to the specified post id.",5594 "type": "integer",5595 "required": false5596 },5597 "area": {5598 "description": "Limit to the specified template part area.",5599 "type": "string",5600 "required": false5601 },5602 "post_type": {5603 "description": "Post type to get the templates for.",5604 "type": "string",5605 "required": false5606 }5607 }5608 },5609 {5610 "methods": [5611 "POST"5612 ],5613 "args": {5614 "slug": {5615 "description": "Unique slug identifying the template.",5616 "type": "string",5617 "minLength": 1,5618 "pattern": "[a-zA-Z0-9_\\%-]+",5619 "required": true5620 },5621 "theme": {5622 "description": "Theme identifier for the template.",5623 "type": "string",5624 "required": false5625 },5626 "type": {5627 "description": "Type of template.",5628 "type": "string",5629 "required": false5630 },5631 "content": {5632 "default": "",5633 "description": "Content of template.",5634 "type": [5635 "object",5636 "string"5637 ],5638 "properties": {5639 "raw": {5640 "description": "Content for the template, as it exists in the database.",5641 "type": "string",5642 "context": [5643 "view",5644 "edit"5645 ]5646 },5647 "block_version": {5648 "description": "Version of the content block format used by the template.",5649 "type": "integer",5650 "context": [5651 "edit"5652 ],5653 "readonly": true5654 }5655 },5656 "required": false5657 },5658 "title": {5659 "default": "",5660 "description": "Title of template.",5661 "type": [5662 "object",5663 "string"5664 ],5665 "properties": {5666 "raw": {5667 "description": "Title for the template, as it exists in the database.",5668 "type": "string",5669 "context": [5670 "view",5671 "edit",5672 "embed"5673 ]5674 },5675 "rendered": {5676 "description": "HTML title for the template, transformed for display.",5677 "type": "string",5678 "context": [5679 "view",5680 "edit",5681 "embed"5682 ],5683 "readonly": true5684 }5685 },5686 "required": false5687 },5688 "description": {5689 "default": "",5690 "description": "Description of template.",5691 "type": "string",5692 "required": false5693 },5694 "status": {5695 "default": "publish",5696 "description": "Status of template.",5697 "type": "string",5698 "enum": [5699 "publish",5700 "future",5701 "draft",5702 "pending",5703 "private"5704 ],5705 "required": false5706 },5707 "author": {5708 "description": "The ID for the author of the template.",5709 "type": "integer",5710 "required": false5711 },5712 "area": {5713 "description": "Where the template part is intended for use (header, footer, etc.)",5714 "type": "string",5715 "required": false5716 }5717 }5718 }5719 ],5720 "_links": {5721 "self": [5722 {5723 "href": "http://example.org/index.php?rest_route=/wp/v2/template-parts"5724 }5725 ]5726 }5727 },5728 "/wp/v2/template-parts/lookup": {5729 "namespace": "wp/v2",5730 "methods": [5731 "GET"5732 ],5733 "endpoints": [5734 {5735 "methods": [5736 "GET"5737 ],5738 "args": {5739 "slug": {5740 "description": "The slug of the template to get the fallback for",5741 "type": "string",5742 "required": true5743 },5744 "is_custom": {5745 "description": "Indicates if a template is custom or part of the template hierarchy",5746 "type": "boolean",5747 "required": false5748 },5749 "template_prefix": {5750 "description": "The template prefix for the created template. This is used to extract the main template type, e.g. in `taxonomy-books` extracts the `taxonomy`",5751 "type": "string",5752 "required": false5753 }5754 }5755 }5756 ],5757 "_links": {5758 "self": [5759 {5760 "href": "http://example.org/index.php?rest_route=/wp/v2/template-parts/lookup"5761 }5762 ]5763 }5764 },5765 "/wp/v2/template-parts/(?P<id>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)": {5766 "namespace": "wp/v2",5767 "methods": [5768 "GET",5769 "POST",5770 "PUT",5771 "PATCH",5772 "DELETE"5773 ],5774 "endpoints": [5775 {5776 "methods": [5777 "GET"5778 ],5779 "args": {5780 "id": {5781 "description": "The id of a template",5782 "type": "string",5783 "required": false5784 },5785 "context": {5786 "description": "Scope under which the request is made; determines fields present in response.",5787 "type": "string",5788 "enum": [5789 "view",5790 "embed",5791 "edit"5792 ],5793 "default": "view",5794 "required": false5795 }5796 }5797 },5798 {5799 "methods": [5800 "POST",5801 "PUT",5802 "PATCH"5803 ],5804 "args": {5805 "id": {5806 "description": "The id of a template",5807 "type": "string",5808 "required": false5809 },5810 "slug": {5811 "description": "Unique slug identifying the template.",5812 "type": "string",5813 "minLength": 1,5814 "pattern": "[a-zA-Z0-9_\\%-]+",5815 "required": false5816 },5817 "theme": {5818 "description": "Theme identifier for the template.",5819 "type": "string",5820 "required": false5821 },5822 "type": {5823 "description": "Type of template.",5824 "type": "string",5825 "required": false5826 },5827 "content": {5828 "description": "Content of template.",5829 "type": [5830 "object",5831 "string"5832 ],5833 "properties": {5834 "raw": {5835 "description": "Content for the template, as it exists in the database.",5836 "type": "string",5837 "context": [5838 "view",5839 "edit"5840 ]5841 },5842 "block_version": {5843 "description": "Version of the content block format used by the template.",5844 "type": "integer",5845 "context": [5846 "edit"5847 ],5848 "readonly": true5849 }5850 },5851 "required": false5852 },5853 "title": {5854 "description": "Title of template.",5855 "type": [5856 "object",5857 "string"5858 ],5859 "properties": {5860 "raw": {5861 "description": "Title for the template, as it exists in the database.",5862 "type": "string",5863 "context": [5864 "view",5865 "edit",5866 "embed"5867 ]5868 },5869 "rendered": {5870 "description": "HTML title for the template, transformed for display.",5871 "type": "string",5872 "context": [5873 "view",5874 "edit",5875 "embed"5876 ],5877 "readonly": true5878 }5879 },5880 "required": false5881 },5882 "description": {5883 "description": "Description of template.",5884 "type": "string",5885 "required": false5886 },5887 "status": {5888 "description": "Status of template.",5889 "type": "string",5890 "enum": [5891 "publish",5892 "future",5893 "draft",5894 "pending",5895 "private"5896 ],5897 "required": false5898 },5899 "author": {5900 "description": "The ID for the author of the template.",5901 "type": "integer",5902 "required": false5903 },5904 "area": {5905 "description": "Where the template part is intended for use (header, footer, etc.)",5906 "type": "string",5907 "required": false5908 }5909 }5910 },5911 {5912 "methods": [5913 "DELETE"5914 ],5915 "args": {5916 "id": {5917 "description": "The id of a template",5918 "type": "string",5919 "required": false5920 },5921 "force": {5922 "type": "boolean",5923 "default": false,5924 "description": "Whether to bypass Trash and force deletion.",5925 "required": false5926 }5927 }5928 }5929 ]5930 },5931 "/wp/v2/navigation": {5932 "namespace": "wp/v2",5933 "methods": [5934 "GET",5935 "POST"5936 ],5937 "endpoints": [5938 {5939 "methods": [5940 "GET"5941 ],5942 "allow_batch": {5943 "v1": true5944 },5945 "args": {5946 "context": {5947 "description": "Scope under which the request is made; determines fields present in response.",5948 "type": "string",5949 "enum": [5950 "view",5951 "embed",5952 "edit"5953 ],5954 "default": "view",5955 "required": false5956 },5957 "page": {5958 "description": "Current page of the collection.",5959 "type": "integer",5960 "default": 1,5961 "minimum": 1,5962 "required": false5963 },5964 "per_page": {5965 "description": "Maximum number of items to be returned in result set.",5966 "type": "integer",5967 "default": 10,5968 "minimum": 1,5969 "maximum": 100,5970 "required": false5971 },5972 "search": {5973 "description": "Limit results to those matching a string.",5974 "type": "string",5975 "required": false5976 },5977 "after": {5978 "description": "Limit response to posts published after a given ISO8601 compliant date.",5979 "type": "string",5980 "format": "date-time",5981 "required": false5982 },5983 "modified_after": {5984 "description": "Limit response to posts modified after a given ISO8601 compliant date.",5985 "type": "string",5986 "format": "date-time",5987 "required": false5988 },5989 "before": {5990 "description": "Limit response to posts published before a given ISO8601 compliant date.",5991 "type": "string",5992 "format": "date-time",5993 "required": false5994 },5995 "modified_before": {5996 "description": "Limit response to posts modified before a given ISO8601 compliant date.",5997 "type": "string",5998 "format": "date-time",5999 "required": false6000 },6001 "exclude": {6002 "description": "Ensure result set excludes specific IDs.",6003 "type": "array",6004 "items": {6005 "type": "integer"6006 },6007 "default": [],6008 "required": false6009 },6010 "include": {6011 "description": "Limit result set to specific IDs.",6012 "type": "array",6013 "items": {6014 "type": "integer"6015 },6016 "default": [],6017 "required": false6018 },6019 "offset": {6020 "description": "Offset the result set by a specific number of items.",6021 "type": "integer",6022 "required": false6023 },6024 "order": {6025 "description": "Order sort attribute ascending or descending.",6026 "type": "string",6027 "default": "desc",6028 "enum": [6029 "asc",6030 "desc"6031 ],6032 "required": false6033 },6034 "orderby": {6035 "description": "Sort collection by post attribute.",6036 "type": "string",6037 "default": "date",6038 "enum": [6039 "author",6040 "date",6041 "id",6042 "include",6043 "modified",6044 "parent",6045 "relevance",6046 "slug",6047 "include_slugs",6048 "title"6049 ],6050 "required": false6051 },6052 "search_columns": {6053 "default": [],6054 "description": "Array of column names to be searched.",6055 "type": "array",6056 "items": {6057 "enum": [6058 "post_title",6059 "post_content",6060 "post_excerpt"6061 ],6062 "type": "string"6063 },6064 "required": false6065 },6066 "slug": {6067 "description": "Limit result set to posts with one or more specific slugs.",6068 "type": "array",6069 "items": {6070 "type": "string"6071 },6072 "required": false6073 },6074 "status": {6075 "default": "publish",6076 "description": "Limit result set to posts assigned one or more statuses.",6077 "type": "array",6078 "items": {6079 "enum": [6080 "publish",6081 "future",6082 "draft",6083 "pending",6084 "private",6085 "trash",6086 "auto-draft",6087 "inherit",6088 "request-pending",6089 "request-confirmed",6090 "request-failed",6091 "request-completed",6092 "any"6093 ],6094 "type": "string"6095 },6096 "required": false6097 }6098 }6099 },6100 {6101 "methods": [6102 "POST"6103 ],6104 "allow_batch": {6105 "v1": true6106 },6107 "args": {6108 "date": {6109 "description": "The date the post was published, in the site's timezone.",6110 "type": [6111 "string",6112 "null"6113 ],6114 "format": "date-time",6115 "required": false6116 },6117 "date_gmt": {6118 "description": "The date the post was published, as GMT.",6119 "type": [6120 "string",6121 "null"6122 ],6123 "format": "date-time",6124 "required": false6125 },6126 "slug": {6127 "description": "An alphanumeric identifier for the post unique to its type.",6128 "type": "string",6129 "required": false6130 },6131 "status": {6132 "description": "A named status for the post.",6133 "type": "string",6134 "enum": [6135 "publish",6136 "future",6137 "draft",6138 "pending",6139 "private"6140 ],6141 "required": false6142 },6143 "password": {6144 "description": "A password to protect access to the content and excerpt.",6145 "type": "string",6146 "required": false6147 },6148 "title": {6149 "description": "The title for the post.",6150 "type": "object",6151 "properties": {6152 "raw": {6153 "description": "Title for the post, as it exists in the database.",6154 "type": "string",6155 "context": [6156 "edit",6157 "embed"6158 ]6159 },6160 "rendered": {6161 "description": "HTML title for the post, transformed for display.",6162 "type": "string",6163 "context": [6164 "view",6165 "edit",6166 "embed"6167 ],6168 "readonly": true6169 }6170 },6171 "required": false6172 },6173 "content": {6174 "description": "The content for the post.",6175 "type": "object",6176 "properties": {6177 "raw": {6178 "description": "Content for the post, as it exists in the database.",6179 "type": "string",6180 "context": [6181 "edit",6182 "embed"6183 ]6184 },6185 "rendered": {6186 "description": "HTML content for the post, transformed for display.",6187 "type": "string",6188 "context": [6189 "view",6190 "edit",6191 "embed"6192 ],6193 "readonly": true6194 },6195 "block_version": {6196 "description": "Version of the content block format used by the post.",6197 "type": "integer",6198 "context": [6199 "edit",6200 "embed"6201 ],6202 "readonly": true6203 },6204 "protected": {6205 "description": "Whether the content is protected with a password.",6206 "type": "boolean",6207 "context": [6208 "view",6209 "edit",6210 "embed"6211 ],6212 "readonly": true6213 }6214 },6215 "required": false6216 },6217 "template": {6218 "description": "The theme file to use to display the post.",6219 "type": "string",6220 "required": false6221 }6222 }6223 }6224 ],6225 "_links": {6226 "self": [6227 {6228 "href": "http://example.org/index.php?rest_route=/wp/v2/navigation"6229 }6230 ]6231 }6232 },6233 "/wp/v2/navigation/(?P<id>[\\d]+)": {6234 "namespace": "wp/v2",6235 "methods": [6236 "GET",6237 "POST",6238 "PUT",6239 "PATCH",6240 "DELETE"6241 ],6242 "endpoints": [6243 {6244 "methods": [6245 "GET"6246 ],6247 "allow_batch": {6248 "v1": true6249 },6250 "args": {6251 "id": {6252 "description": "Unique identifier for the post.",6253 "type": "integer",6254 "required": false6255 },6256 "context": {6257 "description": "Scope under which the request is made; determines fields present in response.",6258 "type": "string",6259 "enum": [6260 "view",6261 "embed",6262 "edit"6263 ],6264 "default": "view",6265 "required": false6266 },6267 "password": {6268 "description": "The password for the post if it is password protected.",6269 "type": "string",6270 "required": false6271 }6272 }6273 },6274 {6275 "methods": [6276 "POST",6277 "PUT",6278 "PATCH"6279 ],6280 "allow_batch": {6281 "v1": true6282 },6283 "args": {6284 "id": {6285 "description": "Unique identifier for the post.",6286 "type": "integer",6287 "required": false6288 },6289 "date": {6290 "description": "The date the post was published, in the site's timezone.",6291 "type": [6292 "string",6293 "null"6294 ],6295 "format": "date-time",6296 "required": false6297 },6298 "date_gmt": {6299 "description": "The date the post was published, as GMT.",6300 "type": [6301 "string",6302 "null"6303 ],6304 "format": "date-time",6305 "required": false6306 },6307 "slug": {6308 "description": "An alphanumeric identifier for the post unique to its type.",6309 "type": "string",6310 "required": false6311 },6312 "status": {6313 "description": "A named status for the post.",6314 "type": "string",6315 "enum": [6316 "publish",6317 "future",6318 "draft",6319 "pending",6320 "private"6321 ],6322 "required": false6323 },6324 "password": {6325 "description": "A password to protect access to the content and excerpt.",6326 "type": "string",6327 "required": false6328 },6329 "title": {6330 "description": "The title for the post.",6331 "type": "object",6332 "properties": {6333 "raw": {6334 "description": "Title for the post, as it exists in the database.",6335 "type": "string",6336 "context": [6337 "edit",6338 "embed"6339 ]6340 },6341 "rendered": {6342 "description": "HTML title for the post, transformed for display.",6343 "type": "string",6344 "context": [6345 "view",6346 "edit",6347 "embed"6348 ],6349 "readonly": true6350 }6351 },6352 "required": false6353 },6354 "content": {6355 "description": "The content for the post.",6356 "type": "object",6357 "properties": {6358 "raw": {6359 "description": "Content for the post, as it exists in the database.",6360 "type": "string",6361 "context": [6362 "edit",6363 "embed"6364 ]6365 },6366 "rendered": {6367 "description": "HTML content for the post, transformed for display.",6368 "type": "string",6369 "context": [6370 "view",6371 "edit",6372 "embed"6373 ],6374 "readonly": true6375 },6376 "block_version": {6377 "description": "Version of the content block format used by the post.",6378 "type": "integer",6379 "context": [6380 "edit",6381 "embed"6382 ],6383 "readonly": true6384 },6385 "protected": {6386 "description": "Whether the content is protected with a password.",6387 "type": "boolean",6388 "context": [6389 "view",6390 "edit",6391 "embed"6392 ],6393 "readonly": true6394 }6395 },6396 "required": false6397 },6398 "template": {6399 "description": "The theme file to use to display the post.",6400 "type": "string",6401 "required": false6402 }6403 }6404 },6405 {6406 "methods": [6407 "DELETE"6408 ],6409 "allow_batch": {6410 "v1": true6411 },6412 "args": {6413 "id": {6414 "description": "Unique identifier for the post.",6415 "type": "integer",6416 "required": false6417 },6418 "force": {6419 "type": "boolean",6420 "default": false,6421 "description": "Whether to bypass Trash and force deletion.",6422 "required": false6423 }6424 }6425 }6426 ]6427 },6428 "/wp/v2/navigation/(?P<parent>[\\d]+)/revisions": {6429 "namespace": "wp/v2",6430 "methods": [6431 "GET"6432 ],6433 "endpoints": [6434 {6435 "methods": [6436 "GET"6437 ],6438 "args": {6439 "parent": {6440 "description": "The ID for the parent of the revision.",6441 "type": "integer",6442 "required": false6443 },6444 "context": {6445 "description": "Scope under which the request is made; determines fields present in response.",6446 "type": "string",6447 "enum": [6448 "view",6449 "embed",6450 "edit"6451 ],6452 "default": "view",6453 "required": false6454 },6455 "page": {6456 "description": "Current page of the collection.",6457 "type": "integer",6458 "default": 1,6459 "minimum": 1,6460 "required": false6461 },6462 "per_page": {6463 "description": "Maximum number of items to be returned in result set.",6464 "type": "integer",6465 "minimum": 1,6466 "maximum": 100,6467 "required": false6468 },6469 "search": {6470 "description": "Limit results to those matching a string.",6471 "type": "string",6472 "required": false6473 },6474 "exclude": {6475 "description": "Ensure result set excludes specific IDs.",6476 "type": "array",6477 "items": {6478 "type": "integer"6479 },6480 "default": [],6481 "required": false6482 },6483 "include": {6484 "description": "Limit result set to specific IDs.",6485 "type": "array",6486 "items": {6487 "type": "integer"6488 },6489 "default": [],6490 "required": false6491 },6492 "offset": {6493 "description": "Offset the result set by a specific number of items.",6494 "type": "integer",6495 "required": false6496 },6497 "order": {6498 "description": "Order sort attribute ascending or descending.",6499 "type": "string",6500 "default": "desc",6501 "enum": [6502 "asc",6503 "desc"6504 ],6505 "required": false6506 },6507 "orderby": {6508 "description": "Sort collection by object attribute.",6509 "type": "string",6510 "default": "date",6511 "enum": [6512 "date",6513 "id",6514 "include",6515 "relevance",6516 "slug",6517 "include_slugs",6518 "title"6519 ],6520 "required": false6521 }6522 }6523 }6524 ]6525 },6526 "/wp/v2/navigation/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": {6527 "namespace": "wp/v2",6528 "methods": [6529 "GET",6530 "DELETE"6531 ],6532 "endpoints": [6533 {6534 "methods": [6535 "GET"6536 ],6537 "args": {6538 "parent": {6539 "description": "The ID for the parent of the revision.",6540 "type": "integer",6541 "required": false6542 },6543 "id": {6544 "description": "Unique identifier for the revision.",6545 "type": "integer",6546 "required": false6547 },6548 "context": {6549 "description": "Scope under which the request is made; determines fields present in response.",6550 "type": "string",6551 "enum": [6552 "view",6553 "embed",6554 "edit"6555 ],6556 "default": "view",6557 "required": false6558 }6559 }6560 },6561 {6562 "methods": [6563 "DELETE"6564 ],6565 "args": {6566 "parent": {6567 "description": "The ID for the parent of the revision.",6568 "type": "integer",6569 "required": false6570 },6571 "id": {6572 "description": "Unique identifier for the revision.",6573 "type": "integer",6574 "required": false6575 },6576 "force": {6577 "type": "boolean",6578 "default": false,6579 "description": "Required to be true, as revisions do not support trashing.",6580 "required": false6581 }6582 }6583 }6584 ]6585 },6586 "/wp/v2/navigation/(?P<id>[\\d]+)/autosaves": {6587 "namespace": "wp/v2",6588 "methods": [6589 "GET",6590 "POST"6591 ],6592 "endpoints": [6593 {6594 "methods": [6595 "GET"6596 ],6597 "args": {6598 "parent": {6599 "description": "The ID for the parent of the autosave.",6600 "type": "integer",6601 "required": false6602 },6603 "context": {6604 "description": "Scope under which the request is made; determines fields present in response.",6605 "type": "string",6606 "enum": [6607 "view",6608 "embed",6609 "edit"6610 ],6611 "default": "view",6612 "required": false6613 }6614 }6615 },6616 {6617 "methods": [6618 "POST"6619 ],6620 "args": {6621 "parent": {6622 "description": "The ID for the parent of the autosave.",6623 "type": "integer",6624 "required": false6625 },6626 "date": {6627 "description": "The date the post was published, in the site's timezone.",6628 "type": [6629 "string",6630 "null"6631 ],6632 "format": "date-time",6633 "required": false6634 },6635 "date_gmt": {6636 "description": "The date the post was published, as GMT.",6637 "type": [6638 "string",6639 "null"6640 ],6641 "format": "date-time",6642 "required": false6643 },6644 "slug": {6645 "description": "An alphanumeric identifier for the post unique to its type.",6646 "type": "string",6647 "required": false6648 },6649 "status": {6650 "description": "A named status for the post.",6651 "type": "string",6652 "enum": [6653 "publish",6654 "future",6655 "draft",6656 "pending",6657 "private"6658 ],6659 "required": false6660 },6661 "password": {6662 "description": "A password to protect access to the content and excerpt.",6663 "type": "string",6664 "required": false6665 },6666 "title": {6667 "description": "The title for the post.",6668 "type": "object",6669 "properties": {6670 "raw": {6671 "description": "Title for the post, as it exists in the database.",6672 "type": "string",6673 "context": [6674 "edit",6675 "embed"6676 ]6677 },6678 "rendered": {6679 "description": "HTML title for the post, transformed for display.",6680 "type": "string",6681 "context": [6682 "view",6683 "edit",6684 "embed"6685 ],6686 "readonly": true6687 }6688 },6689 "required": false6690 },6691 "content": {6692 "description": "The content for the post.",6693 "type": "object",6694 "properties": {6695 "raw": {6696 "description": "Content for the post, as it exists in the database.",6697 "type": "string",6698 "context": [6699 "edit",6700 "embed"6701 ]6702 },6703 "rendered": {6704 "description": "HTML content for the post, transformed for display.",6705 "type": "string",6706 "context": [6707 "view",6708 "edit",6709 "embed"6710 ],6711 "readonly": true6712 },6713 "block_version": {6714 "description": "Version of the content block format used by the post.",6715 "type": "integer",6716 "context": [6717 "edit",6718 "embed"6719 ],6720 "readonly": true6721 },6722 "protected": {6723 "description": "Whether the content is protected with a password.",6724 "type": "boolean",6725 "context": [6726 "view",6727 "edit",6728 "embed"6729 ],6730 "readonly": true6731 }6732 },6733 "required": false6734 },6735 "template": {6736 "description": "The theme file to use to display the post.",6737 "type": "string",6738 "required": false6739 }6740 }6741 }6742 ]6743 },6744 "/wp/v2/navigation/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": {6745 "namespace": "wp/v2",6746 "methods": [6747 "GET"6748 ],6749 "endpoints": [6750 {6751 "methods": [6752 "GET"6753 ],6754 "args": {6755 "parent": {6756 "description": "The ID for the parent of the autosave.",6757 "type": "integer",6758 "required": false6759 },6760 "id": {6761 "description": "The ID for the autosave.",6762 "type": "integer",6763 "required": false6764 },6765 "context": {6766 "description": "Scope under which the request is made; determines fields present in response.",6767 "type": "string",6768 "enum": [6769 "view",6770 "embed",6771 "edit"6772 ],6773 "default": "view",6774 "required": false6775 }6776 }6777 }6778 ]6779 },6780 "/wp/v2/font-families": {6781 "namespace": "wp/v2",6782 "methods": [6783 "GET",6784 "POST"6785 ],6786 "endpoints": [6787 {6788 "methods": [6789 "GET"6790 ],6791 "args": {6792 "context": {6793 "description": "Scope under which the request is made; determines fields present in response.",6794 "type": "string",6795 "enum": [6796 "view",6797 "embed",6798 "edit"6799 ],6800 "default": "view",6801 "required": false6802 },6803 "page": {6804 "description": "Current page of the collection.",6805 "type": "integer",6806 "default": 1,6807 "minimum": 1,6808 "required": false6809 },6810 "per_page": {6811 "description": "Maximum number of items to be returned in result set.",6812 "type": "integer",6813 "default": 10,6814 "minimum": 1,6815 "maximum": 100,6816 "required": false6817 },6818 "exclude": {6819 "description": "Ensure result set excludes specific IDs.",6820 "type": "array",6821 "items": {6822 "type": "integer"6823 },6824 "default": [],6825 "required": false6826 },6827 "include": {6828 "description": "Limit result set to specific IDs.",6829 "type": "array",6830 "items": {6831 "type": "integer"6832 },6833 "default": [],6834 "required": false6835 },6836 "offset": {6837 "description": "Offset the result set by a specific number of items.",6838 "type": "integer",6839 "required": false6840 },6841 "order": {6842 "description": "Order sort attribute ascending or descending.",6843 "type": "string",6844 "default": "desc",6845 "enum": [6846 "asc",6847 "desc"6848 ],6849 "required": false6850 },6851 "orderby": {6852 "description": "Sort collection by post attribute.",6853 "type": "string",6854 "default": "id",6855 "enum": [6856 "id",6857 "include"6858 ],6859 "required": false6860 },6861 "slug": {6862 "description": "Limit result set to posts with one or more specific slugs.",6863 "type": "array",6864 "items": {6865 "type": "string"6866 },6867 "required": false6868 }6869 }6870 },6871 {6872 "methods": [6873 "POST"6874 ],6875 "args": {6876 "theme_json_version": {6877 "description": "Version of the theme.json schema used for the typography settings.",6878 "type": "integer",6879 "default": 2,6880 "minimum": 2,6881 "maximum": 2,6882 "required": false6883 },6884 "font_family_settings": {6885 "description": "font-family declaration in theme.json format, encoded as a string.",6886 "type": "string",6887 "required": true6888 }6889 }6890 }6891 ],6892 "_links": {6893 "self": [6894 {6895 "href": "http://example.org/index.php?rest_route=/wp/v2/font-families"6896 }6897 ]6898 }6899 },6900 "/wp/v2/font-families/(?P<id>[\\d]+)": {6901 "namespace": "wp/v2",6902 "methods": [6903 "GET",6904 "POST",6905 "PUT",6906 "PATCH",6907 "DELETE"6908 ],6909 "endpoints": [6910 {6911 "methods": [6912 "GET"6913 ],6914 "args": {6915 "id": {6916 "description": "Unique identifier for the post.",6917 "type": "integer",6918 "required": false6919 },6920 "context": {6921 "description": "Scope under which the request is made; determines fields present in response.",6922 "type": "string",6923 "enum": [6924 "view",6925 "embed",6926 "edit"6927 ],6928 "default": "view",6929 "required": false6930 }6931 }6932 },6933 {6934 "methods": [6935 "POST",6936 "PUT",6937 "PATCH"6938 ],6939 "args": {6940 "id": {6941 "description": "Unique identifier for the post.",6942 "type": "integer",6943 "required": false6944 },6945 "theme_json_version": {6946 "description": "Version of the theme.json schema used for the typography settings.",6947 "type": "integer",6948 "default": 2,6949 "minimum": 2,6950 "maximum": 2,6951 "required": false6952 },6953 "font_family_settings": {6954 "description": "font-family declaration in theme.json format, encoded as a string.",6955 "type": "string",6956 "required": true6957 }6958 }6959 },6960 {6961 "methods": [6962 "DELETE"6963 ],6964 "args": {6965 "id": {6966 "description": "Unique identifier for the post.",6967 "type": "integer",6968 "required": false6969 },6970 "force": {6971 "type": "boolean",6972 "default": false,6973 "description": "Whether to bypass Trash and force deletion.",6974 "required": false6975 }6976 }6977 }6978 ]6979 },6980 "/wp/v2/font-families/(?P<font_family_id>[\\d]+)/font-faces": {6981 "namespace": "wp/v2",6982 "methods": [6983 "GET",6984 "POST"6985 ],6986 "endpoints": [6987 {6988 "methods": [6989 "GET"6990 ],6991 "args": {6992 "font_family_id": {6993 "description": "The ID for the parent font family of the font face.",6994 "type": "integer",6995 "required": true6996 },6997 "context": {6998 "description": "Scope under which the request is made; determines fields present in response.",6999 "type": "string",7000 "enum": [7001 "view",7002 "embed",7003 "edit"7004 ],7005 "default": "view",7006 "required": false7007 },7008 "page": {7009 "description": "Current page of the collection.",7010 "type": "integer",7011 "default": 1,7012 "minimum": 1,7013 "required": false7014 },7015 "per_page": {7016 "description": "Maximum number of items to be returned in result set.",7017 "type": "integer",7018 "default": 10,7019 "minimum": 1,7020 "maximum": 100,7021 "required": false7022 },7023 "exclude": {7024 "description": "Ensure result set excludes specific IDs.",7025 "type": "array",7026 "items": {7027 "type": "integer"7028 },7029 "default": [],7030 "required": false7031 },7032 "include": {7033 "description": "Limit result set to specific IDs.",7034 "type": "array",7035 "items": {7036 "type": "integer"7037 },7038 "default": [],7039 "required": false7040 },7041 "offset": {7042 "description": "Offset the result set by a specific number of items.",7043 "type": "integer",7044 "required": false7045 },7046 "order": {7047 "description": "Order sort attribute ascending or descending.",7048 "type": "string",7049 "default": "desc",7050 "enum": [7051 "asc",7052 "desc"7053 ],7054 "required": false7055 },7056 "orderby": {7057 "description": "Sort collection by post attribute.",7058 "type": "string",7059 "default": "id",7060 "enum": [7061 "id",7062 "include"7063 ],7064 "required": false7065 }7066 }7067 },7068 {7069 "methods": [7070 "POST"7071 ],7072 "args": {7073 "font_family_id": {7074 "description": "The ID for the parent font family of the font face.",7075 "type": "integer",7076 "required": true7077 },7078 "theme_json_version": {7079 "description": "Version of the theme.json schema used for the typography settings.",7080 "type": "integer",7081 "default": 2,7082 "minimum": 2,7083 "maximum": 2,7084 "required": false7085 },7086 "font_face_settings": {7087 "description": "font-face declaration in theme.json format, encoded as a string.",7088 "type": "string",7089 "required": true7090 }7091 }7092 }7093 ]7094 },7095 "/wp/v2/font-families/(?P<font_family_id>[\\d]+)/font-faces/(?P<id>[\\d]+)": {7096 "namespace": "wp/v2",7097 "methods": [7098 "GET",7099 "DELETE"7100 ],7101 "endpoints": [7102 {7103 "methods": [7104 "GET"7105 ],7106 "args": {7107 "font_family_id": {7108 "description": "The ID for the parent font family of the font face.",7109 "type": "integer",7110 "required": true7111 },7112 "id": {7113 "description": "Unique identifier for the font face.",7114 "type": "integer",7115 "required": true7116 },7117 "context": {7118 "description": "Scope under which the request is made; determines fields present in response.",7119 "type": "string",7120 "enum": [7121 "view",7122 "embed",7123 "edit"7124 ],7125 "default": "view",7126 "required": false7127 }7128 }7129 },7130 {7131 "methods": [7132 "DELETE"7133 ],7134 "args": {7135 "font_family_id": {7136 "description": "The ID for the parent font family of the font face.",7137 "type": "integer",7138 "required": true7139 },7140 "id": {7141 "description": "Unique identifier for the font face.",7142 "type": "integer",7143 "required": true7144 },7145 "force": {7146 "type": "boolean",7147 "default": false,7148 "description": "Whether to bypass Trash and force deletion.",7149 2714 "required": false 7150 2715 } … … 7919 3484 ] 7920 3485 }, 3486 "/wp/v2/menu-items": { 3487 "namespace": "wp/v2", 3488 "methods": [ 3489 "GET", 3490 "POST" 3491 ], 3492 "endpoints": [ 3493 { 3494 "methods": [ 3495 "GET" 3496 ], 3497 "allow_batch": { 3498 "v1": true 3499 }, 3500 "args": { 3501 "context": { 3502 "description": "Scope under which the request is made; determines fields present in response.", 3503 "type": "string", 3504 "enum": [ 3505 "view", 3506 "embed", 3507 "edit" 3508 ], 3509 "default": "view", 3510 "required": false 3511 }, 3512 "page": { 3513 "description": "Current page of the collection.", 3514 "type": "integer", 3515 "default": 1, 3516 "minimum": 1, 3517 "required": false 3518 }, 3519 "per_page": { 3520 "description": "Maximum number of items to be returned in result set.", 3521 "type": "integer", 3522 "default": 100, 3523 "minimum": 1, 3524 "maximum": 100, 3525 "required": false 3526 }, 3527 "search": { 3528 "description": "Limit results to those matching a string.", 3529 "type": "string", 3530 "required": false 3531 }, 3532 "after": { 3533 "description": "Limit response to posts published after a given ISO8601 compliant date.", 3534 "type": "string", 3535 "format": "date-time", 3536 "required": false 3537 }, 3538 "modified_after": { 3539 "description": "Limit response to posts modified after a given ISO8601 compliant date.", 3540 "type": "string", 3541 "format": "date-time", 3542 "required": false 3543 }, 3544 "before": { 3545 "description": "Limit response to posts published before a given ISO8601 compliant date.", 3546 "type": "string", 3547 "format": "date-time", 3548 "required": false 3549 }, 3550 "modified_before": { 3551 "description": "Limit response to posts modified before a given ISO8601 compliant date.", 3552 "type": "string", 3553 "format": "date-time", 3554 "required": false 3555 }, 3556 "exclude": { 3557 "description": "Ensure result set excludes specific IDs.", 3558 "type": "array", 3559 "items": { 3560 "type": "integer" 3561 }, 3562 "default": [], 3563 "required": false 3564 }, 3565 "include": { 3566 "description": "Limit result set to specific IDs.", 3567 "type": "array", 3568 "items": { 3569 "type": "integer" 3570 }, 3571 "default": [], 3572 "required": false 3573 }, 3574 "offset": { 3575 "description": "Offset the result set by a specific number of items.", 3576 "type": "integer", 3577 "required": false 3578 }, 3579 "order": { 3580 "description": "Order sort attribute ascending or descending.", 3581 "type": "string", 3582 "default": "asc", 3583 "enum": [ 3584 "asc", 3585 "desc" 3586 ], 3587 "required": false 3588 }, 3589 "orderby": { 3590 "description": "Sort collection by object attribute.", 3591 "type": "string", 3592 "default": "menu_order", 3593 "enum": [ 3594 "author", 3595 "date", 3596 "id", 3597 "include", 3598 "modified", 3599 "parent", 3600 "relevance", 3601 "slug", 3602 "include_slugs", 3603 "title", 3604 "menu_order" 3605 ], 3606 "required": false 3607 }, 3608 "search_columns": { 3609 "default": [], 3610 "description": "Array of column names to be searched.", 3611 "type": "array", 3612 "items": { 3613 "enum": [ 3614 "post_title", 3615 "post_content", 3616 "post_excerpt" 3617 ], 3618 "type": "string" 3619 }, 3620 "required": false 3621 }, 3622 "slug": { 3623 "description": "Limit result set to posts with one or more specific slugs.", 3624 "type": "array", 3625 "items": { 3626 "type": "string" 3627 }, 3628 "required": false 3629 }, 3630 "status": { 3631 "default": "publish", 3632 "description": "Limit result set to posts assigned one or more statuses.", 3633 "type": "array", 3634 "items": { 3635 "enum": [ 3636 "publish", 3637 "future", 3638 "draft", 3639 "pending", 3640 "private", 3641 "trash", 3642 "auto-draft", 3643 "inherit", 3644 "request-pending", 3645 "request-confirmed", 3646 "request-failed", 3647 "request-completed", 3648 "any" 3649 ], 3650 "type": "string" 3651 }, 3652 "required": false 3653 }, 3654 "tax_relation": { 3655 "description": "Limit result set based on relationship between multiple taxonomies.", 3656 "type": "string", 3657 "enum": [ 3658 "AND", 3659 "OR" 3660 ], 3661 "required": false 3662 }, 3663 "menus": { 3664 "description": "Limit result set to items with specific terms assigned in the menus taxonomy.", 3665 "type": [ 3666 "object", 3667 "array" 3668 ], 3669 "oneOf": [ 3670 { 3671 "title": "Term ID List", 3672 "description": "Match terms with the listed IDs.", 3673 "type": "array", 3674 "items": { 3675 "type": "integer" 3676 } 3677 }, 3678 { 3679 "title": "Term ID Taxonomy Query", 3680 "description": "Perform an advanced term query.", 3681 "type": "object", 3682 "properties": { 3683 "terms": { 3684 "description": "Term IDs.", 3685 "type": "array", 3686 "items": { 3687 "type": "integer" 3688 }, 3689 "default": [] 3690 }, 3691 "operator": { 3692 "description": "Whether items must be assigned all or any of the specified terms.", 3693 "type": "string", 3694 "enum": [ 3695 "AND", 3696 "OR" 3697 ], 3698 "default": "OR" 3699 } 3700 }, 3701 "additionalProperties": false 3702 } 3703 ], 3704 "required": false 3705 }, 3706 "menus_exclude": { 3707 "description": "Limit result set to items except those with specific terms assigned in the menus taxonomy.", 3708 "type": [ 3709 "object", 3710 "array" 3711 ], 3712 "oneOf": [ 3713 { 3714 "title": "Term ID List", 3715 "description": "Match terms with the listed IDs.", 3716 "type": "array", 3717 "items": { 3718 "type": "integer" 3719 } 3720 }, 3721 { 3722 "title": "Term ID Taxonomy Query", 3723 "description": "Perform an advanced term query.", 3724 "type": "object", 3725 "properties": { 3726 "terms": { 3727 "description": "Term IDs.", 3728 "type": "array", 3729 "items": { 3730 "type": "integer" 3731 }, 3732 "default": [] 3733 } 3734 }, 3735 "additionalProperties": false 3736 } 3737 ], 3738 "required": false 3739 }, 3740 "menu_order": { 3741 "description": "Limit result set to posts with a specific menu_order value.", 3742 "type": "integer", 3743 "required": false 3744 } 3745 } 3746 }, 3747 { 3748 "methods": [ 3749 "POST" 3750 ], 3751 "allow_batch": { 3752 "v1": true 3753 }, 3754 "args": { 3755 "title": { 3756 "description": "The title for the object.", 3757 "type": [ 3758 "string", 3759 "object" 3760 ], 3761 "properties": { 3762 "raw": { 3763 "description": "Title for the object, as it exists in the database.", 3764 "type": "string", 3765 "context": [ 3766 "edit" 3767 ] 3768 }, 3769 "rendered": { 3770 "description": "HTML title for the object, transformed for display.", 3771 "type": "string", 3772 "context": [ 3773 "view", 3774 "edit", 3775 "embed" 3776 ], 3777 "readonly": true 3778 } 3779 }, 3780 "required": false 3781 }, 3782 "type": { 3783 "default": "custom", 3784 "description": "The family of objects originally represented, such as \"post_type\" or \"taxonomy\".", 3785 "type": "string", 3786 "enum": [ 3787 "taxonomy", 3788 "post_type", 3789 "post_type_archive", 3790 "custom" 3791 ], 3792 "required": false 3793 }, 3794 "status": { 3795 "default": "publish", 3796 "description": "A named status for the object.", 3797 "type": "string", 3798 "enum": [ 3799 "publish", 3800 "future", 3801 "draft", 3802 "pending", 3803 "private" 3804 ], 3805 "required": false 3806 }, 3807 "parent": { 3808 "default": 0, 3809 "description": "The ID for the parent of the object.", 3810 "type": "integer", 3811 "minimum": 0, 3812 "required": false 3813 }, 3814 "attr_title": { 3815 "description": "Text for the title attribute of the link element for this menu item.", 3816 "type": "string", 3817 "required": false 3818 }, 3819 "classes": { 3820 "description": "Class names for the link element of this menu item.", 3821 "type": "array", 3822 "items": { 3823 "type": "string" 3824 }, 3825 "required": false 3826 }, 3827 "description": { 3828 "description": "The description of this menu item.", 3829 "type": "string", 3830 "required": false 3831 }, 3832 "menu_order": { 3833 "default": 1, 3834 "description": "The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.", 3835 "type": "integer", 3836 "minimum": 1, 3837 "required": false 3838 }, 3839 "object": { 3840 "description": "The type of object originally represented, such as \"category\", \"post\", or \"attachment\".", 3841 "type": "string", 3842 "required": false 3843 }, 3844 "object_id": { 3845 "default": 0, 3846 "description": "The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.", 3847 "type": "integer", 3848 "minimum": 0, 3849 "required": false 3850 }, 3851 "target": { 3852 "description": "The target attribute of the link element for this menu item.", 3853 "type": "string", 3854 "enum": [ 3855 "_blank", 3856 "" 3857 ], 3858 "required": false 3859 }, 3860 "url": { 3861 "description": "The URL to which this menu item points.", 3862 "type": "string", 3863 "format": "uri", 3864 "required": false 3865 }, 3866 "xfn": { 3867 "description": "The XFN relationship expressed in the link of this menu item.", 3868 "type": "array", 3869 "items": { 3870 "type": "string" 3871 }, 3872 "required": false 3873 }, 3874 "menus": { 3875 "description": "The terms assigned to the object in the nav_menu taxonomy.", 3876 "type": "integer", 3877 "required": false 3878 }, 3879 "meta": { 3880 "description": "Meta fields.", 3881 "type": "object", 3882 "properties": [], 3883 "required": false 3884 } 3885 } 3886 } 3887 ], 3888 "_links": { 3889 "self": [ 3890 { 3891 "href": "http://example.org/index.php?rest_route=/wp/v2/menu-items" 3892 } 3893 ] 3894 } 3895 }, 3896 "/wp/v2/menu-items/(?P<id>[\\d]+)": { 3897 "namespace": "wp/v2", 3898 "methods": [ 3899 "GET", 3900 "POST", 3901 "PUT", 3902 "PATCH", 3903 "DELETE" 3904 ], 3905 "endpoints": [ 3906 { 3907 "methods": [ 3908 "GET" 3909 ], 3910 "allow_batch": { 3911 "v1": true 3912 }, 3913 "args": { 3914 "id": { 3915 "description": "Unique identifier for the post.", 3916 "type": "integer", 3917 "required": false 3918 }, 3919 "context": { 3920 "description": "Scope under which the request is made; determines fields present in response.", 3921 "type": "string", 3922 "enum": [ 3923 "view", 3924 "embed", 3925 "edit" 3926 ], 3927 "default": "view", 3928 "required": false 3929 } 3930 } 3931 }, 3932 { 3933 "methods": [ 3934 "POST", 3935 "PUT", 3936 "PATCH" 3937 ], 3938 "allow_batch": { 3939 "v1": true 3940 }, 3941 "args": { 3942 "id": { 3943 "description": "Unique identifier for the post.", 3944 "type": "integer", 3945 "required": false 3946 }, 3947 "title": { 3948 "description": "The title for the object.", 3949 "type": [ 3950 "string", 3951 "object" 3952 ], 3953 "properties": { 3954 "raw": { 3955 "description": "Title for the object, as it exists in the database.", 3956 "type": "string", 3957 "context": [ 3958 "edit" 3959 ] 3960 }, 3961 "rendered": { 3962 "description": "HTML title for the object, transformed for display.", 3963 "type": "string", 3964 "context": [ 3965 "view", 3966 "edit", 3967 "embed" 3968 ], 3969 "readonly": true 3970 } 3971 }, 3972 "required": false 3973 }, 3974 "type": { 3975 "description": "The family of objects originally represented, such as \"post_type\" or \"taxonomy\".", 3976 "type": "string", 3977 "enum": [ 3978 "taxonomy", 3979 "post_type", 3980 "post_type_archive", 3981 "custom" 3982 ], 3983 "required": false 3984 }, 3985 "status": { 3986 "description": "A named status for the object.", 3987 "type": "string", 3988 "enum": [ 3989 "publish", 3990 "future", 3991 "draft", 3992 "pending", 3993 "private" 3994 ], 3995 "required": false 3996 }, 3997 "parent": { 3998 "description": "The ID for the parent of the object.", 3999 "type": "integer", 4000 "minimum": 0, 4001 "required": false 4002 }, 4003 "attr_title": { 4004 "description": "Text for the title attribute of the link element for this menu item.", 4005 "type": "string", 4006 "required": false 4007 }, 4008 "classes": { 4009 "description": "Class names for the link element of this menu item.", 4010 "type": "array", 4011 "items": { 4012 "type": "string" 4013 }, 4014 "required": false 4015 }, 4016 "description": { 4017 "description": "The description of this menu item.", 4018 "type": "string", 4019 "required": false 4020 }, 4021 "menu_order": { 4022 "description": "The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.", 4023 "type": "integer", 4024 "minimum": 1, 4025 "required": false 4026 }, 4027 "object": { 4028 "description": "The type of object originally represented, such as \"category\", \"post\", or \"attachment\".", 4029 "type": "string", 4030 "required": false 4031 }, 4032 "object_id": { 4033 "description": "The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.", 4034 "type": "integer", 4035 "minimum": 0, 4036 "required": false 4037 }, 4038 "target": { 4039 "description": "The target attribute of the link element for this menu item.", 4040 "type": "string", 4041 "enum": [ 4042 "_blank", 4043 "" 4044 ], 4045 "required": false 4046 }, 4047 "url": { 4048 "description": "The URL to which this menu item points.", 4049 "type": "string", 4050 "format": "uri", 4051 "required": false 4052 }, 4053 "xfn": { 4054 "description": "The XFN relationship expressed in the link of this menu item.", 4055 "type": "array", 4056 "items": { 4057 "type": "string" 4058 }, 4059 "required": false 4060 }, 4061 "menus": { 4062 "description": "The terms assigned to the object in the nav_menu taxonomy.", 4063 "type": "integer", 4064 "required": false 4065 }, 4066 "meta": { 4067 "description": "Meta fields.", 4068 "type": "object", 4069 "properties": [], 4070 "required": false 4071 } 4072 } 4073 }, 4074 { 4075 "methods": [ 4076 "DELETE" 4077 ], 4078 "allow_batch": { 4079 "v1": true 4080 }, 4081 "args": { 4082 "id": { 4083 "description": "Unique identifier for the post.", 4084 "type": "integer", 4085 "required": false 4086 }, 4087 "force": { 4088 "type": "boolean", 4089 "default": false, 4090 "description": "Whether to bypass Trash and force deletion.", 4091 "required": false 4092 } 4093 } 4094 } 4095 ] 4096 }, 4097 "/wp/v2/menu-items/(?P<id>[\\d]+)/autosaves": { 4098 "namespace": "wp/v2", 4099 "methods": [ 4100 "GET", 4101 "POST" 4102 ], 4103 "endpoints": [ 4104 { 4105 "methods": [ 4106 "GET" 4107 ], 4108 "args": { 4109 "parent": { 4110 "description": "The ID for the parent of the autosave.", 4111 "type": "integer", 4112 "required": false 4113 }, 4114 "context": { 4115 "description": "Scope under which the request is made; determines fields present in response.", 4116 "type": "string", 4117 "enum": [ 4118 "view", 4119 "embed", 4120 "edit" 4121 ], 4122 "default": "view", 4123 "required": false 4124 } 4125 } 4126 }, 4127 { 4128 "methods": [ 4129 "POST" 4130 ], 4131 "args": { 4132 "parent": { 4133 "description": "The ID for the parent of the object.", 4134 "type": "integer", 4135 "minimum": 0, 4136 "required": false 4137 }, 4138 "title": { 4139 "description": "The title for the object.", 4140 "type": [ 4141 "string", 4142 "object" 4143 ], 4144 "properties": { 4145 "raw": { 4146 "description": "Title for the object, as it exists in the database.", 4147 "type": "string", 4148 "context": [ 4149 "edit" 4150 ] 4151 }, 4152 "rendered": { 4153 "description": "HTML title for the object, transformed for display.", 4154 "type": "string", 4155 "context": [ 4156 "view", 4157 "edit", 4158 "embed" 4159 ], 4160 "readonly": true 4161 } 4162 }, 4163 "required": false 4164 }, 4165 "type": { 4166 "description": "The family of objects originally represented, such as \"post_type\" or \"taxonomy\".", 4167 "type": "string", 4168 "enum": [ 4169 "taxonomy", 4170 "post_type", 4171 "post_type_archive", 4172 "custom" 4173 ], 4174 "required": false 4175 }, 4176 "status": { 4177 "description": "A named status for the object.", 4178 "type": "string", 4179 "enum": [ 4180 "publish", 4181 "future", 4182 "draft", 4183 "pending", 4184 "private" 4185 ], 4186 "required": false 4187 }, 4188 "attr_title": { 4189 "description": "Text for the title attribute of the link element for this menu item.", 4190 "type": "string", 4191 "required": false 4192 }, 4193 "classes": { 4194 "description": "Class names for the link element of this menu item.", 4195 "type": "array", 4196 "items": { 4197 "type": "string" 4198 }, 4199 "required": false 4200 }, 4201 "description": { 4202 "description": "The description of this menu item.", 4203 "type": "string", 4204 "required": false 4205 }, 4206 "menu_order": { 4207 "description": "The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.", 4208 "type": "integer", 4209 "minimum": 1, 4210 "required": false 4211 }, 4212 "object": { 4213 "description": "The type of object originally represented, such as \"category\", \"post\", or \"attachment\".", 4214 "type": "string", 4215 "required": false 4216 }, 4217 "object_id": { 4218 "description": "The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.", 4219 "type": "integer", 4220 "minimum": 0, 4221 "required": false 4222 }, 4223 "target": { 4224 "description": "The target attribute of the link element for this menu item.", 4225 "type": "string", 4226 "enum": [ 4227 "_blank", 4228 "" 4229 ], 4230 "required": false 4231 }, 4232 "url": { 4233 "description": "The URL to which this menu item points.", 4234 "type": "string", 4235 "format": "uri", 4236 "required": false 4237 }, 4238 "xfn": { 4239 "description": "The XFN relationship expressed in the link of this menu item.", 4240 "type": "array", 4241 "items": { 4242 "type": "string" 4243 }, 4244 "required": false 4245 }, 4246 "menus": { 4247 "description": "The terms assigned to the object in the nav_menu taxonomy.", 4248 "type": "integer", 4249 "required": false 4250 }, 4251 "meta": { 4252 "description": "Meta fields.", 4253 "type": "object", 4254 "properties": [], 4255 "required": false 4256 } 4257 } 4258 } 4259 ] 4260 }, 4261 "/wp/v2/menu-items/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": { 4262 "namespace": "wp/v2", 4263 "methods": [ 4264 "GET" 4265 ], 4266 "endpoints": [ 4267 { 4268 "methods": [ 4269 "GET" 4270 ], 4271 "args": { 4272 "parent": { 4273 "description": "The ID for the parent of the autosave.", 4274 "type": "integer", 4275 "required": false 4276 }, 4277 "id": { 4278 "description": "The ID for the autosave.", 4279 "type": "integer", 4280 "required": false 4281 }, 4282 "context": { 4283 "description": "Scope under which the request is made; determines fields present in response.", 4284 "type": "string", 4285 "enum": [ 4286 "view", 4287 "embed", 4288 "edit" 4289 ], 4290 "default": "view", 4291 "required": false 4292 } 4293 } 4294 } 4295 ] 4296 }, 4297 "/wp/v2/blocks": { 4298 "namespace": "wp/v2", 4299 "methods": [ 4300 "GET", 4301 "POST" 4302 ], 4303 "endpoints": [ 4304 { 4305 "methods": [ 4306 "GET" 4307 ], 4308 "allow_batch": { 4309 "v1": true 4310 }, 4311 "args": { 4312 "context": { 4313 "description": "Scope under which the request is made; determines fields present in response.", 4314 "type": "string", 4315 "enum": [ 4316 "view", 4317 "embed", 4318 "edit" 4319 ], 4320 "default": "view", 4321 "required": false 4322 }, 4323 "page": { 4324 "description": "Current page of the collection.", 4325 "type": "integer", 4326 "default": 1, 4327 "minimum": 1, 4328 "required": false 4329 }, 4330 "per_page": { 4331 "description": "Maximum number of items to be returned in result set.", 4332 "type": "integer", 4333 "default": 10, 4334 "minimum": 1, 4335 "maximum": 100, 4336 "required": false 4337 }, 4338 "search": { 4339 "description": "Limit results to those matching a string.", 4340 "type": "string", 4341 "required": false 4342 }, 4343 "after": { 4344 "description": "Limit response to posts published after a given ISO8601 compliant date.", 4345 "type": "string", 4346 "format": "date-time", 4347 "required": false 4348 }, 4349 "modified_after": { 4350 "description": "Limit response to posts modified after a given ISO8601 compliant date.", 4351 "type": "string", 4352 "format": "date-time", 4353 "required": false 4354 }, 4355 "before": { 4356 "description": "Limit response to posts published before a given ISO8601 compliant date.", 4357 "type": "string", 4358 "format": "date-time", 4359 "required": false 4360 }, 4361 "modified_before": { 4362 "description": "Limit response to posts modified before a given ISO8601 compliant date.", 4363 "type": "string", 4364 "format": "date-time", 4365 "required": false 4366 }, 4367 "exclude": { 4368 "description": "Ensure result set excludes specific IDs.", 4369 "type": "array", 4370 "items": { 4371 "type": "integer" 4372 }, 4373 "default": [], 4374 "required": false 4375 }, 4376 "include": { 4377 "description": "Limit result set to specific IDs.", 4378 "type": "array", 4379 "items": { 4380 "type": "integer" 4381 }, 4382 "default": [], 4383 "required": false 4384 }, 4385 "offset": { 4386 "description": "Offset the result set by a specific number of items.", 4387 "type": "integer", 4388 "required": false 4389 }, 4390 "order": { 4391 "description": "Order sort attribute ascending or descending.", 4392 "type": "string", 4393 "default": "desc", 4394 "enum": [ 4395 "asc", 4396 "desc" 4397 ], 4398 "required": false 4399 }, 4400 "orderby": { 4401 "description": "Sort collection by post attribute.", 4402 "type": "string", 4403 "default": "date", 4404 "enum": [ 4405 "author", 4406 "date", 4407 "id", 4408 "include", 4409 "modified", 4410 "parent", 4411 "relevance", 4412 "slug", 4413 "include_slugs", 4414 "title" 4415 ], 4416 "required": false 4417 }, 4418 "search_columns": { 4419 "default": [], 4420 "description": "Array of column names to be searched.", 4421 "type": "array", 4422 "items": { 4423 "enum": [ 4424 "post_title", 4425 "post_content", 4426 "post_excerpt" 4427 ], 4428 "type": "string" 4429 }, 4430 "required": false 4431 }, 4432 "slug": { 4433 "description": "Limit result set to posts with one or more specific slugs.", 4434 "type": "array", 4435 "items": { 4436 "type": "string" 4437 }, 4438 "required": false 4439 }, 4440 "status": { 4441 "default": "publish", 4442 "description": "Limit result set to posts assigned one or more statuses.", 4443 "type": "array", 4444 "items": { 4445 "enum": [ 4446 "publish", 4447 "future", 4448 "draft", 4449 "pending", 4450 "private", 4451 "trash", 4452 "auto-draft", 4453 "inherit", 4454 "request-pending", 4455 "request-confirmed", 4456 "request-failed", 4457 "request-completed", 4458 "any" 4459 ], 4460 "type": "string" 4461 }, 4462 "required": false 4463 }, 4464 "tax_relation": { 4465 "description": "Limit result set based on relationship between multiple taxonomies.", 4466 "type": "string", 4467 "enum": [ 4468 "AND", 4469 "OR" 4470 ], 4471 "required": false 4472 }, 4473 "wp_pattern_category": { 4474 "description": "Limit result set to items with specific terms assigned in the wp_pattern_category taxonomy.", 4475 "type": [ 4476 "object", 4477 "array" 4478 ], 4479 "oneOf": [ 4480 { 4481 "title": "Term ID List", 4482 "description": "Match terms with the listed IDs.", 4483 "type": "array", 4484 "items": { 4485 "type": "integer" 4486 } 4487 }, 4488 { 4489 "title": "Term ID Taxonomy Query", 4490 "description": "Perform an advanced term query.", 4491 "type": "object", 4492 "properties": { 4493 "terms": { 4494 "description": "Term IDs.", 4495 "type": "array", 4496 "items": { 4497 "type": "integer" 4498 }, 4499 "default": [] 4500 }, 4501 "operator": { 4502 "description": "Whether items must be assigned all or any of the specified terms.", 4503 "type": "string", 4504 "enum": [ 4505 "AND", 4506 "OR" 4507 ], 4508 "default": "OR" 4509 } 4510 }, 4511 "additionalProperties": false 4512 } 4513 ], 4514 "required": false 4515 }, 4516 "wp_pattern_category_exclude": { 4517 "description": "Limit result set to items except those with specific terms assigned in the wp_pattern_category taxonomy.", 4518 "type": [ 4519 "object", 4520 "array" 4521 ], 4522 "oneOf": [ 4523 { 4524 "title": "Term ID List", 4525 "description": "Match terms with the listed IDs.", 4526 "type": "array", 4527 "items": { 4528 "type": "integer" 4529 } 4530 }, 4531 { 4532 "title": "Term ID Taxonomy Query", 4533 "description": "Perform an advanced term query.", 4534 "type": "object", 4535 "properties": { 4536 "terms": { 4537 "description": "Term IDs.", 4538 "type": "array", 4539 "items": { 4540 "type": "integer" 4541 }, 4542 "default": [] 4543 } 4544 }, 4545 "additionalProperties": false 4546 } 4547 ], 4548 "required": false 4549 } 4550 } 4551 }, 4552 { 4553 "methods": [ 4554 "POST" 4555 ], 4556 "allow_batch": { 4557 "v1": true 4558 }, 4559 "args": { 4560 "date": { 4561 "description": "The date the post was published, in the site's timezone.", 4562 "type": [ 4563 "string", 4564 "null" 4565 ], 4566 "format": "date-time", 4567 "required": false 4568 }, 4569 "date_gmt": { 4570 "description": "The date the post was published, as GMT.", 4571 "type": [ 4572 "string", 4573 "null" 4574 ], 4575 "format": "date-time", 4576 "required": false 4577 }, 4578 "slug": { 4579 "description": "An alphanumeric identifier for the post unique to its type.", 4580 "type": "string", 4581 "required": false 4582 }, 4583 "status": { 4584 "description": "A named status for the post.", 4585 "type": "string", 4586 "enum": [ 4587 "publish", 4588 "future", 4589 "draft", 4590 "pending", 4591 "private" 4592 ], 4593 "required": false 4594 }, 4595 "password": { 4596 "description": "A password to protect access to the content and excerpt.", 4597 "type": "string", 4598 "required": false 4599 }, 4600 "title": { 4601 "description": "The title for the post.", 4602 "type": "object", 4603 "properties": { 4604 "raw": { 4605 "description": "Title for the post, as it exists in the database.", 4606 "type": "string", 4607 "context": [ 4608 "view", 4609 "edit" 4610 ] 4611 } 4612 }, 4613 "required": false 4614 }, 4615 "content": { 4616 "description": "The content for the post.", 4617 "type": "object", 4618 "properties": { 4619 "raw": { 4620 "description": "Content for the post, as it exists in the database.", 4621 "type": "string", 4622 "context": [ 4623 "view", 4624 "edit" 4625 ] 4626 }, 4627 "block_version": { 4628 "description": "Version of the content block format used by the post.", 4629 "type": "integer", 4630 "context": [ 4631 "edit" 4632 ], 4633 "readonly": true 4634 }, 4635 "protected": { 4636 "description": "Whether the content is protected with a password.", 4637 "type": "boolean", 4638 "context": [ 4639 "view", 4640 "edit", 4641 "embed" 4642 ], 4643 "readonly": true 4644 } 4645 }, 4646 "required": false 4647 }, 4648 "excerpt": { 4649 "description": "The excerpt for the post.", 4650 "type": "object", 4651 "properties": { 4652 "raw": { 4653 "description": "Excerpt for the post, as it exists in the database.", 4654 "type": "string", 4655 "context": [ 4656 "edit" 4657 ] 4658 }, 4659 "rendered": { 4660 "description": "HTML excerpt for the post, transformed for display.", 4661 "type": "string", 4662 "context": [ 4663 "view", 4664 "edit", 4665 "embed" 4666 ], 4667 "readonly": true 4668 }, 4669 "protected": { 4670 "description": "Whether the excerpt is protected with a password.", 4671 "type": "boolean", 4672 "context": [ 4673 "view", 4674 "edit", 4675 "embed" 4676 ], 4677 "readonly": true 4678 } 4679 }, 4680 "required": false 4681 }, 4682 "meta": { 4683 "description": "Meta fields.", 4684 "type": "object", 4685 "properties": [], 4686 "required": false 4687 }, 4688 "template": { 4689 "description": "The theme file to use to display the post.", 4690 "type": "string", 4691 "required": false 4692 }, 4693 "wp_pattern_category": { 4694 "description": "The terms assigned to the post in the wp_pattern_category taxonomy.", 4695 "type": "array", 4696 "items": { 4697 "type": "integer" 4698 }, 4699 "required": false 4700 } 4701 } 4702 } 4703 ], 4704 "_links": { 4705 "self": "http://example.org/index.php?rest_route=/wp/v2/blocks" 4706 } 4707 }, 4708 "/wp/v2/blocks/(?P<id>[\\d]+)": { 4709 "namespace": "wp/v2", 4710 "methods": [ 4711 "GET", 4712 "POST", 4713 "PUT", 4714 "PATCH", 4715 "DELETE" 4716 ], 4717 "endpoints": [ 4718 { 4719 "methods": [ 4720 "GET" 4721 ], 4722 "allow_batch": { 4723 "v1": true 4724 }, 4725 "args": { 4726 "id": { 4727 "description": "Unique identifier for the post.", 4728 "type": "integer", 4729 "required": false 4730 }, 4731 "context": { 4732 "description": "Scope under which the request is made; determines fields present in response.", 4733 "type": "string", 4734 "enum": [ 4735 "view", 4736 "embed", 4737 "edit" 4738 ], 4739 "default": "view", 4740 "required": false 4741 }, 4742 "excerpt_length": { 4743 "description": "Override the default excerpt length.", 4744 "type": "integer", 4745 "required": false 4746 }, 4747 "password": { 4748 "description": "The password for the post if it is password protected.", 4749 "type": "string", 4750 "required": false 4751 } 4752 } 4753 }, 4754 { 4755 "methods": [ 4756 "POST", 4757 "PUT", 4758 "PATCH" 4759 ], 4760 "allow_batch": { 4761 "v1": true 4762 }, 4763 "args": { 4764 "id": { 4765 "description": "Unique identifier for the post.", 4766 "type": "integer", 4767 "required": false 4768 }, 4769 "date": { 4770 "description": "The date the post was published, in the site's timezone.", 4771 "type": [ 4772 "string", 4773 "null" 4774 ], 4775 "format": "date-time", 4776 "required": false 4777 }, 4778 "date_gmt": { 4779 "description": "The date the post was published, as GMT.", 4780 "type": [ 4781 "string", 4782 "null" 4783 ], 4784 "format": "date-time", 4785 "required": false 4786 }, 4787 "slug": { 4788 "description": "An alphanumeric identifier for the post unique to its type.", 4789 "type": "string", 4790 "required": false 4791 }, 4792 "status": { 4793 "description": "A named status for the post.", 4794 "type": "string", 4795 "enum": [ 4796 "publish", 4797 "future", 4798 "draft", 4799 "pending", 4800 "private" 4801 ], 4802 "required": false 4803 }, 4804 "password": { 4805 "description": "A password to protect access to the content and excerpt.", 4806 "type": "string", 4807 "required": false 4808 }, 4809 "title": { 4810 "description": "The title for the post.", 4811 "type": "object", 4812 "properties": { 4813 "raw": { 4814 "description": "Title for the post, as it exists in the database.", 4815 "type": "string", 4816 "context": [ 4817 "view", 4818 "edit" 4819 ] 4820 } 4821 }, 4822 "required": false 4823 }, 4824 "content": { 4825 "description": "The content for the post.", 4826 "type": "object", 4827 "properties": { 4828 "raw": { 4829 "description": "Content for the post, as it exists in the database.", 4830 "type": "string", 4831 "context": [ 4832 "view", 4833 "edit" 4834 ] 4835 }, 4836 "block_version": { 4837 "description": "Version of the content block format used by the post.", 4838 "type": "integer", 4839 "context": [ 4840 "edit" 4841 ], 4842 "readonly": true 4843 }, 4844 "protected": { 4845 "description": "Whether the content is protected with a password.", 4846 "type": "boolean", 4847 "context": [ 4848 "view", 4849 "edit", 4850 "embed" 4851 ], 4852 "readonly": true 4853 } 4854 }, 4855 "required": false 4856 }, 4857 "excerpt": { 4858 "description": "The excerpt for the post.", 4859 "type": "object", 4860 "properties": { 4861 "raw": { 4862 "description": "Excerpt for the post, as it exists in the database.", 4863 "type": "string", 4864 "context": [ 4865 "edit" 4866 ] 4867 }, 4868 "rendered": { 4869 "description": "HTML excerpt for the post, transformed for display.", 4870 "type": "string", 4871 "context": [ 4872 "view", 4873 "edit", 4874 "embed" 4875 ], 4876 "readonly": true 4877 }, 4878 "protected": { 4879 "description": "Whether the excerpt is protected with a password.", 4880 "type": "boolean", 4881 "context": [ 4882 "view", 4883 "edit", 4884 "embed" 4885 ], 4886 "readonly": true 4887 } 4888 }, 4889 "required": false 4890 }, 4891 "meta": { 4892 "description": "Meta fields.", 4893 "type": "object", 4894 "properties": [], 4895 "required": false 4896 }, 4897 "template": { 4898 "description": "The theme file to use to display the post.", 4899 "type": "string", 4900 "required": false 4901 }, 4902 "wp_pattern_category": { 4903 "description": "The terms assigned to the post in the wp_pattern_category taxonomy.", 4904 "type": "array", 4905 "items": { 4906 "type": "integer" 4907 }, 4908 "required": false 4909 } 4910 } 4911 }, 4912 { 4913 "methods": [ 4914 "DELETE" 4915 ], 4916 "allow_batch": { 4917 "v1": true 4918 }, 4919 "args": { 4920 "id": { 4921 "description": "Unique identifier for the post.", 4922 "type": "integer", 4923 "required": false 4924 }, 4925 "force": { 4926 "type": "boolean", 4927 "default": false, 4928 "description": "Whether to bypass Trash and force deletion.", 4929 "required": false 4930 } 4931 } 4932 } 4933 ] 4934 }, 4935 "/wp/v2/blocks/(?P<parent>[\\d]+)/revisions": { 4936 "namespace": "wp/v2", 4937 "methods": [ 4938 "GET" 4939 ], 4940 "endpoints": [ 4941 { 4942 "methods": [ 4943 "GET" 4944 ], 4945 "args": { 4946 "parent": { 4947 "description": "The ID for the parent of the revision.", 4948 "type": "integer", 4949 "required": false 4950 }, 4951 "context": { 4952 "description": "Scope under which the request is made; determines fields present in response.", 4953 "type": "string", 4954 "enum": [ 4955 "view", 4956 "embed", 4957 "edit" 4958 ], 4959 "default": "view", 4960 "required": false 4961 }, 4962 "page": { 4963 "description": "Current page of the collection.", 4964 "type": "integer", 4965 "default": 1, 4966 "minimum": 1, 4967 "required": false 4968 }, 4969 "per_page": { 4970 "description": "Maximum number of items to be returned in result set.", 4971 "type": "integer", 4972 "minimum": 1, 4973 "maximum": 100, 4974 "required": false 4975 }, 4976 "search": { 4977 "description": "Limit results to those matching a string.", 4978 "type": "string", 4979 "required": false 4980 }, 4981 "exclude": { 4982 "description": "Ensure result set excludes specific IDs.", 4983 "type": "array", 4984 "items": { 4985 "type": "integer" 4986 }, 4987 "default": [], 4988 "required": false 4989 }, 4990 "include": { 4991 "description": "Limit result set to specific IDs.", 4992 "type": "array", 4993 "items": { 4994 "type": "integer" 4995 }, 4996 "default": [], 4997 "required": false 4998 }, 4999 "offset": { 5000 "description": "Offset the result set by a specific number of items.", 5001 "type": "integer", 5002 "required": false 5003 }, 5004 "order": { 5005 "description": "Order sort attribute ascending or descending.", 5006 "type": "string", 5007 "default": "desc", 5008 "enum": [ 5009 "asc", 5010 "desc" 5011 ], 5012 "required": false 5013 }, 5014 "orderby": { 5015 "description": "Sort collection by object attribute.", 5016 "type": "string", 5017 "default": "date", 5018 "enum": [ 5019 "date", 5020 "id", 5021 "include", 5022 "relevance", 5023 "slug", 5024 "include_slugs", 5025 "title" 5026 ], 5027 "required": false 5028 } 5029 } 5030 } 5031 ] 5032 }, 5033 "/wp/v2/blocks/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": { 5034 "namespace": "wp/v2", 5035 "methods": [ 5036 "GET", 5037 "DELETE" 5038 ], 5039 "endpoints": [ 5040 { 5041 "methods": [ 5042 "GET" 5043 ], 5044 "args": { 5045 "parent": { 5046 "description": "The ID for the parent of the revision.", 5047 "type": "integer", 5048 "required": false 5049 }, 5050 "id": { 5051 "description": "Unique identifier for the revision.", 5052 "type": "integer", 5053 "required": false 5054 }, 5055 "context": { 5056 "description": "Scope under which the request is made; determines fields present in response.", 5057 "type": "string", 5058 "enum": [ 5059 "view", 5060 "embed", 5061 "edit" 5062 ], 5063 "default": "view", 5064 "required": false 5065 } 5066 } 5067 }, 5068 { 5069 "methods": [ 5070 "DELETE" 5071 ], 5072 "args": { 5073 "parent": { 5074 "description": "The ID for the parent of the revision.", 5075 "type": "integer", 5076 "required": false 5077 }, 5078 "id": { 5079 "description": "Unique identifier for the revision.", 5080 "type": "integer", 5081 "required": false 5082 }, 5083 "force": { 5084 "type": "boolean", 5085 "default": false, 5086 "description": "Required to be true, as revisions do not support trashing.", 5087 "required": false 5088 } 5089 } 5090 } 5091 ] 5092 }, 5093 "/wp/v2/blocks/(?P<id>[\\d]+)/autosaves": { 5094 "namespace": "wp/v2", 5095 "methods": [ 5096 "GET", 5097 "POST" 5098 ], 5099 "endpoints": [ 5100 { 5101 "methods": [ 5102 "GET" 5103 ], 5104 "args": { 5105 "parent": { 5106 "description": "The ID for the parent of the autosave.", 5107 "type": "integer", 5108 "required": false 5109 }, 5110 "context": { 5111 "description": "Scope under which the request is made; determines fields present in response.", 5112 "type": "string", 5113 "enum": [ 5114 "view", 5115 "embed", 5116 "edit" 5117 ], 5118 "default": "view", 5119 "required": false 5120 } 5121 } 5122 }, 5123 { 5124 "methods": [ 5125 "POST" 5126 ], 5127 "args": { 5128 "parent": { 5129 "description": "The ID for the parent of the autosave.", 5130 "type": "integer", 5131 "required": false 5132 }, 5133 "date": { 5134 "description": "The date the post was published, in the site's timezone.", 5135 "type": [ 5136 "string", 5137 "null" 5138 ], 5139 "format": "date-time", 5140 "required": false 5141 }, 5142 "date_gmt": { 5143 "description": "The date the post was published, as GMT.", 5144 "type": [ 5145 "string", 5146 "null" 5147 ], 5148 "format": "date-time", 5149 "required": false 5150 }, 5151 "slug": { 5152 "description": "An alphanumeric identifier for the post unique to its type.", 5153 "type": "string", 5154 "required": false 5155 }, 5156 "status": { 5157 "description": "A named status for the post.", 5158 "type": "string", 5159 "enum": [ 5160 "publish", 5161 "future", 5162 "draft", 5163 "pending", 5164 "private" 5165 ], 5166 "required": false 5167 }, 5168 "password": { 5169 "description": "A password to protect access to the content and excerpt.", 5170 "type": "string", 5171 "required": false 5172 }, 5173 "title": { 5174 "description": "The title for the post.", 5175 "type": "object", 5176 "properties": { 5177 "raw": { 5178 "description": "Title for the post, as it exists in the database.", 5179 "type": "string", 5180 "context": [ 5181 "view", 5182 "edit" 5183 ] 5184 } 5185 }, 5186 "required": false 5187 }, 5188 "content": { 5189 "description": "The content for the post.", 5190 "type": "object", 5191 "properties": { 5192 "raw": { 5193 "description": "Content for the post, as it exists in the database.", 5194 "type": "string", 5195 "context": [ 5196 "view", 5197 "edit" 5198 ] 5199 }, 5200 "block_version": { 5201 "description": "Version of the content block format used by the post.", 5202 "type": "integer", 5203 "context": [ 5204 "edit" 5205 ], 5206 "readonly": true 5207 }, 5208 "protected": { 5209 "description": "Whether the content is protected with a password.", 5210 "type": "boolean", 5211 "context": [ 5212 "view", 5213 "edit", 5214 "embed" 5215 ], 5216 "readonly": true 5217 } 5218 }, 5219 "required": false 5220 }, 5221 "excerpt": { 5222 "description": "The excerpt for the post.", 5223 "type": "object", 5224 "properties": { 5225 "raw": { 5226 "description": "Excerpt for the post, as it exists in the database.", 5227 "type": "string", 5228 "context": [ 5229 "edit" 5230 ] 5231 }, 5232 "rendered": { 5233 "description": "HTML excerpt for the post, transformed for display.", 5234 "type": "string", 5235 "context": [ 5236 "view", 5237 "edit", 5238 "embed" 5239 ], 5240 "readonly": true 5241 }, 5242 "protected": { 5243 "description": "Whether the excerpt is protected with a password.", 5244 "type": "boolean", 5245 "context": [ 5246 "view", 5247 "edit", 5248 "embed" 5249 ], 5250 "readonly": true 5251 } 5252 }, 5253 "required": false 5254 }, 5255 "meta": { 5256 "description": "Meta fields.", 5257 "type": "object", 5258 "properties": [], 5259 "required": false 5260 }, 5261 "template": { 5262 "description": "The theme file to use to display the post.", 5263 "type": "string", 5264 "required": false 5265 }, 5266 "wp_pattern_category": { 5267 "description": "The terms assigned to the post in the wp_pattern_category taxonomy.", 5268 "type": "array", 5269 "items": { 5270 "type": "integer" 5271 }, 5272 "required": false 5273 } 5274 } 5275 } 5276 ] 5277 }, 5278 "/wp/v2/blocks/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": { 5279 "namespace": "wp/v2", 5280 "methods": [ 5281 "GET" 5282 ], 5283 "endpoints": [ 5284 { 5285 "methods": [ 5286 "GET" 5287 ], 5288 "args": { 5289 "parent": { 5290 "description": "The ID for the parent of the autosave.", 5291 "type": "integer", 5292 "required": false 5293 }, 5294 "id": { 5295 "description": "The ID for the autosave.", 5296 "type": "integer", 5297 "required": false 5298 }, 5299 "context": { 5300 "description": "Scope under which the request is made; determines fields present in response.", 5301 "type": "string", 5302 "enum": [ 5303 "view", 5304 "embed", 5305 "edit" 5306 ], 5307 "default": "view", 5308 "required": false 5309 } 5310 } 5311 } 5312 ] 5313 }, 5314 "/wp/v2/templates/(?P<parent>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/revisions": { 5315 "namespace": "wp/v2", 5316 "methods": [ 5317 "GET" 5318 ], 5319 "endpoints": [ 5320 { 5321 "methods": [ 5322 "GET" 5323 ], 5324 "args": { 5325 "parent": { 5326 "description": "The id of a template", 5327 "type": "string", 5328 "required": false 5329 }, 5330 "context": { 5331 "description": "Scope under which the request is made; determines fields present in response.", 5332 "type": "string", 5333 "enum": [ 5334 "view", 5335 "embed", 5336 "edit" 5337 ], 5338 "default": "view", 5339 "required": false 5340 }, 5341 "page": { 5342 "description": "Current page of the collection.", 5343 "type": "integer", 5344 "default": 1, 5345 "minimum": 1, 5346 "required": false 5347 }, 5348 "per_page": { 5349 "description": "Maximum number of items to be returned in result set.", 5350 "type": "integer", 5351 "minimum": 1, 5352 "maximum": 100, 5353 "required": false 5354 }, 5355 "search": { 5356 "description": "Limit results to those matching a string.", 5357 "type": "string", 5358 "required": false 5359 }, 5360 "exclude": { 5361 "description": "Ensure result set excludes specific IDs.", 5362 "type": "array", 5363 "items": { 5364 "type": "integer" 5365 }, 5366 "default": [], 5367 "required": false 5368 }, 5369 "include": { 5370 "description": "Limit result set to specific IDs.", 5371 "type": "array", 5372 "items": { 5373 "type": "integer" 5374 }, 5375 "default": [], 5376 "required": false 5377 }, 5378 "offset": { 5379 "description": "Offset the result set by a specific number of items.", 5380 "type": "integer", 5381 "required": false 5382 }, 5383 "order": { 5384 "description": "Order sort attribute ascending or descending.", 5385 "type": "string", 5386 "default": "desc", 5387 "enum": [ 5388 "asc", 5389 "desc" 5390 ], 5391 "required": false 5392 }, 5393 "orderby": { 5394 "description": "Sort collection by object attribute.", 5395 "type": "string", 5396 "default": "date", 5397 "enum": [ 5398 "date", 5399 "id", 5400 "include", 5401 "relevance", 5402 "slug", 5403 "include_slugs", 5404 "title" 5405 ], 5406 "required": false 5407 } 5408 } 5409 } 5410 ] 5411 }, 5412 "/wp/v2/templates/(?P<parent>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/revisions/(?P<id>[\\d]+)": { 5413 "namespace": "wp/v2", 5414 "methods": [ 5415 "GET", 5416 "DELETE" 5417 ], 5418 "endpoints": [ 5419 { 5420 "methods": [ 5421 "GET" 5422 ], 5423 "args": { 5424 "parent": { 5425 "description": "The id of a template", 5426 "type": "string", 5427 "required": false 5428 }, 5429 "id": { 5430 "description": "Unique identifier for the revision.", 5431 "type": "integer", 5432 "required": false 5433 }, 5434 "context": { 5435 "description": "Scope under which the request is made; determines fields present in response.", 5436 "type": "string", 5437 "enum": [ 5438 "view", 5439 "embed", 5440 "edit" 5441 ], 5442 "default": "view", 5443 "required": false 5444 } 5445 } 5446 }, 5447 { 5448 "methods": [ 5449 "DELETE" 5450 ], 5451 "args": { 5452 "parent": { 5453 "description": "The id of a template", 5454 "type": "string", 5455 "required": false 5456 }, 5457 "id": { 5458 "description": "Unique identifier for the revision.", 5459 "type": "integer", 5460 "required": false 5461 }, 5462 "force": { 5463 "type": "boolean", 5464 "default": false, 5465 "description": "Required to be true, as revisions do not support trashing.", 5466 "required": false 5467 } 5468 } 5469 } 5470 ] 5471 }, 5472 "/wp/v2/templates/(?P<id>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/autosaves": { 5473 "namespace": "wp/v2", 5474 "methods": [ 5475 "GET", 5476 "POST" 5477 ], 5478 "endpoints": [ 5479 { 5480 "methods": [ 5481 "GET" 5482 ], 5483 "args": { 5484 "id": { 5485 "description": "The id of a template", 5486 "type": "string", 5487 "required": false 5488 }, 5489 "context": { 5490 "description": "Scope under which the request is made; determines fields present in response.", 5491 "type": "string", 5492 "enum": [ 5493 "view", 5494 "embed", 5495 "edit" 5496 ], 5497 "default": "view", 5498 "required": false 5499 } 5500 } 5501 }, 5502 { 5503 "methods": [ 5504 "POST" 5505 ], 5506 "args": { 5507 "id": { 5508 "description": "The id of a template", 5509 "type": "string", 5510 "required": false 5511 }, 5512 "slug": { 5513 "description": "Unique slug identifying the template.", 5514 "type": "string", 5515 "minLength": 1, 5516 "pattern": "[a-zA-Z0-9_\\%-]+", 5517 "required": false 5518 }, 5519 "theme": { 5520 "description": "Theme identifier for the template.", 5521 "type": "string", 5522 "required": false 5523 }, 5524 "type": { 5525 "description": "Type of template.", 5526 "type": "string", 5527 "required": false 5528 }, 5529 "content": { 5530 "description": "Content of template.", 5531 "type": [ 5532 "object", 5533 "string" 5534 ], 5535 "properties": { 5536 "raw": { 5537 "description": "Content for the template, as it exists in the database.", 5538 "type": "string", 5539 "context": [ 5540 "view", 5541 "edit" 5542 ] 5543 }, 5544 "block_version": { 5545 "description": "Version of the content block format used by the template.", 5546 "type": "integer", 5547 "context": [ 5548 "edit" 5549 ], 5550 "readonly": true 5551 } 5552 }, 5553 "required": false 5554 }, 5555 "title": { 5556 "description": "Title of template.", 5557 "type": [ 5558 "object", 5559 "string" 5560 ], 5561 "properties": { 5562 "raw": { 5563 "description": "Title for the template, as it exists in the database.", 5564 "type": "string", 5565 "context": [ 5566 "view", 5567 "edit", 5568 "embed" 5569 ] 5570 }, 5571 "rendered": { 5572 "description": "HTML title for the template, transformed for display.", 5573 "type": "string", 5574 "context": [ 5575 "view", 5576 "edit", 5577 "embed" 5578 ], 5579 "readonly": true 5580 } 5581 }, 5582 "required": false 5583 }, 5584 "description": { 5585 "description": "Description of template.", 5586 "type": "string", 5587 "required": false 5588 }, 5589 "status": { 5590 "description": "Status of template.", 5591 "type": "string", 5592 "enum": [ 5593 "publish", 5594 "future", 5595 "draft", 5596 "pending", 5597 "private" 5598 ], 5599 "required": false 5600 }, 5601 "author": { 5602 "description": "The ID for the author of the template.", 5603 "type": "integer", 5604 "required": false 5605 } 5606 } 5607 } 5608 ] 5609 }, 5610 "/wp/v2/templates/(?P<parent>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/autosaves/(?P<id>[\\d]+)": { 5611 "namespace": "wp/v2", 5612 "methods": [ 5613 "GET" 5614 ], 5615 "endpoints": [ 5616 { 5617 "methods": [ 5618 "GET" 5619 ], 5620 "args": { 5621 "parent": { 5622 "description": "The id of a template", 5623 "type": "string", 5624 "required": false 5625 }, 5626 "id": { 5627 "description": "The ID for the autosave.", 5628 "type": "integer", 5629 "required": false 5630 }, 5631 "context": { 5632 "description": "Scope under which the request is made; determines fields present in response.", 5633 "type": "string", 5634 "enum": [ 5635 "view", 5636 "embed", 5637 "edit" 5638 ], 5639 "default": "view", 5640 "required": false 5641 } 5642 } 5643 } 5644 ] 5645 }, 5646 "/wp/v2/templates": { 5647 "namespace": "wp/v2", 5648 "methods": [ 5649 "GET", 5650 "POST" 5651 ], 5652 "endpoints": [ 5653 { 5654 "methods": [ 5655 "GET" 5656 ], 5657 "args": { 5658 "context": { 5659 "description": "Scope under which the request is made; determines fields present in response.", 5660 "type": "string", 5661 "enum": [ 5662 "view", 5663 "embed", 5664 "edit" 5665 ], 5666 "default": "view", 5667 "required": false 5668 }, 5669 "wp_id": { 5670 "description": "Limit to the specified post id.", 5671 "type": "integer", 5672 "required": false 5673 }, 5674 "area": { 5675 "description": "Limit to the specified template part area.", 5676 "type": "string", 5677 "required": false 5678 }, 5679 "post_type": { 5680 "description": "Post type to get the templates for.", 5681 "type": "string", 5682 "required": false 5683 } 5684 } 5685 }, 5686 { 5687 "methods": [ 5688 "POST" 5689 ], 5690 "args": { 5691 "slug": { 5692 "description": "Unique slug identifying the template.", 5693 "type": "string", 5694 "minLength": 1, 5695 "pattern": "[a-zA-Z0-9_\\%-]+", 5696 "required": true 5697 }, 5698 "theme": { 5699 "description": "Theme identifier for the template.", 5700 "type": "string", 5701 "required": false 5702 }, 5703 "type": { 5704 "description": "Type of template.", 5705 "type": "string", 5706 "required": false 5707 }, 5708 "content": { 5709 "default": "", 5710 "description": "Content of template.", 5711 "type": [ 5712 "object", 5713 "string" 5714 ], 5715 "properties": { 5716 "raw": { 5717 "description": "Content for the template, as it exists in the database.", 5718 "type": "string", 5719 "context": [ 5720 "view", 5721 "edit" 5722 ] 5723 }, 5724 "block_version": { 5725 "description": "Version of the content block format used by the template.", 5726 "type": "integer", 5727 "context": [ 5728 "edit" 5729 ], 5730 "readonly": true 5731 } 5732 }, 5733 "required": false 5734 }, 5735 "title": { 5736 "default": "", 5737 "description": "Title of template.", 5738 "type": [ 5739 "object", 5740 "string" 5741 ], 5742 "properties": { 5743 "raw": { 5744 "description": "Title for the template, as it exists in the database.", 5745 "type": "string", 5746 "context": [ 5747 "view", 5748 "edit", 5749 "embed" 5750 ] 5751 }, 5752 "rendered": { 5753 "description": "HTML title for the template, transformed for display.", 5754 "type": "string", 5755 "context": [ 5756 "view", 5757 "edit", 5758 "embed" 5759 ], 5760 "readonly": true 5761 } 5762 }, 5763 "required": false 5764 }, 5765 "description": { 5766 "default": "", 5767 "description": "Description of template.", 5768 "type": "string", 5769 "required": false 5770 }, 5771 "status": { 5772 "default": "publish", 5773 "description": "Status of template.", 5774 "type": "string", 5775 "enum": [ 5776 "publish", 5777 "future", 5778 "draft", 5779 "pending", 5780 "private" 5781 ], 5782 "required": false 5783 }, 5784 "author": { 5785 "description": "The ID for the author of the template.", 5786 "type": "integer", 5787 "required": false 5788 } 5789 } 5790 } 5791 ], 5792 "_links": { 5793 "self": [ 5794 { 5795 "href": "http://example.org/index.php?rest_route=/wp/v2/templates" 5796 } 5797 ] 5798 } 5799 }, 5800 "/wp/v2/templates/lookup": { 5801 "namespace": "wp/v2", 5802 "methods": [ 5803 "GET" 5804 ], 5805 "endpoints": [ 5806 { 5807 "methods": [ 5808 "GET" 5809 ], 5810 "args": { 5811 "slug": { 5812 "description": "The slug of the template to get the fallback for", 5813 "type": "string", 5814 "required": true 5815 }, 5816 "is_custom": { 5817 "description": "Indicates if a template is custom or part of the template hierarchy", 5818 "type": "boolean", 5819 "required": false 5820 }, 5821 "template_prefix": { 5822 "description": "The template prefix for the created template. This is used to extract the main template type, e.g. in `taxonomy-books` extracts the `taxonomy`", 5823 "type": "string", 5824 "required": false 5825 } 5826 } 5827 } 5828 ], 5829 "_links": { 5830 "self": [ 5831 { 5832 "href": "http://example.org/index.php?rest_route=/wp/v2/templates/lookup" 5833 } 5834 ] 5835 } 5836 }, 5837 "/wp/v2/templates/(?P<id>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)": { 5838 "namespace": "wp/v2", 5839 "methods": [ 5840 "GET", 5841 "POST", 5842 "PUT", 5843 "PATCH", 5844 "DELETE" 5845 ], 5846 "endpoints": [ 5847 { 5848 "methods": [ 5849 "GET" 5850 ], 5851 "args": { 5852 "id": { 5853 "description": "The id of a template", 5854 "type": "string", 5855 "required": false 5856 }, 5857 "context": { 5858 "description": "Scope under which the request is made; determines fields present in response.", 5859 "type": "string", 5860 "enum": [ 5861 "view", 5862 "embed", 5863 "edit" 5864 ], 5865 "default": "view", 5866 "required": false 5867 } 5868 } 5869 }, 5870 { 5871 "methods": [ 5872 "POST", 5873 "PUT", 5874 "PATCH" 5875 ], 5876 "args": { 5877 "id": { 5878 "description": "The id of a template", 5879 "type": "string", 5880 "required": false 5881 }, 5882 "slug": { 5883 "description": "Unique slug identifying the template.", 5884 "type": "string", 5885 "minLength": 1, 5886 "pattern": "[a-zA-Z0-9_\\%-]+", 5887 "required": false 5888 }, 5889 "theme": { 5890 "description": "Theme identifier for the template.", 5891 "type": "string", 5892 "required": false 5893 }, 5894 "type": { 5895 "description": "Type of template.", 5896 "type": "string", 5897 "required": false 5898 }, 5899 "content": { 5900 "description": "Content of template.", 5901 "type": [ 5902 "object", 5903 "string" 5904 ], 5905 "properties": { 5906 "raw": { 5907 "description": "Content for the template, as it exists in the database.", 5908 "type": "string", 5909 "context": [ 5910 "view", 5911 "edit" 5912 ] 5913 }, 5914 "block_version": { 5915 "description": "Version of the content block format used by the template.", 5916 "type": "integer", 5917 "context": [ 5918 "edit" 5919 ], 5920 "readonly": true 5921 } 5922 }, 5923 "required": false 5924 }, 5925 "title": { 5926 "description": "Title of template.", 5927 "type": [ 5928 "object", 5929 "string" 5930 ], 5931 "properties": { 5932 "raw": { 5933 "description": "Title for the template, as it exists in the database.", 5934 "type": "string", 5935 "context": [ 5936 "view", 5937 "edit", 5938 "embed" 5939 ] 5940 }, 5941 "rendered": { 5942 "description": "HTML title for the template, transformed for display.", 5943 "type": "string", 5944 "context": [ 5945 "view", 5946 "edit", 5947 "embed" 5948 ], 5949 "readonly": true 5950 } 5951 }, 5952 "required": false 5953 }, 5954 "description": { 5955 "description": "Description of template.", 5956 "type": "string", 5957 "required": false 5958 }, 5959 "status": { 5960 "description": "Status of template.", 5961 "type": "string", 5962 "enum": [ 5963 "publish", 5964 "future", 5965 "draft", 5966 "pending", 5967 "private" 5968 ], 5969 "required": false 5970 }, 5971 "author": { 5972 "description": "The ID for the author of the template.", 5973 "type": "integer", 5974 "required": false 5975 } 5976 } 5977 }, 5978 { 5979 "methods": [ 5980 "DELETE" 5981 ], 5982 "args": { 5983 "id": { 5984 "description": "The id of a template", 5985 "type": "string", 5986 "required": false 5987 }, 5988 "force": { 5989 "type": "boolean", 5990 "default": false, 5991 "description": "Whether to bypass Trash and force deletion.", 5992 "required": false 5993 } 5994 } 5995 } 5996 ] 5997 }, 5998 "/wp/v2/template-parts/(?P<parent>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/revisions": { 5999 "namespace": "wp/v2", 6000 "methods": [ 6001 "GET" 6002 ], 6003 "endpoints": [ 6004 { 6005 "methods": [ 6006 "GET" 6007 ], 6008 "args": { 6009 "parent": { 6010 "description": "The id of a template", 6011 "type": "string", 6012 "required": false 6013 }, 6014 "context": { 6015 "description": "Scope under which the request is made; determines fields present in response.", 6016 "type": "string", 6017 "enum": [ 6018 "view", 6019 "embed", 6020 "edit" 6021 ], 6022 "default": "view", 6023 "required": false 6024 }, 6025 "page": { 6026 "description": "Current page of the collection.", 6027 "type": "integer", 6028 "default": 1, 6029 "minimum": 1, 6030 "required": false 6031 }, 6032 "per_page": { 6033 "description": "Maximum number of items to be returned in result set.", 6034 "type": "integer", 6035 "minimum": 1, 6036 "maximum": 100, 6037 "required": false 6038 }, 6039 "search": { 6040 "description": "Limit results to those matching a string.", 6041 "type": "string", 6042 "required": false 6043 }, 6044 "exclude": { 6045 "description": "Ensure result set excludes specific IDs.", 6046 "type": "array", 6047 "items": { 6048 "type": "integer" 6049 }, 6050 "default": [], 6051 "required": false 6052 }, 6053 "include": { 6054 "description": "Limit result set to specific IDs.", 6055 "type": "array", 6056 "items": { 6057 "type": "integer" 6058 }, 6059 "default": [], 6060 "required": false 6061 }, 6062 "offset": { 6063 "description": "Offset the result set by a specific number of items.", 6064 "type": "integer", 6065 "required": false 6066 }, 6067 "order": { 6068 "description": "Order sort attribute ascending or descending.", 6069 "type": "string", 6070 "default": "desc", 6071 "enum": [ 6072 "asc", 6073 "desc" 6074 ], 6075 "required": false 6076 }, 6077 "orderby": { 6078 "description": "Sort collection by object attribute.", 6079 "type": "string", 6080 "default": "date", 6081 "enum": [ 6082 "date", 6083 "id", 6084 "include", 6085 "relevance", 6086 "slug", 6087 "include_slugs", 6088 "title" 6089 ], 6090 "required": false 6091 } 6092 } 6093 } 6094 ] 6095 }, 6096 "/wp/v2/template-parts/(?P<parent>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/revisions/(?P<id>[\\d]+)": { 6097 "namespace": "wp/v2", 6098 "methods": [ 6099 "GET", 6100 "DELETE" 6101 ], 6102 "endpoints": [ 6103 { 6104 "methods": [ 6105 "GET" 6106 ], 6107 "args": { 6108 "parent": { 6109 "description": "The id of a template", 6110 "type": "string", 6111 "required": false 6112 }, 6113 "id": { 6114 "description": "Unique identifier for the revision.", 6115 "type": "integer", 6116 "required": false 6117 }, 6118 "context": { 6119 "description": "Scope under which the request is made; determines fields present in response.", 6120 "type": "string", 6121 "enum": [ 6122 "view", 6123 "embed", 6124 "edit" 6125 ], 6126 "default": "view", 6127 "required": false 6128 } 6129 } 6130 }, 6131 { 6132 "methods": [ 6133 "DELETE" 6134 ], 6135 "args": { 6136 "parent": { 6137 "description": "The id of a template", 6138 "type": "string", 6139 "required": false 6140 }, 6141 "id": { 6142 "description": "Unique identifier for the revision.", 6143 "type": "integer", 6144 "required": false 6145 }, 6146 "force": { 6147 "type": "boolean", 6148 "default": false, 6149 "description": "Required to be true, as revisions do not support trashing.", 6150 "required": false 6151 } 6152 } 6153 } 6154 ] 6155 }, 6156 "/wp/v2/template-parts/(?P<id>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/autosaves": { 6157 "namespace": "wp/v2", 6158 "methods": [ 6159 "GET", 6160 "POST" 6161 ], 6162 "endpoints": [ 6163 { 6164 "methods": [ 6165 "GET" 6166 ], 6167 "args": { 6168 "id": { 6169 "description": "The id of a template", 6170 "type": "string", 6171 "required": false 6172 }, 6173 "context": { 6174 "description": "Scope under which the request is made; determines fields present in response.", 6175 "type": "string", 6176 "enum": [ 6177 "view", 6178 "embed", 6179 "edit" 6180 ], 6181 "default": "view", 6182 "required": false 6183 } 6184 } 6185 }, 6186 { 6187 "methods": [ 6188 "POST" 6189 ], 6190 "args": { 6191 "id": { 6192 "description": "The id of a template", 6193 "type": "string", 6194 "required": false 6195 }, 6196 "slug": { 6197 "description": "Unique slug identifying the template.", 6198 "type": "string", 6199 "minLength": 1, 6200 "pattern": "[a-zA-Z0-9_\\%-]+", 6201 "required": false 6202 }, 6203 "theme": { 6204 "description": "Theme identifier for the template.", 6205 "type": "string", 6206 "required": false 6207 }, 6208 "type": { 6209 "description": "Type of template.", 6210 "type": "string", 6211 "required": false 6212 }, 6213 "content": { 6214 "description": "Content of template.", 6215 "type": [ 6216 "object", 6217 "string" 6218 ], 6219 "properties": { 6220 "raw": { 6221 "description": "Content for the template, as it exists in the database.", 6222 "type": "string", 6223 "context": [ 6224 "view", 6225 "edit" 6226 ] 6227 }, 6228 "block_version": { 6229 "description": "Version of the content block format used by the template.", 6230 "type": "integer", 6231 "context": [ 6232 "edit" 6233 ], 6234 "readonly": true 6235 } 6236 }, 6237 "required": false 6238 }, 6239 "title": { 6240 "description": "Title of template.", 6241 "type": [ 6242 "object", 6243 "string" 6244 ], 6245 "properties": { 6246 "raw": { 6247 "description": "Title for the template, as it exists in the database.", 6248 "type": "string", 6249 "context": [ 6250 "view", 6251 "edit", 6252 "embed" 6253 ] 6254 }, 6255 "rendered": { 6256 "description": "HTML title for the template, transformed for display.", 6257 "type": "string", 6258 "context": [ 6259 "view", 6260 "edit", 6261 "embed" 6262 ], 6263 "readonly": true 6264 } 6265 }, 6266 "required": false 6267 }, 6268 "description": { 6269 "description": "Description of template.", 6270 "type": "string", 6271 "required": false 6272 }, 6273 "status": { 6274 "description": "Status of template.", 6275 "type": "string", 6276 "enum": [ 6277 "publish", 6278 "future", 6279 "draft", 6280 "pending", 6281 "private" 6282 ], 6283 "required": false 6284 }, 6285 "author": { 6286 "description": "The ID for the author of the template.", 6287 "type": "integer", 6288 "required": false 6289 }, 6290 "area": { 6291 "description": "Where the template part is intended for use (header, footer, etc.)", 6292 "type": "string", 6293 "required": false 6294 } 6295 } 6296 } 6297 ] 6298 }, 6299 "/wp/v2/template-parts/(?P<parent>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)/autosaves/(?P<id>[\\d]+)": { 6300 "namespace": "wp/v2", 6301 "methods": [ 6302 "GET" 6303 ], 6304 "endpoints": [ 6305 { 6306 "methods": [ 6307 "GET" 6308 ], 6309 "args": { 6310 "parent": { 6311 "description": "The id of a template", 6312 "type": "string", 6313 "required": false 6314 }, 6315 "id": { 6316 "description": "The ID for the autosave.", 6317 "type": "integer", 6318 "required": false 6319 }, 6320 "context": { 6321 "description": "Scope under which the request is made; determines fields present in response.", 6322 "type": "string", 6323 "enum": [ 6324 "view", 6325 "embed", 6326 "edit" 6327 ], 6328 "default": "view", 6329 "required": false 6330 } 6331 } 6332 } 6333 ] 6334 }, 6335 "/wp/v2/template-parts": { 6336 "namespace": "wp/v2", 6337 "methods": [ 6338 "GET", 6339 "POST" 6340 ], 6341 "endpoints": [ 6342 { 6343 "methods": [ 6344 "GET" 6345 ], 6346 "args": { 6347 "context": { 6348 "description": "Scope under which the request is made; determines fields present in response.", 6349 "type": "string", 6350 "enum": [ 6351 "view", 6352 "embed", 6353 "edit" 6354 ], 6355 "default": "view", 6356 "required": false 6357 }, 6358 "wp_id": { 6359 "description": "Limit to the specified post id.", 6360 "type": "integer", 6361 "required": false 6362 }, 6363 "area": { 6364 "description": "Limit to the specified template part area.", 6365 "type": "string", 6366 "required": false 6367 }, 6368 "post_type": { 6369 "description": "Post type to get the templates for.", 6370 "type": "string", 6371 "required": false 6372 } 6373 } 6374 }, 6375 { 6376 "methods": [ 6377 "POST" 6378 ], 6379 "args": { 6380 "slug": { 6381 "description": "Unique slug identifying the template.", 6382 "type": "string", 6383 "minLength": 1, 6384 "pattern": "[a-zA-Z0-9_\\%-]+", 6385 "required": true 6386 }, 6387 "theme": { 6388 "description": "Theme identifier for the template.", 6389 "type": "string", 6390 "required": false 6391 }, 6392 "type": { 6393 "description": "Type of template.", 6394 "type": "string", 6395 "required": false 6396 }, 6397 "content": { 6398 "default": "", 6399 "description": "Content of template.", 6400 "type": [ 6401 "object", 6402 "string" 6403 ], 6404 "properties": { 6405 "raw": { 6406 "description": "Content for the template, as it exists in the database.", 6407 "type": "string", 6408 "context": [ 6409 "view", 6410 "edit" 6411 ] 6412 }, 6413 "block_version": { 6414 "description": "Version of the content block format used by the template.", 6415 "type": "integer", 6416 "context": [ 6417 "edit" 6418 ], 6419 "readonly": true 6420 } 6421 }, 6422 "required": false 6423 }, 6424 "title": { 6425 "default": "", 6426 "description": "Title of template.", 6427 "type": [ 6428 "object", 6429 "string" 6430 ], 6431 "properties": { 6432 "raw": { 6433 "description": "Title for the template, as it exists in the database.", 6434 "type": "string", 6435 "context": [ 6436 "view", 6437 "edit", 6438 "embed" 6439 ] 6440 }, 6441 "rendered": { 6442 "description": "HTML title for the template, transformed for display.", 6443 "type": "string", 6444 "context": [ 6445 "view", 6446 "edit", 6447 "embed" 6448 ], 6449 "readonly": true 6450 } 6451 }, 6452 "required": false 6453 }, 6454 "description": { 6455 "default": "", 6456 "description": "Description of template.", 6457 "type": "string", 6458 "required": false 6459 }, 6460 "status": { 6461 "default": "publish", 6462 "description": "Status of template.", 6463 "type": "string", 6464 "enum": [ 6465 "publish", 6466 "future", 6467 "draft", 6468 "pending", 6469 "private" 6470 ], 6471 "required": false 6472 }, 6473 "author": { 6474 "description": "The ID for the author of the template.", 6475 "type": "integer", 6476 "required": false 6477 }, 6478 "area": { 6479 "description": "Where the template part is intended for use (header, footer, etc.)", 6480 "type": "string", 6481 "required": false 6482 } 6483 } 6484 } 6485 ], 6486 "_links": { 6487 "self": [ 6488 { 6489 "href": "http://example.org/index.php?rest_route=/wp/v2/template-parts" 6490 } 6491 ] 6492 } 6493 }, 6494 "/wp/v2/template-parts/lookup": { 6495 "namespace": "wp/v2", 6496 "methods": [ 6497 "GET" 6498 ], 6499 "endpoints": [ 6500 { 6501 "methods": [ 6502 "GET" 6503 ], 6504 "args": { 6505 "slug": { 6506 "description": "The slug of the template to get the fallback for", 6507 "type": "string", 6508 "required": true 6509 }, 6510 "is_custom": { 6511 "description": "Indicates if a template is custom or part of the template hierarchy", 6512 "type": "boolean", 6513 "required": false 6514 }, 6515 "template_prefix": { 6516 "description": "The template prefix for the created template. This is used to extract the main template type, e.g. in `taxonomy-books` extracts the `taxonomy`", 6517 "type": "string", 6518 "required": false 6519 } 6520 } 6521 } 6522 ], 6523 "_links": { 6524 "self": [ 6525 { 6526 "href": "http://example.org/index.php?rest_route=/wp/v2/template-parts/lookup" 6527 } 6528 ] 6529 } 6530 }, 6531 "/wp/v2/template-parts/(?P<id>([^\\/:<>\\*\\?\"\\|]+(?:\\/[^\\/:<>\\*\\?\"\\|]+)?)[\\/\\w%-]+)": { 6532 "namespace": "wp/v2", 6533 "methods": [ 6534 "GET", 6535 "POST", 6536 "PUT", 6537 "PATCH", 6538 "DELETE" 6539 ], 6540 "endpoints": [ 6541 { 6542 "methods": [ 6543 "GET" 6544 ], 6545 "args": { 6546 "id": { 6547 "description": "The id of a template", 6548 "type": "string", 6549 "required": false 6550 }, 6551 "context": { 6552 "description": "Scope under which the request is made; determines fields present in response.", 6553 "type": "string", 6554 "enum": [ 6555 "view", 6556 "embed", 6557 "edit" 6558 ], 6559 "default": "view", 6560 "required": false 6561 } 6562 } 6563 }, 6564 { 6565 "methods": [ 6566 "POST", 6567 "PUT", 6568 "PATCH" 6569 ], 6570 "args": { 6571 "id": { 6572 "description": "The id of a template", 6573 "type": "string", 6574 "required": false 6575 }, 6576 "slug": { 6577 "description": "Unique slug identifying the template.", 6578 "type": "string", 6579 "minLength": 1, 6580 "pattern": "[a-zA-Z0-9_\\%-]+", 6581 "required": false 6582 }, 6583 "theme": { 6584 "description": "Theme identifier for the template.", 6585 "type": "string", 6586 "required": false 6587 }, 6588 "type": { 6589 "description": "Type of template.", 6590 "type": "string", 6591 "required": false 6592 }, 6593 "content": { 6594 "description": "Content of template.", 6595 "type": [ 6596 "object", 6597 "string" 6598 ], 6599 "properties": { 6600 "raw": { 6601 "description": "Content for the template, as it exists in the database.", 6602 "type": "string", 6603 "context": [ 6604 "view", 6605 "edit" 6606 ] 6607 }, 6608 "block_version": { 6609 "description": "Version of the content block format used by the template.", 6610 "type": "integer", 6611 "context": [ 6612 "edit" 6613 ], 6614 "readonly": true 6615 } 6616 }, 6617 "required": false 6618 }, 6619 "title": { 6620 "description": "Title of template.", 6621 "type": [ 6622 "object", 6623 "string" 6624 ], 6625 "properties": { 6626 "raw": { 6627 "description": "Title for the template, as it exists in the database.", 6628 "type": "string", 6629 "context": [ 6630 "view", 6631 "edit", 6632 "embed" 6633 ] 6634 }, 6635 "rendered": { 6636 "description": "HTML title for the template, transformed for display.", 6637 "type": "string", 6638 "context": [ 6639 "view", 6640 "edit", 6641 "embed" 6642 ], 6643 "readonly": true 6644 } 6645 }, 6646 "required": false 6647 }, 6648 "description": { 6649 "description": "Description of template.", 6650 "type": "string", 6651 "required": false 6652 }, 6653 "status": { 6654 "description": "Status of template.", 6655 "type": "string", 6656 "enum": [ 6657 "publish", 6658 "future", 6659 "draft", 6660 "pending", 6661 "private" 6662 ], 6663 "required": false 6664 }, 6665 "author": { 6666 "description": "The ID for the author of the template.", 6667 "type": "integer", 6668 "required": false 6669 }, 6670 "area": { 6671 "description": "Where the template part is intended for use (header, footer, etc.)", 6672 "type": "string", 6673 "required": false 6674 } 6675 } 6676 }, 6677 { 6678 "methods": [ 6679 "DELETE" 6680 ], 6681 "args": { 6682 "id": { 6683 "description": "The id of a template", 6684 "type": "string", 6685 "required": false 6686 }, 6687 "force": { 6688 "type": "boolean", 6689 "default": false, 6690 "description": "Whether to bypass Trash and force deletion.", 6691 "required": false 6692 } 6693 } 6694 } 6695 ] 6696 }, 6697 "/wp/v2/navigation": { 6698 "namespace": "wp/v2", 6699 "methods": [ 6700 "GET", 6701 "POST" 6702 ], 6703 "endpoints": [ 6704 { 6705 "methods": [ 6706 "GET" 6707 ], 6708 "allow_batch": { 6709 "v1": true 6710 }, 6711 "args": { 6712 "context": { 6713 "description": "Scope under which the request is made; determines fields present in response.", 6714 "type": "string", 6715 "enum": [ 6716 "view", 6717 "embed", 6718 "edit" 6719 ], 6720 "default": "view", 6721 "required": false 6722 }, 6723 "page": { 6724 "description": "Current page of the collection.", 6725 "type": "integer", 6726 "default": 1, 6727 "minimum": 1, 6728 "required": false 6729 }, 6730 "per_page": { 6731 "description": "Maximum number of items to be returned in result set.", 6732 "type": "integer", 6733 "default": 10, 6734 "minimum": 1, 6735 "maximum": 100, 6736 "required": false 6737 }, 6738 "search": { 6739 "description": "Limit results to those matching a string.", 6740 "type": "string", 6741 "required": false 6742 }, 6743 "after": { 6744 "description": "Limit response to posts published after a given ISO8601 compliant date.", 6745 "type": "string", 6746 "format": "date-time", 6747 "required": false 6748 }, 6749 "modified_after": { 6750 "description": "Limit response to posts modified after a given ISO8601 compliant date.", 6751 "type": "string", 6752 "format": "date-time", 6753 "required": false 6754 }, 6755 "before": { 6756 "description": "Limit response to posts published before a given ISO8601 compliant date.", 6757 "type": "string", 6758 "format": "date-time", 6759 "required": false 6760 }, 6761 "modified_before": { 6762 "description": "Limit response to posts modified before a given ISO8601 compliant date.", 6763 "type": "string", 6764 "format": "date-time", 6765 "required": false 6766 }, 6767 "exclude": { 6768 "description": "Ensure result set excludes specific IDs.", 6769 "type": "array", 6770 "items": { 6771 "type": "integer" 6772 }, 6773 "default": [], 6774 "required": false 6775 }, 6776 "include": { 6777 "description": "Limit result set to specific IDs.", 6778 "type": "array", 6779 "items": { 6780 "type": "integer" 6781 }, 6782 "default": [], 6783 "required": false 6784 }, 6785 "offset": { 6786 "description": "Offset the result set by a specific number of items.", 6787 "type": "integer", 6788 "required": false 6789 }, 6790 "order": { 6791 "description": "Order sort attribute ascending or descending.", 6792 "type": "string", 6793 "default": "desc", 6794 "enum": [ 6795 "asc", 6796 "desc" 6797 ], 6798 "required": false 6799 }, 6800 "orderby": { 6801 "description": "Sort collection by post attribute.", 6802 "type": "string", 6803 "default": "date", 6804 "enum": [ 6805 "author", 6806 "date", 6807 "id", 6808 "include", 6809 "modified", 6810 "parent", 6811 "relevance", 6812 "slug", 6813 "include_slugs", 6814 "title" 6815 ], 6816 "required": false 6817 }, 6818 "search_columns": { 6819 "default": [], 6820 "description": "Array of column names to be searched.", 6821 "type": "array", 6822 "items": { 6823 "enum": [ 6824 "post_title", 6825 "post_content", 6826 "post_excerpt" 6827 ], 6828 "type": "string" 6829 }, 6830 "required": false 6831 }, 6832 "slug": { 6833 "description": "Limit result set to posts with one or more specific slugs.", 6834 "type": "array", 6835 "items": { 6836 "type": "string" 6837 }, 6838 "required": false 6839 }, 6840 "status": { 6841 "default": "publish", 6842 "description": "Limit result set to posts assigned one or more statuses.", 6843 "type": "array", 6844 "items": { 6845 "enum": [ 6846 "publish", 6847 "future", 6848 "draft", 6849 "pending", 6850 "private", 6851 "trash", 6852 "auto-draft", 6853 "inherit", 6854 "request-pending", 6855 "request-confirmed", 6856 "request-failed", 6857 "request-completed", 6858 "any" 6859 ], 6860 "type": "string" 6861 }, 6862 "required": false 6863 } 6864 } 6865 }, 6866 { 6867 "methods": [ 6868 "POST" 6869 ], 6870 "allow_batch": { 6871 "v1": true 6872 }, 6873 "args": { 6874 "date": { 6875 "description": "The date the post was published, in the site's timezone.", 6876 "type": [ 6877 "string", 6878 "null" 6879 ], 6880 "format": "date-time", 6881 "required": false 6882 }, 6883 "date_gmt": { 6884 "description": "The date the post was published, as GMT.", 6885 "type": [ 6886 "string", 6887 "null" 6888 ], 6889 "format": "date-time", 6890 "required": false 6891 }, 6892 "slug": { 6893 "description": "An alphanumeric identifier for the post unique to its type.", 6894 "type": "string", 6895 "required": false 6896 }, 6897 "status": { 6898 "description": "A named status for the post.", 6899 "type": "string", 6900 "enum": [ 6901 "publish", 6902 "future", 6903 "draft", 6904 "pending", 6905 "private" 6906 ], 6907 "required": false 6908 }, 6909 "password": { 6910 "description": "A password to protect access to the content and excerpt.", 6911 "type": "string", 6912 "required": false 6913 }, 6914 "title": { 6915 "description": "The title for the post.", 6916 "type": "object", 6917 "properties": { 6918 "raw": { 6919 "description": "Title for the post, as it exists in the database.", 6920 "type": "string", 6921 "context": [ 6922 "edit", 6923 "embed" 6924 ] 6925 }, 6926 "rendered": { 6927 "description": "HTML title for the post, transformed for display.", 6928 "type": "string", 6929 "context": [ 6930 "view", 6931 "edit", 6932 "embed" 6933 ], 6934 "readonly": true 6935 } 6936 }, 6937 "required": false 6938 }, 6939 "content": { 6940 "description": "The content for the post.", 6941 "type": "object", 6942 "properties": { 6943 "raw": { 6944 "description": "Content for the post, as it exists in the database.", 6945 "type": "string", 6946 "context": [ 6947 "edit", 6948 "embed" 6949 ] 6950 }, 6951 "rendered": { 6952 "description": "HTML content for the post, transformed for display.", 6953 "type": "string", 6954 "context": [ 6955 "view", 6956 "edit", 6957 "embed" 6958 ], 6959 "readonly": true 6960 }, 6961 "block_version": { 6962 "description": "Version of the content block format used by the post.", 6963 "type": "integer", 6964 "context": [ 6965 "edit", 6966 "embed" 6967 ], 6968 "readonly": true 6969 }, 6970 "protected": { 6971 "description": "Whether the content is protected with a password.", 6972 "type": "boolean", 6973 "context": [ 6974 "view", 6975 "edit", 6976 "embed" 6977 ], 6978 "readonly": true 6979 } 6980 }, 6981 "required": false 6982 }, 6983 "template": { 6984 "description": "The theme file to use to display the post.", 6985 "type": "string", 6986 "required": false 6987 } 6988 } 6989 } 6990 ], 6991 "_links": { 6992 "self": [ 6993 { 6994 "href": "http://example.org/index.php?rest_route=/wp/v2/navigation" 6995 } 6996 ] 6997 } 6998 }, 6999 "/wp/v2/navigation/(?P<id>[\\d]+)": { 7000 "namespace": "wp/v2", 7001 "methods": [ 7002 "GET", 7003 "POST", 7004 "PUT", 7005 "PATCH", 7006 "DELETE" 7007 ], 7008 "endpoints": [ 7009 { 7010 "methods": [ 7011 "GET" 7012 ], 7013 "allow_batch": { 7014 "v1": true 7015 }, 7016 "args": { 7017 "id": { 7018 "description": "Unique identifier for the post.", 7019 "type": "integer", 7020 "required": false 7021 }, 7022 "context": { 7023 "description": "Scope under which the request is made; determines fields present in response.", 7024 "type": "string", 7025 "enum": [ 7026 "view", 7027 "embed", 7028 "edit" 7029 ], 7030 "default": "view", 7031 "required": false 7032 }, 7033 "password": { 7034 "description": "The password for the post if it is password protected.", 7035 "type": "string", 7036 "required": false 7037 } 7038 } 7039 }, 7040 { 7041 "methods": [ 7042 "POST", 7043 "PUT", 7044 "PATCH" 7045 ], 7046 "allow_batch": { 7047 "v1": true 7048 }, 7049 "args": { 7050 "id": { 7051 "description": "Unique identifier for the post.", 7052 "type": "integer", 7053 "required": false 7054 }, 7055 "date": { 7056 "description": "The date the post was published, in the site's timezone.", 7057 "type": [ 7058 "string", 7059 "null" 7060 ], 7061 "format": "date-time", 7062 "required": false 7063 }, 7064 "date_gmt": { 7065 "description": "The date the post was published, as GMT.", 7066 "type": [ 7067 "string", 7068 "null" 7069 ], 7070 "format": "date-time", 7071 "required": false 7072 }, 7073 "slug": { 7074 "description": "An alphanumeric identifier for the post unique to its type.", 7075 "type": "string", 7076 "required": false 7077 }, 7078 "status": { 7079 "description": "A named status for the post.", 7080 "type": "string", 7081 "enum": [ 7082 "publish", 7083 "future", 7084 "draft", 7085 "pending", 7086 "private" 7087 ], 7088 "required": false 7089 }, 7090 "password": { 7091 "description": "A password to protect access to the content and excerpt.", 7092 "type": "string", 7093 "required": false 7094 }, 7095 "title": { 7096 "description": "The title for the post.", 7097 "type": "object", 7098 "properties": { 7099 "raw": { 7100 "description": "Title for the post, as it exists in the database.", 7101 "type": "string", 7102 "context": [ 7103 "edit", 7104 "embed" 7105 ] 7106 }, 7107 "rendered": { 7108 "description": "HTML title for the post, transformed for display.", 7109 "type": "string", 7110 "context": [ 7111 "view", 7112 "edit", 7113 "embed" 7114 ], 7115 "readonly": true 7116 } 7117 }, 7118 "required": false 7119 }, 7120 "content": { 7121 "description": "The content for the post.", 7122 "type": "object", 7123 "properties": { 7124 "raw": { 7125 "description": "Content for the post, as it exists in the database.", 7126 "type": "string", 7127 "context": [ 7128 "edit", 7129 "embed" 7130 ] 7131 }, 7132 "rendered": { 7133 "description": "HTML content for the post, transformed for display.", 7134 "type": "string", 7135 "context": [ 7136 "view", 7137 "edit", 7138 "embed" 7139 ], 7140 "readonly": true 7141 }, 7142 "block_version": { 7143 "description": "Version of the content block format used by the post.", 7144 "type": "integer", 7145 "context": [ 7146 "edit", 7147 "embed" 7148 ], 7149 "readonly": true 7150 }, 7151 "protected": { 7152 "description": "Whether the content is protected with a password.", 7153 "type": "boolean", 7154 "context": [ 7155 "view", 7156 "edit", 7157 "embed" 7158 ], 7159 "readonly": true 7160 } 7161 }, 7162 "required": false 7163 }, 7164 "template": { 7165 "description": "The theme file to use to display the post.", 7166 "type": "string", 7167 "required": false 7168 } 7169 } 7170 }, 7171 { 7172 "methods": [ 7173 "DELETE" 7174 ], 7175 "allow_batch": { 7176 "v1": true 7177 }, 7178 "args": { 7179 "id": { 7180 "description": "Unique identifier for the post.", 7181 "type": "integer", 7182 "required": false 7183 }, 7184 "force": { 7185 "type": "boolean", 7186 "default": false, 7187 "description": "Whether to bypass Trash and force deletion.", 7188 "required": false 7189 } 7190 } 7191 } 7192 ] 7193 }, 7194 "/wp/v2/navigation/(?P<parent>[\\d]+)/revisions": { 7195 "namespace": "wp/v2", 7196 "methods": [ 7197 "GET" 7198 ], 7199 "endpoints": [ 7200 { 7201 "methods": [ 7202 "GET" 7203 ], 7204 "args": { 7205 "parent": { 7206 "description": "The ID for the parent of the revision.", 7207 "type": "integer", 7208 "required": false 7209 }, 7210 "context": { 7211 "description": "Scope under which the request is made; determines fields present in response.", 7212 "type": "string", 7213 "enum": [ 7214 "view", 7215 "embed", 7216 "edit" 7217 ], 7218 "default": "view", 7219 "required": false 7220 }, 7221 "page": { 7222 "description": "Current page of the collection.", 7223 "type": "integer", 7224 "default": 1, 7225 "minimum": 1, 7226 "required": false 7227 }, 7228 "per_page": { 7229 "description": "Maximum number of items to be returned in result set.", 7230 "type": "integer", 7231 "minimum": 1, 7232 "maximum": 100, 7233 "required": false 7234 }, 7235 "search": { 7236 "description": "Limit results to those matching a string.", 7237 "type": "string", 7238 "required": false 7239 }, 7240 "exclude": { 7241 "description": "Ensure result set excludes specific IDs.", 7242 "type": "array", 7243 "items": { 7244 "type": "integer" 7245 }, 7246 "default": [], 7247 "required": false 7248 }, 7249 "include": { 7250 "description": "Limit result set to specific IDs.", 7251 "type": "array", 7252 "items": { 7253 "type": "integer" 7254 }, 7255 "default": [], 7256 "required": false 7257 }, 7258 "offset": { 7259 "description": "Offset the result set by a specific number of items.", 7260 "type": "integer", 7261 "required": false 7262 }, 7263 "order": { 7264 "description": "Order sort attribute ascending or descending.", 7265 "type": "string", 7266 "default": "desc", 7267 "enum": [ 7268 "asc", 7269 "desc" 7270 ], 7271 "required": false 7272 }, 7273 "orderby": { 7274 "description": "Sort collection by object attribute.", 7275 "type": "string", 7276 "default": "date", 7277 "enum": [ 7278 "date", 7279 "id", 7280 "include", 7281 "relevance", 7282 "slug", 7283 "include_slugs", 7284 "title" 7285 ], 7286 "required": false 7287 } 7288 } 7289 } 7290 ] 7291 }, 7292 "/wp/v2/navigation/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": { 7293 "namespace": "wp/v2", 7294 "methods": [ 7295 "GET", 7296 "DELETE" 7297 ], 7298 "endpoints": [ 7299 { 7300 "methods": [ 7301 "GET" 7302 ], 7303 "args": { 7304 "parent": { 7305 "description": "The ID for the parent of the revision.", 7306 "type": "integer", 7307 "required": false 7308 }, 7309 "id": { 7310 "description": "Unique identifier for the revision.", 7311 "type": "integer", 7312 "required": false 7313 }, 7314 "context": { 7315 "description": "Scope under which the request is made; determines fields present in response.", 7316 "type": "string", 7317 "enum": [ 7318 "view", 7319 "embed", 7320 "edit" 7321 ], 7322 "default": "view", 7323 "required": false 7324 } 7325 } 7326 }, 7327 { 7328 "methods": [ 7329 "DELETE" 7330 ], 7331 "args": { 7332 "parent": { 7333 "description": "The ID for the parent of the revision.", 7334 "type": "integer", 7335 "required": false 7336 }, 7337 "id": { 7338 "description": "Unique identifier for the revision.", 7339 "type": "integer", 7340 "required": false 7341 }, 7342 "force": { 7343 "type": "boolean", 7344 "default": false, 7345 "description": "Required to be true, as revisions do not support trashing.", 7346 "required": false 7347 } 7348 } 7349 } 7350 ] 7351 }, 7352 "/wp/v2/navigation/(?P<id>[\\d]+)/autosaves": { 7353 "namespace": "wp/v2", 7354 "methods": [ 7355 "GET", 7356 "POST" 7357 ], 7358 "endpoints": [ 7359 { 7360 "methods": [ 7361 "GET" 7362 ], 7363 "args": { 7364 "parent": { 7365 "description": "The ID for the parent of the autosave.", 7366 "type": "integer", 7367 "required": false 7368 }, 7369 "context": { 7370 "description": "Scope under which the request is made; determines fields present in response.", 7371 "type": "string", 7372 "enum": [ 7373 "view", 7374 "embed", 7375 "edit" 7376 ], 7377 "default": "view", 7378 "required": false 7379 } 7380 } 7381 }, 7382 { 7383 "methods": [ 7384 "POST" 7385 ], 7386 "args": { 7387 "parent": { 7388 "description": "The ID for the parent of the autosave.", 7389 "type": "integer", 7390 "required": false 7391 }, 7392 "date": { 7393 "description": "The date the post was published, in the site's timezone.", 7394 "type": [ 7395 "string", 7396 "null" 7397 ], 7398 "format": "date-time", 7399 "required": false 7400 }, 7401 "date_gmt": { 7402 "description": "The date the post was published, as GMT.", 7403 "type": [ 7404 "string", 7405 "null" 7406 ], 7407 "format": "date-time", 7408 "required": false 7409 }, 7410 "slug": { 7411 "description": "An alphanumeric identifier for the post unique to its type.", 7412 "type": "string", 7413 "required": false 7414 }, 7415 "status": { 7416 "description": "A named status for the post.", 7417 "type": "string", 7418 "enum": [ 7419 "publish", 7420 "future", 7421 "draft", 7422 "pending", 7423 "private" 7424 ], 7425 "required": false 7426 }, 7427 "password": { 7428 "description": "A password to protect access to the content and excerpt.", 7429 "type": "string", 7430 "required": false 7431 }, 7432 "title": { 7433 "description": "The title for the post.", 7434 "type": "object", 7435 "properties": { 7436 "raw": { 7437 "description": "Title for the post, as it exists in the database.", 7438 "type": "string", 7439 "context": [ 7440 "edit", 7441 "embed" 7442 ] 7443 }, 7444 "rendered": { 7445 "description": "HTML title for the post, transformed for display.", 7446 "type": "string", 7447 "context": [ 7448 "view", 7449 "edit", 7450 "embed" 7451 ], 7452 "readonly": true 7453 } 7454 }, 7455 "required": false 7456 }, 7457 "content": { 7458 "description": "The content for the post.", 7459 "type": "object", 7460 "properties": { 7461 "raw": { 7462 "description": "Content for the post, as it exists in the database.", 7463 "type": "string", 7464 "context": [ 7465 "edit", 7466 "embed" 7467 ] 7468 }, 7469 "rendered": { 7470 "description": "HTML content for the post, transformed for display.", 7471 "type": "string", 7472 "context": [ 7473 "view", 7474 "edit", 7475 "embed" 7476 ], 7477 "readonly": true 7478 }, 7479 "block_version": { 7480 "description": "Version of the content block format used by the post.", 7481 "type": "integer", 7482 "context": [ 7483 "edit", 7484 "embed" 7485 ], 7486 "readonly": true 7487 }, 7488 "protected": { 7489 "description": "Whether the content is protected with a password.", 7490 "type": "boolean", 7491 "context": [ 7492 "view", 7493 "edit", 7494 "embed" 7495 ], 7496 "readonly": true 7497 } 7498 }, 7499 "required": false 7500 }, 7501 "template": { 7502 "description": "The theme file to use to display the post.", 7503 "type": "string", 7504 "required": false 7505 } 7506 } 7507 } 7508 ] 7509 }, 7510 "/wp/v2/navigation/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)": { 7511 "namespace": "wp/v2", 7512 "methods": [ 7513 "GET" 7514 ], 7515 "endpoints": [ 7516 { 7517 "methods": [ 7518 "GET" 7519 ], 7520 "args": { 7521 "parent": { 7522 "description": "The ID for the parent of the autosave.", 7523 "type": "integer", 7524 "required": false 7525 }, 7526 "id": { 7527 "description": "The ID for the autosave.", 7528 "type": "integer", 7529 "required": false 7530 }, 7531 "context": { 7532 "description": "Scope under which the request is made; determines fields present in response.", 7533 "type": "string", 7534 "enum": [ 7535 "view", 7536 "embed", 7537 "edit" 7538 ], 7539 "default": "view", 7540 "required": false 7541 } 7542 } 7543 } 7544 ] 7545 }, 7546 "/wp/v2/font-families": { 7547 "namespace": "wp/v2", 7548 "methods": [ 7549 "GET", 7550 "POST" 7551 ], 7552 "endpoints": [ 7553 { 7554 "methods": [ 7555 "GET" 7556 ], 7557 "args": { 7558 "context": { 7559 "description": "Scope under which the request is made; determines fields present in response.", 7560 "type": "string", 7561 "enum": [ 7562 "view", 7563 "embed", 7564 "edit" 7565 ], 7566 "default": "view", 7567 "required": false 7568 }, 7569 "page": { 7570 "description": "Current page of the collection.", 7571 "type": "integer", 7572 "default": 1, 7573 "minimum": 1, 7574 "required": false 7575 }, 7576 "per_page": { 7577 "description": "Maximum number of items to be returned in result set.", 7578 "type": "integer", 7579 "default": 10, 7580 "minimum": 1, 7581 "maximum": 100, 7582 "required": false 7583 }, 7584 "exclude": { 7585 "description": "Ensure result set excludes specific IDs.", 7586 "type": "array", 7587 "items": { 7588 "type": "integer" 7589 }, 7590 "default": [], 7591 "required": false 7592 }, 7593 "include": { 7594 "description": "Limit result set to specific IDs.", 7595 "type": "array", 7596 "items": { 7597 "type": "integer" 7598 }, 7599 "default": [], 7600 "required": false 7601 }, 7602 "offset": { 7603 "description": "Offset the result set by a specific number of items.", 7604 "type": "integer", 7605 "required": false 7606 }, 7607 "order": { 7608 "description": "Order sort attribute ascending or descending.", 7609 "type": "string", 7610 "default": "desc", 7611 "enum": [ 7612 "asc", 7613 "desc" 7614 ], 7615 "required": false 7616 }, 7617 "orderby": { 7618 "description": "Sort collection by post attribute.", 7619 "type": "string", 7620 "default": "id", 7621 "enum": [ 7622 "id", 7623 "include" 7624 ], 7625 "required": false 7626 }, 7627 "slug": { 7628 "description": "Limit result set to posts with one or more specific slugs.", 7629 "type": "array", 7630 "items": { 7631 "type": "string" 7632 }, 7633 "required": false 7634 } 7635 } 7636 }, 7637 { 7638 "methods": [ 7639 "POST" 7640 ], 7641 "args": { 7642 "theme_json_version": { 7643 "description": "Version of the theme.json schema used for the typography settings.", 7644 "type": "integer", 7645 "default": 2, 7646 "minimum": 2, 7647 "maximum": 2, 7648 "required": false 7649 }, 7650 "font_family_settings": { 7651 "description": "font-family declaration in theme.json format, encoded as a string.", 7652 "type": "string", 7653 "required": true 7654 } 7655 } 7656 } 7657 ], 7658 "_links": { 7659 "self": [ 7660 { 7661 "href": "http://example.org/index.php?rest_route=/wp/v2/font-families" 7662 } 7663 ] 7664 } 7665 }, 7666 "/wp/v2/font-families/(?P<id>[\\d]+)": { 7667 "namespace": "wp/v2", 7668 "methods": [ 7669 "GET", 7670 "POST", 7671 "PUT", 7672 "PATCH", 7673 "DELETE" 7674 ], 7675 "endpoints": [ 7676 { 7677 "methods": [ 7678 "GET" 7679 ], 7680 "args": { 7681 "id": { 7682 "description": "Unique identifier for the post.", 7683 "type": "integer", 7684 "required": false 7685 }, 7686 "context": { 7687 "description": "Scope under which the request is made; determines fields present in response.", 7688 "type": "string", 7689 "enum": [ 7690 "view", 7691 "embed", 7692 "edit" 7693 ], 7694 "default": "view", 7695 "required": false 7696 } 7697 } 7698 }, 7699 { 7700 "methods": [ 7701 "POST", 7702 "PUT", 7703 "PATCH" 7704 ], 7705 "args": { 7706 "id": { 7707 "description": "Unique identifier for the post.", 7708 "type": "integer", 7709 "required": false 7710 }, 7711 "theme_json_version": { 7712 "description": "Version of the theme.json schema used for the typography settings.", 7713 "type": "integer", 7714 "default": 2, 7715 "minimum": 2, 7716 "maximum": 2, 7717 "required": false 7718 }, 7719 "font_family_settings": { 7720 "description": "font-family declaration in theme.json format, encoded as a string.", 7721 "type": "string", 7722 "required": true 7723 } 7724 } 7725 }, 7726 { 7727 "methods": [ 7728 "DELETE" 7729 ], 7730 "args": { 7731 "id": { 7732 "description": "Unique identifier for the post.", 7733 "type": "integer", 7734 "required": false 7735 }, 7736 "force": { 7737 "type": "boolean", 7738 "default": false, 7739 "description": "Whether to bypass Trash and force deletion.", 7740 "required": false 7741 } 7742 } 7743 } 7744 ] 7745 }, 7746 "/wp/v2/font-families/(?P<font_family_id>[\\d]+)/font-faces": { 7747 "namespace": "wp/v2", 7748 "methods": [ 7749 "GET", 7750 "POST" 7751 ], 7752 "endpoints": [ 7753 { 7754 "methods": [ 7755 "GET" 7756 ], 7757 "args": { 7758 "font_family_id": { 7759 "description": "The ID for the parent font family of the font face.", 7760 "type": "integer", 7761 "required": true 7762 }, 7763 "context": { 7764 "description": "Scope under which the request is made; determines fields present in response.", 7765 "type": "string", 7766 "enum": [ 7767 "view", 7768 "embed", 7769 "edit" 7770 ], 7771 "default": "view", 7772 "required": false 7773 }, 7774 "page": { 7775 "description": "Current page of the collection.", 7776 "type": "integer", 7777 "default": 1, 7778 "minimum": 1, 7779 "required": false 7780 }, 7781 "per_page": { 7782 "description": "Maximum number of items to be returned in result set.", 7783 "type": "integer", 7784 "default": 10, 7785 "minimum": 1, 7786 "maximum": 100, 7787 "required": false 7788 }, 7789 "exclude": { 7790 "description": "Ensure result set excludes specific IDs.", 7791 "type": "array", 7792 "items": { 7793 "type": "integer" 7794 }, 7795 "default": [], 7796 "required": false 7797 }, 7798 "include": { 7799 "description": "Limit result set to specific IDs.", 7800 "type": "array", 7801 "items": { 7802 "type": "integer" 7803 }, 7804 "default": [], 7805 "required": false 7806 }, 7807 "offset": { 7808 "description": "Offset the result set by a specific number of items.", 7809 "type": "integer", 7810 "required": false 7811 }, 7812 "order": { 7813 "description": "Order sort attribute ascending or descending.", 7814 "type": "string", 7815 "default": "desc", 7816 "enum": [ 7817 "asc", 7818 "desc" 7819 ], 7820 "required": false 7821 }, 7822 "orderby": { 7823 "description": "Sort collection by post attribute.", 7824 "type": "string", 7825 "default": "id", 7826 "enum": [ 7827 "id", 7828 "include" 7829 ], 7830 "required": false 7831 } 7832 } 7833 }, 7834 { 7835 "methods": [ 7836 "POST" 7837 ], 7838 "args": { 7839 "font_family_id": { 7840 "description": "The ID for the parent font family of the font face.", 7841 "type": "integer", 7842 "required": true 7843 }, 7844 "theme_json_version": { 7845 "description": "Version of the theme.json schema used for the typography settings.", 7846 "type": "integer", 7847 "default": 2, 7848 "minimum": 2, 7849 "maximum": 2, 7850 "required": false 7851 }, 7852 "font_face_settings": { 7853 "description": "font-face declaration in theme.json format, encoded as a string.", 7854 "type": "string", 7855 "required": true 7856 } 7857 } 7858 } 7859 ] 7860 }, 7861 "/wp/v2/font-families/(?P<font_family_id>[\\d]+)/font-faces/(?P<id>[\\d]+)": { 7862 "namespace": "wp/v2", 7863 "methods": [ 7864 "GET", 7865 "DELETE" 7866 ], 7867 "endpoints": [ 7868 { 7869 "methods": [ 7870 "GET" 7871 ], 7872 "args": { 7873 "font_family_id": { 7874 "description": "The ID for the parent font family of the font face.", 7875 "type": "integer", 7876 "required": true 7877 }, 7878 "id": { 7879 "description": "Unique identifier for the font face.", 7880 "type": "integer", 7881 "required": true 7882 }, 7883 "context": { 7884 "description": "Scope under which the request is made; determines fields present in response.", 7885 "type": "string", 7886 "enum": [ 7887 "view", 7888 "embed", 7889 "edit" 7890 ], 7891 "default": "view", 7892 "required": false 7893 } 7894 } 7895 }, 7896 { 7897 "methods": [ 7898 "DELETE" 7899 ], 7900 "args": { 7901 "font_family_id": { 7902 "description": "The ID for the parent font family of the font face.", 7903 "type": "integer", 7904 "required": true 7905 }, 7906 "id": { 7907 "description": "Unique identifier for the font face.", 7908 "type": "integer", 7909 "required": true 7910 }, 7911 "force": { 7912 "type": "boolean", 7913 "default": false, 7914 "description": "Whether to bypass Trash and force deletion.", 7915 "required": false 7916 } 7917 } 7918 } 7919 ] 7920 }, 7921 7921 "/wp/v2/types": { 7922 7922 "namespace": "wp/v2", … … 9283 9283 "post": "post", 9284 9284 "page": "page", 9285 "attachment": "attachment", 9285 9286 "nav_menu_item": "nav_menu_item", 9286 9287 "wp_block": "wp_block", … … 9289 9290 "wp_navigation": "wp_navigation", 9290 9291 "wp_font_family": "wp_font_family", 9291 "wp_font_face": "wp_font_face", 9292 "attachment": "attachment" 9292 "wp_font_face": "wp_font_face" 9293 9293 } 9294 9294 }, … … 12971 12971 } 12972 12972 }, 12973 "attachment": { 12974 "description": "", 12975 "hierarchical": false, 12976 "has_archive": false, 12977 "name": "Media", 12978 "slug": "attachment", 12979 "icon": "dashicons-admin-media", 12980 "taxonomies": [], 12981 "rest_base": "media", 12982 "rest_namespace": "wp/v2", 12983 "_links": { 12984 "collection": [ 12985 { 12986 "href": "http://example.org/index.php?rest_route=/wp/v2/types" 12987 } 12988 ], 12989 "wp:items": [ 12990 { 12991 "href": "http://example.org/index.php?rest_route=/wp/v2/media" 12992 } 12993 ], 12994 "curies": [ 12995 { 12996 "name": "wp", 12997 "href": "https://api.w.org/{rel}", 12998 "templated": true 12999 } 13000 ] 13001 } 13002 }, 12973 13003 "nav_menu_item": { 12974 13004 "description": "", … … 13174 13204 { 13175 13205 "href": "http://example.org/index.php?rest_route=/wp/v2/font-families/(?P<font_family_id>[\\d]+)/font-faces" 13176 }13177 ],13178 "curies": [13179 {13180 "name": "wp",13181 "href": "https://api.w.org/{rel}",13182 "templated": true13183 }13184 ]13185 }13186 },13187 "attachment": {13188 "description": "",13189 "hierarchical": false,13190 "has_archive": false,13191 "name": "Media",13192 "slug": "attachment",13193 "icon": "dashicons-admin-media",13194 "taxonomies": [],13195 "rest_base": "media",13196 "rest_namespace": "wp/v2",13197 "_links": {13198 "collection": [13199 {13200 "href": "http://example.org/index.php?rest_route=/wp/v2/types"13201 }13202 ],13203 "wp:items": [13204 {13205 "href": "http://example.org/index.php?rest_route=/wp/v2/media"13206 13206 } 13207 13207 ],
Note: See TracChangeset
for help on using the changeset viewer.