{"name":"WPMU DEV - Your All-in-One WordPress Platform","description":"Everything you need for WordPress! Super-powered Hosting, 24\/7 Live Support, Site Management tools, and Premium Plugins.","url":"https:\/\/wpmudev.com","home":"https:\/\/wpmudev.com","gmt_offset":0,"timezone_string":"UTC","namespaces":["oembed\/1.0","redirection\/v1","dashboard\/v1","dashboard\/v2","analytics\/v1","translations","giveaway\/v1","mailjet\/v1","beehive-analytics\/v1","blc\/v1","forminator\/v1","hosting\/v1","hub\/v1","hub\/v1\/jwt-auth","hustle\/v1","microservices\/notifications","mail-subscriptions\/v1","performance\/v1","microservices\/points","helpscout\/v1","helpscout-webhook\/v1","performance\/v2","microservices\/performance","performance\/v3","defender\/v1","audit\/v1","seo-audit\/v1","seo-checkup\/v1","seo-checkup\/v1.1","shipper\/v1.0","smush\/v1","snapshot\/v1","snapshot\/v2","uptime\/v1","wp-site-health\/v1","wp-block-editor\/v1"],"authentication":[],"routes":{"\/":{"namespace":"","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/"}]}},"\/batch\/v1":{"namespace":"","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"validation":{"type":"string","enum":["require-all-validate","normal"],"default":"normal","required":false},"requests":{"type":"array","maxItems":25,"items":{"type":"object","properties":{"method":{"type":"string","enum":["POST","PUT","PATCH","DELETE"],"default":"POST"},"path":{"type":"string","required":true},"body":{"type":"object","properties":[],"additionalProperties":true},"headers":{"type":"object","properties":[],"additionalProperties":{"type":["string","array"],"items":{"type":"string"}}}}},"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/batch\/v1"}]}},"\/oembed\/1.0":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"oembed\/1.0","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/oembed\/1.0"}]}},"\/oembed\/1.0\/embed":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"url":{"description":"The URL of the resource for which to fetch oEmbed data.","type":"string","format":"uri","required":true},"format":{"default":"json","required":false},"maxwidth":{"default":600,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/oembed\/1.0\/embed"}]}},"\/oembed\/1.0\/proxy":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"url":{"description":"The URL of the resource for which to fetch oEmbed data.","type":"string","format":"uri","required":true},"format":{"description":"The oEmbed format to use.","type":"string","default":"json","enum":["json","xml"],"required":false},"maxwidth":{"description":"The maximum width of the embed frame in pixels.","type":"integer","default":600,"required":false},"maxheight":{"description":"The maximum height of the embed frame in pixels.","type":"integer","required":false},"discover":{"description":"Whether to perform an oEmbed discovery request for unsanctioned providers.","type":"boolean","default":true,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/oembed\/1.0\/proxy"}]}},"\/redirection\/v1":{"namespace":"redirection\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"redirection\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/redirection\/v1"}]}},"\/redirection\/v1\/redirect":{"namespace":"redirection\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"filterBy":{"description":"Field to filter by","required":false},"orderby":{"description":"Field to order results by","type":"string","enum":["source","last_count","last_access","position","id",""],"required":false},"direction":{"description":"Direction of ordered results","type":"string","default":"desc","enum":["asc","desc"],"required":false},"per_page":{"description":"Number of results per page","type":"integer","default":25,"minimum":5,"maximum":200,"required":false},"page":{"description":"Page offset","type":"integer","minimum":0,"default":0,"required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"filterBy":{"description":"Field to filter by","required":false},"orderby":{"description":"Field to order results by","type":"string","enum":["source","last_count","last_access","position","id",""],"required":false},"direction":{"description":"Direction of ordered results","type":"string","default":"desc","enum":["asc","desc"],"required":false},"per_page":{"description":"Number of results per page","type":"integer","default":25,"minimum":5,"maximum":200,"required":false},"page":{"description":"Page offset","type":"integer","minimum":0,"default":0,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/redirection\/v1\/redirect"}]}},"\/redirection\/v1\/redirect\/(?P[\\d]+)":{"namespace":"redirection\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}]},"\/redirection\/v1\/redirect\/post":{"namespace":"redirection\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"text":{"description":"Text to match","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/redirection\/v1\/redirect\/post"}]}},"\/redirection\/v1\/bulk\/redirect\/(?Pdelete|enable|disable|reset)":{"namespace":"redirection\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"filterBy":{"description":"Field to filter by","required":false},"orderby":{"description":"Field to order results by","type":"string","enum":["source","last_count","last_access","position","id",""],"required":false},"direction":{"description":"Direction of ordered results","type":"string","default":"desc","enum":["asc","desc"],"required":false},"per_page":{"description":"Number of results per page","type":"integer","default":25,"minimum":5,"maximum":200,"required":false},"page":{"description":"Page offset","type":"integer","minimum":0,"default":0,"required":false},"global":{"description":"Apply bulk action globally, as per filters","type":"boolean","required":false},"items":{"description":"Array of IDs to perform action on","type":"array","items":{"description":"Item ID","type":["string","number"]},"required":false}}}]},"\/redirection\/v1\/group":{"namespace":"redirection\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"filterBy":{"description":"Field to filter by","required":false},"orderby":{"description":"Field to order results by","type":"string","enum":["name","id",""],"required":false},"direction":{"description":"Direction of ordered results","type":"string","default":"desc","enum":["asc","desc"],"required":false},"per_page":{"description":"Number of results per page","type":"integer","default":25,"minimum":5,"maximum":200,"required":false},"page":{"description":"Page offset","type":"integer","minimum":0,"default":0,"required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"filterBy":{"description":"Field to filter by","required":false},"orderby":{"description":"Field to order results by","type":"string","enum":["name","id",""],"required":false},"direction":{"description":"Direction of ordered results","type":"string","default":"desc","enum":["asc","desc"],"required":false},"per_page":{"description":"Number of results per page","type":"integer","default":25,"minimum":5,"maximum":200,"required":false},"page":{"description":"Page offset","type":"integer","minimum":0,"default":0,"required":false},"moduleId":{"description":"Module ID","type":"integer","minimum":0,"maximum":3,"required":true},"name":{"description":"Group name","type":"string","required":true},"status":{"description":"Status of the group","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/redirection\/v1\/group"}]}},"\/redirection\/v1\/group\/(?P[\\d]+)":{"namespace":"redirection\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"moduleId":{"description":"Module ID","type":"integer","minimum":0,"maximum":3,"required":true},"name":{"description":"Group name","type":"string","required":true},"status":{"description":"Status of the group","required":false}}}]},"\/redirection\/v1\/bulk\/group\/(?Pdelete|enable|disable)":{"namespace":"redirection\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"filterBy":{"description":"Field to filter by","required":false},"orderby":{"description":"Field to order results by","type":"string","enum":["name","id",""],"required":false},"direction":{"description":"Direction of ordered results","type":"string","default":"desc","enum":["asc","desc"],"required":false},"per_page":{"description":"Number of results per page","type":"integer","default":25,"minimum":5,"maximum":200,"required":false},"page":{"description":"Page offset","type":"integer","minimum":0,"default":0,"required":false},"items":{"description":"Comma separated list of item IDs to perform action on","type":"array","items":{"description":"Item ID","type":["string","number"]},"required":false}}}]},"\/redirection\/v1\/log":{"namespace":"redirection\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"filterBy":{"description":"Field to filter by","required":false},"orderby":{"description":"Field to order results by","type":"string","enum":["url","ip","total","count",""],"required":false},"direction":{"description":"Direction of ordered results","type":"string","default":"desc","enum":["asc","desc"],"required":false},"per_page":{"description":"Number of results per page","type":"integer","default":25,"minimum":5,"maximum":200,"required":false},"page":{"description":"Page offset","type":"integer","minimum":0,"default":0,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/redirection\/v1\/log"}]}},"\/redirection\/v1\/bulk\/log\/(?Pdelete)":{"namespace":"redirection\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"filterBy":{"description":"Field to filter by","required":false},"orderby":{"description":"Field to order results by","type":"string","enum":["url","ip","total","count",""],"required":false},"direction":{"description":"Direction of ordered results","type":"string","default":"desc","enum":["asc","desc"],"required":false},"per_page":{"description":"Number of results per page","type":"integer","default":25,"minimum":5,"maximum":200,"required":false},"page":{"description":"Page offset","type":"integer","minimum":0,"default":0,"required":false},"items":{"description":"Comma separated list of item IDs to perform action on","type":"array","items":{"description":"Item ID","type":["string","number"]},"required":false}}}]},"\/redirection\/v1\/404":{"namespace":"redirection\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"filterBy":{"description":"Field to filter by","required":false},"orderby":{"description":"Field to order results by","type":"string","enum":["url","ip","total","count",""],"required":false},"direction":{"description":"Direction of ordered results","type":"string","default":"desc","enum":["asc","desc"],"required":false},"per_page":{"description":"Number of results per page","type":"integer","default":25,"minimum":5,"maximum":200,"required":false},"page":{"description":"Page offset","type":"integer","minimum":0,"default":0,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/redirection\/v1\/404"}]}},"\/redirection\/v1\/bulk\/404\/(?Pdelete)":{"namespace":"redirection\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"filterBy":{"description":"Field to filter by","required":false},"orderby":{"description":"Field to order results by","type":"string","enum":["url","ip","total","count",""],"required":false},"direction":{"description":"Direction of ordered results","type":"string","default":"desc","enum":["asc","desc"],"required":false},"per_page":{"description":"Number of results per page","type":"integer","default":25,"minimum":5,"maximum":200,"required":false},"page":{"description":"Page offset","type":"integer","minimum":0,"default":0,"required":false},"items":{"description":"Comma separated list of item IDs to perform action on","type":"array","items":{"description":"Item ID","type":["string","number"]},"required":false}}}]},"\/redirection\/v1\/setting":{"namespace":"redirection\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/redirection\/v1\/setting"}]}},"\/redirection\/v1\/plugin":{"namespace":"redirection\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"name":{"description":"Name","type":"string","required":false},"value":{"description":"Value","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/redirection\/v1\/plugin"}]}},"\/redirection\/v1\/plugin\/delete":{"namespace":"redirection\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/redirection\/v1\/plugin\/delete"}]}},"\/redirection\/v1\/plugin\/test":{"namespace":"redirection\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET","POST","PUT","PATCH","DELETE"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/redirection\/v1\/plugin\/test"}]}},"\/redirection\/v1\/plugin\/data":{"namespace":"redirection\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"upgrade":{"description":"Upgrade parameter","type":"string","enum":["stop","skip","retry"],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/redirection\/v1\/plugin\/data"}]}},"\/redirection\/v1\/import\/file\/(?P\\d+)":{"namespace":"redirection\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}]},"\/redirection\/v1\/import\/plugin":{"namespace":"redirection\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/redirection\/v1\/import\/plugin"}]}},"\/redirection\/v1\/export\/(?P1|2|3|all)\/(?Pcsv|apache|nginx|json)":{"namespace":"redirection\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}]},"\/dashboard\/v1":{"namespace":"dashboard\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"dashboard\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v1"}]}},"\/dashboard\/v1\/updates":{"namespace":"dashboard\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"api_key":{"required":false},"blog_count":{"required":true},"wp_version":{"required":true},"domain":{"description":"The network_site_url() of the WP installation.","required":true},"home_url":{"description":"The network_home_url() of the WP installation.","required":false},"admin_url":{"description":"The network_admin_url() of the WP installation.","required":true},"projects":{"required":true},"repo_updates":{"required":false},"auth_cookies":{"required":false},"packages":{"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v1\/updates"}]}},"\/dashboard\/v1\/upgrade-status":{"namespace":"dashboard\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"api_key":{"required":false},"domain":{"description":"The network_site_url() of the WP installation.","required":true},"completed":{"description":"Number of successfully completed updates.","required":true},"failed":{"description":"Number of failed updates.","required":true},"remaining":{"description":"Number of remaining updates.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v1\/upgrade-status"}]}},"\/dashboard\/v1\/user-info\/(?P[\\w-]+)":{"namespace":"dashboard\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"api_key":{"required":true}}}]},"\/dashboard\/v1\/changelog\/(?P[\\d]+)":{"namespace":"dashboard\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"project_id":{"required":true}}}]},"\/dashboard\/v1\/authenticate":{"namespace":"dashboard\/v1","methods":["POST","GET"],"endpoints":[{"methods":["POST"],"args":{"username":{"required":true},"password":{"required":true},"redirect_url":{"required":true},"domain":{"description":"The network_admin_url() of the WP installation.","required":false},"auth_nonce":{"type":"string","description":"Nonce to be re-validated in Plugin.","required":false}}},{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v1\/authenticate"}]}},"\/dashboard\/v1\/usage\/(?P[\\d]+)":{"namespace":"dashboard\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"project_id":{"required":true}}}]},"\/dashboard\/v1\/download\/(?P[\\d]+)\/(?P[\\w-]+)":{"namespace":"dashboard\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"project_id":{"required":true},"api_key":{"required":true},"site_id":{"required":false}}}]},"\/dashboard\/v1\/install\/(?P[\\d]+)\/(?P[\\w-]+)":{"namespace":"dashboard\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"project_id":{"required":true},"api_key":{"required":true},"site_id":{"required":false}}}]},"\/dashboard\/v1\/download-dashboard":{"namespace":"dashboard\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v1\/download-dashboard"}]}},"\/dashboard\/v1\/grant-access":{"namespace":"dashboard\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"api_key":{"required":true},"domain":{"required":true},"auth_key":{"required":true},"auth_url":{"required":true},"auth_expire":{"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v1\/grant-access"}]}},"\/dashboard\/v1\/revoke-access":{"namespace":"dashboard\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"api_key":{"required":true},"domain":{"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v1\/revoke-access"}]}},"\/dashboard\/v1\/test":{"namespace":"dashboard\/v1","methods":["POST","GET","PUT","PATCH","DELETE","COPY","HEAD"],"endpoints":[{"methods":["POST","GET","PUT","PATCH","DELETE","COPY","HEAD"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v1\/test"}]}},"\/dashboard\/v2":{"namespace":"dashboard\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"dashboard\/v2","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2"}]}},"\/dashboard\/v2\/projects":{"namespace":"dashboard\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2\/projects"}]}},"\/dashboard\/v2\/hub-sync":{"namespace":"dashboard\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"api_key":{"required":false},"blog_count":{"required":true},"wp_version":{"required":true},"domain":{"description":"The network_site_url() of the WP installation.","required":true},"home_url":{"description":"The network_home_url() of the WP installation.","required":false},"admin_url":{"description":"The network_admin_url() of the WP installation.","required":true},"sso_status":{"required":false},"projects":{"required":true},"repo_updates":{"required":false},"auth_cookies":{"required":false},"packages":{"required":false},"hosting_site_id":{"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2\/hub-sync"}]}},"\/dashboard\/v2\/sso-hub":{"namespace":"dashboard\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"description":"The network_site_url() of the WP installation.","required":true},"hmac":{"required":true},"token":{"required":true},"pre_sso_state":{"required":true},"redirect":{"required":false},"user_id":{"required":false},"email":{"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2\/sso-hub"}]}},"\/dashboard\/v2\/site-authenticate":{"namespace":"dashboard\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"username":{"required":true},"password":{"required":true},"redirect_url":{"required":true},"domain":{"description":"The network_admin_url() of the WP installation.","required":true},"auth_nonce":{"type":"string","description":"Nonce to be re-validated in Plugin.","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2\/site-authenticate"}]}},"\/dashboard\/v2\/site-authenticate-teams":{"namespace":"dashboard\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2\/site-authenticate-teams"}]}},"\/dashboard\/v2\/site-authenticate-team":{"namespace":"dashboard\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"api_key":{"required":true},"team_id":{"description":"Team id to connect to.","type":"integer","required":true},"redirect_url":{"required":true},"domain":{"description":"The network_admin_url() of the WP installation.","required":true},"auth_nonce":{"type":"string","description":"Nonce to be re-validated in Plugin.","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2\/site-authenticate-team"}]}},"\/dashboard\/v2\/google-auth":{"namespace":"dashboard\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"redirect_url":{"type":"string","format":"url","description":"The URL to redirect after successful login or failure.","required":true},"domain":{"type":"string","format":"url","description":"The URL of the connected WP, or to be connected WP.","required":true},"context":{"type":"string","default":"connect","description":"The context why Google Auth being requested","required":false},"auth_nonce":{"type":"string","description":"Nonce to be re-validated in Plugin.","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2\/google-auth"}]}},"\/dashboard\/v2\/google-auth-response":{"namespace":"dashboard\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"return_url":{"type":"string","format":"url","description":"Return URL.","required":true},"domain":{"type":"string","format":"url","description":"The URL of the connected WP, or to be connected WP.","required":true},"context":{"type":"string","default":"connect","description":"The context why Google Auth being requested.","required":false},"g_csrf_token":{"type":"string","description":"Google auth token.","required":true},"credential":{"type":"string","description":"Google payload.","required":true},"auth_nonce":{"type":"string","description":"Nonce to be re-validated in Plugin.","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2\/google-auth-response"}]}},"\/dashboard\/v2\/upgrade-status":{"namespace":"dashboard\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"api_key":{"required":false},"domain":{"description":"The network_site_url() of the WP installation.","required":true},"completed":{"description":"Number of successfully completed updates.","required":true},"failed":{"description":"Number of failed updates.","required":true},"remaining":{"description":"Number of remaining updates.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2\/upgrade-status"}]}},"\/dashboard\/v2\/user-info\/(?P[\\w-]+)":{"namespace":"dashboard\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"api_key":{"required":true}}}]},"\/dashboard\/v2\/changelog\/(?P[\\d]+)":{"namespace":"dashboard\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"project_id":{"required":true}}}]},"\/dashboard\/v2\/authenticate":{"namespace":"dashboard\/v2","methods":["POST","GET"],"endpoints":[{"methods":["POST"],"args":{"username":{"required":true},"password":{"required":true},"redirect_url":{"required":true},"domain":{"description":"The network_admin_url() of the WP installation.","required":false},"auth_nonce":{"type":"string","description":"Nonce to be re-validated in Plugin.","required":false}}},{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2\/authenticate"}]}},"\/dashboard\/v2\/usage\/(?P[\\d]+)":{"namespace":"dashboard\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"project_id":{"required":true}}}]},"\/dashboard\/v2\/download\/(?P[\\d]+)\/(?P[\\w-]+)":{"namespace":"dashboard\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"project_id":{"required":true},"api_key":{"required":true},"site_id":{"required":false}}}]},"\/dashboard\/v2\/install\/(?P[\\d]+)\/(?P[\\w-]+)":{"namespace":"dashboard\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"project_id":{"required":true},"api_key":{"required":true},"site_id":{"required":false}}}]},"\/dashboard\/v2\/download-dashboard":{"namespace":"dashboard\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2\/download-dashboard"}]}},"\/dashboard\/v2\/grant-access":{"namespace":"dashboard\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"api_key":{"required":true},"domain":{"required":true},"auth_key":{"required":true},"auth_url":{"required":true},"auth_expire":{"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2\/grant-access"}]}},"\/dashboard\/v2\/revoke-access":{"namespace":"dashboard\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"api_key":{"required":true},"domain":{"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2\/revoke-access"}]}},"\/dashboard\/v2\/test":{"namespace":"dashboard\/v2","methods":["POST","GET","PUT","PATCH","DELETE","COPY","HEAD"],"endpoints":[{"methods":["POST","GET","PUT","PATCH","DELETE","COPY","HEAD"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/dashboard\/v2\/test"}]}},"\/analytics\/v1":{"namespace":"analytics\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"analytics\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/analytics\/v1"}]}},"\/analytics\/v1\/enable":{"namespace":"analytics\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/analytics\/v1\/enable"}]}},"\/analytics\/v1\/disable":{"namespace":"analytics\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/analytics\/v1\/disable"}]}},"\/analytics\/v1\/site\/(?P\\d+)\/overall\/(?Pnormal|network|subsite)":{"namespace":"analytics\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"site_id":{"description":"The site_id of the hosted site as returned by POST \/site\/","type":"integer","required":true},"type":{"description":"The type of overall report to fetch. Can be normal|network|subsite.","type":"string","required":true},"days_ago":{"description":"How many days in the past to select. Defaults to 7.","type":"integer","required":false},"subsite":{"description":"If type is subsite, this is the blog_id to filter to.","type":"integer","required":false},"domain":{"description":"The network_site_url() of the WP installation. This is optional due to backward compatibility, but recommended to include to be able to separate analytics server to be referred.","required":false}}}]},"\/analytics\/v1\/site\/(?P\\d+)\/(?Ppage|author|subsite)":{"namespace":"analytics\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"site_id":{"description":"The site_id of the hosted site as returned by POST \/site\/","type":"integer","required":true},"type":{"description":"The type of single report to fetch. Can be page|author|subsite.","type":"string","required":true},"days_ago":{"description":"How many days in the past to select. Defaults to 7.","type":"integer","required":false},"filter":{"description":"URL encoded page, author, or blog_id to filter to.","type":"string","required":true},"domain":{"description":"The network_site_url() of the WP installation. This is optional due to backward compatibility, but recommended to include to be able to separate analytics server to be referred.","required":false}}}]},"\/translations":{"namespace":"translations","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"translations","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/translations"}]}},"\/translations\/v1\/projects":{"namespace":"translations","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/translations\/v1\/projects"}]}},"\/translations\/v1\/dev-projects\/(?P[\\d]+)":{"namespace":"translations","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"WPMUDEV Plugin\/Theme ID.","type":"integer","minimum":1,"required":false}}}]},"\/translations\/v1\/projects\/(?P[\\d]+)\/sets\/(?P[\\-\\w]+)\/download(?:\\\/(?P[\\w-]+))?":{"namespace":"translations","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Translation Project id.","type":"integer","minimum":1,"required":false},"locale":{"description":"Locale slug.","type":"string","required":false},"api_key":{"description":"API Key.","type":"string","required":false},"format":{"description":"Export format","type":"string","enum":["po","mo","pomo_zip"],"default":"po","required":false}}}]},"\/translations\/v1\/projects\/(?P[\\d]+)":{"namespace":"translations","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Translation Project id.","type":"integer","minimum":1,"required":false}}}]},"\/translations\/v1\/sets\/(?P[\\-\\w]+)\/projects":{"namespace":"translations","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"locale":{"description":"Locale slug.","type":"string","required":false}}}]},"\/giveaway\/v1":{"namespace":"giveaway\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"giveaway\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/giveaway\/v1"}]}},"\/giveaway\/v1\/plugin":{"namespace":"giveaway\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"email":{"description":"Email address","type":"string","format":"email","required":true}}},{"methods":["POST"],"args":{"email":{"description":"Email address","type":"string","format":"email","required":true},"source":{"description":"Source of opt-in. Arbitrary string. Use plugin name, id, or slug, whichever convenience.","type":"string","minLength":1,"maxLength":50,"pattern":".*\\S.*","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/giveaway\/v1\/plugin"}]}},"\/giveaway\/v1\/plugin\/ip-throttle":{"namespace":"giveaway\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"ip":{"description":"IP address in opted-in request.","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/giveaway\/v1\/plugin\/ip-throttle"}]}},"\/mailjet\/v1":{"namespace":"mailjet\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"mailjet\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/mailjet\/v1"}]}},"\/mailjet\/v1\/plugin":{"namespace":"mailjet\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"email":{"description":"Email address","type":"string","format":"email","required":true},"source":{"description":"Source of opt-in. Must use lowercase name of plugin. E.g. smush","type":"string","minLength":1,"maxLength":50,"pattern":".*\\S.*","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/mailjet\/v1\/plugin"}]}},"\/mailjet\/v1\/plugin\/ip-throttle":{"namespace":"mailjet\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"ip":{"description":"IP address in opted-in request.","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/mailjet\/v1\/plugin\/ip-throttle"}]}},"\/beehive-analytics\/v1":{"namespace":"beehive-analytics\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"beehive-analytics\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/beehive-analytics\/v1"}]}},"\/beehive-analytics\/v1\/intermediate-auth\/google":{"namespace":"beehive-analytics\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"state":{"description":"OAuth state.","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/beehive-analytics\/v1\/intermediate-auth\/google"}]}},"\/blc\/v1":{"namespace":"blc\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"blc\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/blc\/v1"}]}},"\/blc\/v1\/result":{"namespace":"blc\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","format":"uri","description":"The network_site_url() of the WP installation.","required":true},"site_id":{"type":"integer","description":"Hub Site ID.","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/blc\/v1\/result"}]}},"\/blc\/v1\/scan":{"namespace":"blc\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","format":"uri","description":"The network_site_url() of the WP installation.","required":true},"site_id":{"type":"integer","description":"Hub Site ID.","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/blc\/v1\/scan"}]}},"\/blc\/v1\/webhook-scan-finished":{"namespace":"blc\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"url":{"type":"string","format":"uri","description":"The scanned URL.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/blc\/v1\/webhook-scan-finished"}]}},"\/blc\/v1\/edit-link-completed":{"namespace":"blc\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"site_id":{"description":"Hub Site identifier","type":"integer","minimum":1,"required":false},"domain":{"type":"string","format":"uri","description":"The network_site_url() of the WP installation.","required":true},"link":{"type":"object","properties":{"link":{"description":"Original BLC link before edit.","type":"string","format":"uri","required":true},"type":{"description":"Type of action performed on BLC link.","type":"string","required":true,"enum":["edited","unlinked"]}},"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/blc\/v1\/edit-link-completed"}]}},"\/blc\/v1\/backlinks":{"namespace":"blc\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"site_id":{"type":"integer","description":"Hub Site ID.","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/blc\/v1\/backlinks"}]}},"\/blc\/v1\/backlinks\/scan":{"namespace":"blc\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"site_id":{"type":"integer","description":"Hub Site ID.","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/blc\/v1\/backlinks\/scan"}]}},"\/forminator\/v1":{"namespace":"forminator\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"forminator\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/forminator\/v1"}]}},"\/forminator\/v1\/provider":{"namespace":"forminator\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"state":{"type":"string","description":"Unique nonce generated from Forminator user site and Forminator user site_url() splited by |.","required":true},"action":{"type":"string","description":"The request action to execute.","required":true},"provider":{"type":"string","description":"The name of email provider or app.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/forminator\/v1\/provider"}]}},"\/hosting\/v1":{"namespace":"hosting\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"hosting\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hosting\/v1"}]}},"\/hosting\/v1\/db-sso\/(?P[\\w-]+)":{"namespace":"hosting\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"token":{"required":true}}}]},"\/hosting\/v1\/files-sso\/(?P[\\w-]+)":{"namespace":"hosting\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"token":{"required":true}}}]},"\/hosting\/v1\/webhooks\/email":{"namespace":"hosting\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hosting\/v1\/webhooks\/email"}]}},"\/hosting\/v1\/webhooks\/maintenance-mode-started":{"namespace":"hosting\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"site_id":{"description":"Site id to process.","type":["string","integer"],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hosting\/v1\/webhooks\/maintenance-mode-started"}]}},"\/hosting\/v1\/webhooks\/maintenance-mode-completed":{"namespace":"hosting\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"site_id":{"description":"Site id to process.","type":["string","integer"],"required":true},"is_ack_required":{"description":"Whether user need to ack the completed maintenance.","type":["string","integer","bool"],"default":true,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hosting\/v1\/webhooks\/maintenance-mode-completed"}]}},"\/hosting\/v1\/webhooks\/domain-dns-record-ip-replace":{"namespace":"hosting\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"description":"Domain to process.","type":"string","required":true},"source_ip":{"description":"Source IP","type":"string","required":true},"destination_ip":{"description":"Destination Ip","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hosting\/v1\/webhooks\/domain-dns-record-ip-replace"}]}},"\/hosting\/v1\/webhooks\/(?P[\\w-]+)":{"namespace":"hosting\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"webhook_type":{"description":"The type of webhook to process.","type":"string","required":true}}}]},"\/hosting\/v1\/(?P[\\w-]+)\/domains":{"namespace":"hosting\/v1","methods":["POST","GET"],"endpoints":[{"methods":["POST"],"args":{"site_id":{"description":"The site_id of the hosted site. Generally should be the CNAME.","type":"string","required":true},"domain":{"description":"The domain to add to the hosting site. IDNs should be passed in punycode format.","type":"string","required":true}}},{"methods":["GET"],"args":{"site_id":{"description":"The site_id of the hosted site. Generally should be the CNAME.","type":"string","required":true}}}]},"\/hosting\/v1\/(?P[\\w-]+)\/domains\/(?P[\\d]+)":{"namespace":"hosting\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"site_id":{"description":"The site_id of the hosted site. Generally should be the CNAME.","type":"string","required":true},"domain_id":{"description":"The numeric domain id to remove. Get it from domains list.","type":"integer","required":true}}}]},"\/hosting\/v1\/(?P[\\w-]+)\/backups":{"namespace":"hosting\/v1","methods":["POST","GET"],"endpoints":[{"methods":["POST"],"args":{"site_id":{"description":"The site_id of the hosted site. Generally should be the CNAME.","type":"string","required":true}}},{"methods":["GET"],"args":{"site_id":{"description":"The site_id of the hosted site. Generally should be the CNAME.","type":"string","required":true},"per_page":{"description":"Home many items to show per page. Omit for no limit.","type":"integer","required":false},"page":{"description":"What page to show if per_page arg is provided.","type":"integer","required":false},"sort":{"description":"Direction to sort items if per_page arg is provided. Should be DESC (default) or ASC.","type":"string","required":false}}}]},"\/hosting\/v1\/(?P[\\w-]+)\/backups\/(?P[\\w-]+)\/export":{"namespace":"hosting\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"site_id":{"description":"The site_id of the hosted site. Generally should be the CNAME.","type":"string","required":true},"backup_id":{"description":"The backup_id of the backup for a given hosted site. As returned by GET \/site_id\/backups endpoint.","type":"string","required":true},"email":{"description":"An optional email address to send the export download link to. Defaults to WPMU DEV email address.","type":"string","required":false}}}]},"\/hosting\/v1\/(?P[\\w-]+)\/backups\/(?P[\\w-]+)\/restore":{"namespace":"hosting\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"site_id":{"description":"The site_id of the hosted site. Generally should be the CNAME.","type":"string","required":true},"backup_id":{"description":"The backup_id of the backup for a given hosted site. As returned by GET \/site_id\/backups endpoint.","type":"string","required":true}}}]},"\/hosting\/v1\/(?P[\\w-]+)\/staging\/sync":{"namespace":"hosting\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"site_id":{"description":"The site_id of the hosted site. Generally should be the CNAME.","type":"string","required":true}}}]},"\/hosting\/v1\/(?P[\\w-]+)\/staging\/promote\/(?Pfiles|all)":{"namespace":"hosting\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"site_id":{"description":"The site_id of the hosted site. Generally should be the CNAME.","type":"string","required":true},"type":{"description":"Should just \"files\" or \"all\" files and db be pushed to the live site.","type":"string","default":"files","required":true}}}]},"\/hosting\/v1\/(?P[\\w-]+)\/actions\/(?P[\\d]+)":{"namespace":"hosting\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"site_id":{"description":"The site_id of the hosted site. Generally should be the CNAME.","type":"string","required":true},"action_id":{"description":"The action_id to check the status of.","type":"integer","required":true}}}]},"\/hosting\/v1\/(?P[\\w-]+)\/global-ip-list":{"namespace":"hosting\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"site_id":{"description":"The site_id of the hosted site. Generally should be the CNAME.","type":"string","required":true}}}]},"\/hub\/v1":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"hub\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1"}]}},"\/hub\/v1\/ping":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET","POST","PUT","PATCH","DELETE"],"args":{"status":{"description":"HTTP Status code to return","type":"number","minimum":100,"maximum":511,"default":200,"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/ping"}]}},"\/hub\/v1\/account":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"first_name":{"description":"First name for the user.","type":"string","required":false},"last_name":{"description":"Last name for the user.","type":"string","required":false},"name":{"description":"Display name for the user.","type":"string","required":false},"email":{"description":"Email","type":"string","format":"email","required":false},"timezone":{"description":"User timezone settings.","type":"string","required":false},"2fa":{"description":"Two Factor Authentication information.","type":"object","properties":{"is_active":{"description":"Flag whether 2FA is active on this account.","type":"boolean","example":false},"verify_otp":{"description":"Verifier code to activate 2FA.","type":"string"}},"required":false},"password":{"description":"Current Password, only needed for password update.","type":"string","required":false},"new_password":{"description":"New Password, only needed for password update.","type":"string","minLength":8,"required":false},"new_password_confirm":{"description":"New Password confirmation, only needed for password update.","type":"string","minLength":8,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account"}]}},"\/hub\/v1\/account\/reset-api-key":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/reset-api-key"}]}},"\/hub\/v1\/account\/meta":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/meta"}]}},"\/hub\/v1\/account\/meta\/(?P[\\w-]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Account Meta identifier","type":"string","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Account Meta identifier","type":"string","required":true},"value":{"description":"Account Meta value.","type":["object","integer","array","string"],"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Account Meta identifier","type":"string","required":false}}}]},"\/hub\/v1\/account\/plugin-favorites":{"namespace":"hub\/v1","methods":["GET","POST","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort plugins by object attribute.","type":"string","default":"name","enum":["id","name"],"required":false}}},{"methods":["POST"],"args":{"id":{"description":"Plugin identifier. Slug of plugin, or numeric if WPMU DEV Plugin","type":["string","integer"],"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Plugin identifier. Slug of plugin, or numeric if WPMU DEV Plugin","type":["string","integer"],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/plugin-favorites"}]}},"\/hub\/v1\/account\/theme-favorites":{"namespace":"hub\/v1","methods":["GET","POST","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort themes by object attribute.","type":"string","default":"id","enum":["id","name"],"required":false}}},{"methods":["POST"],"args":{"id":{"description":"Theme identifier. Slug of theme","type":["string","integer"],"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Theme identifier. Slug of theme","type":["string","integer"],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/theme-favorites"}]}},"\/hub\/v1\/account\/site-labels":{"namespace":"hub\/v1","methods":["GET","POST","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST"],"args":{"title":{"description":"Title of the label.","type":"string","required":false},"color":{"description":"Hex representation of the label color.","type":"string","format":"hex-color","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"labels":{"description":"Labels","type":"array","items":{"type":"object","properties":{"slug":{"description":"Slug of the label (alphanumeric). It can not and never changes.","type":"string","format":"text-field","example":"purple","required":false,"sanitize_callback":"sanitize_key"},"title":{"description":"Title of the label.","type":"string","format":"text-field","example":"Purple","required":true},"color":{"description":"Hex representation of the label color.","type":"string","format":"hex-color","required":false,"example":"#ac78ce"}}},"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/site-labels"}]}},"\/hub\/v1\/account\/site-labels\/(?P[\\w]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"slug":{"description":"Label Slug","type":"string","required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"slug":{"description":"Label Slug","type":"string","required":true},"title":{"description":"Title of the label.","type":"string","required":false},"color":{"description":"Hex representation of the label color.","type":"string","format":"hex-color","required":false}}},{"methods":["DELETE"],"args":{"slug":{"description":"Label Slug","type":"string","required":true}}}]},"\/hub\/v1\/account\/trial-expectation":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"message":{"description":"Expectation message","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/trial-expectation"}]}},"\/hub\/v1\/account\/membership":{"namespace":"hub\/v1","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["DELETE"],"args":{"reason":{"description":"Reason for cancelling subscription.","type":"string","enum":["price","recurring","single","bugs","not_using","better_solution","hard_to_use","features_not_found","no_longer_maintaining","other"],"required":true},"message":{"description":"Feedback message, if any. Only if the reason is between 'bugs', 'better_solution', 'hard_to_use', 'features_not_found', and 'other'.","type":"string","required":false},"products":{"description":"Product names, required if the reason is 'bugs'.","type":"array","items":{"type":"string"},"uniqueItems":true,"minItems":1,"required":false},"problem_type":{"description":"Problem type, required if the reason is 'bugs'.","type":"string","enum":["One","More"],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/membership"}]}},"\/hub\/v1\/account\/membership\/set-reminder":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"email":{"type":"string","format":"email","required":true}}},{"methods":["DELETE"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/membership\/set-reminder"}]}},"\/hub\/v1\/account\/membership\/skip-trial":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/membership\/skip-trial"}]}},"\/hub\/v1\/account\/membership\/skip-trial\/complete":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/membership\/skip-trial\/complete"}]}},"\/hub\/v1\/account\/membership\/skip-trial\/error":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/membership\/skip-trial\/error"}]}},"\/hub\/v1\/account\/membership\/pause":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"day":{"description":"Number of days to pause membership.","type":"integer","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/membership\/pause"}]}},"\/hub\/v1\/account\/membership\/unpause":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/membership\/unpause"}]}},"\/hub\/v1\/account\/membership\/unpause\/complete":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/membership\/unpause\/complete"}]}},"\/hub\/v1\/account\/membership\/unpause\/error":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/membership\/unpause\/error"}]}},"\/hub\/v1\/account\/membership\/extend-trial":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/membership\/extend-trial"}]}},"\/hub\/v1\/account\/membership\/extend-membership":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"offer":{"description":"Membership extension offer identifier.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/membership\/extend-membership"}]}},"\/hub\/v1\/account\/billing":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"has_annual_hosting":{"description":"Whether has annual hosting subscription.","type":"boolean","required":false},"has_domain_subscriptions":{"description":"Whether has domain subscription.","type":"boolean","required":false},"has_domain_overdue":{"description":"Whether has domain subscription in overdue.","type":"boolean","required":false},"on_demand_development_subscription":{"description":"Get on demand development subscription details","type":"object","properties":{"is_active":{"description":"Whether the subscription is active","type":"boolean","example":true},"name":{"description":"The subscription name","type":"string","example":"On-Demand Development - Pro"},"requests_limit":{"description":"On-Demand Development requests limit","type":"number"},"next_payment":{"description":"Next payment details for the subscription, if not cancelled","type":"object","properties":{"date":{"description":"Date of next payment in user timezone","type":"string","format":"Y-m-d H:i:s","example":"2020-08-31 18:15:00"},"date_utc":{"description":"Date of next payment in UTC","type":"string","format":"Y-m-d H:i:s","example":"2020-08-31 18:15:00"},"amount":{"description":"Total amount of next payment","type":"number","example":"49.00"}}},"payment_due":{"description":"Payment due details for the subscription, if any","type":"object","properties":{"intent_id":{"description":"Intent ID","type":"string","example":""},"intent_secret":{"description":"Intent Secret","type":"string","example":""},"amount":{"description":"Total amount due","type":"number","example":"49.00"}}},"pending_intent":{"description":"Pending setup intent for the subscription, if any","type":"object","properties":{"intent_id":{"description":"Intent ID","type":"string","example":""},"intent_secret":{"description":"Intent Secret","type":"string","example":""}}}},"required":false},"is_on_demand_development_overdue":{"description":"Whether has on-demand development subscription is overdue.","type":"boolean","required":false},"billing_info":{"description":"Custom billing information","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/billing"}]}},"\/hub\/v1\/account\/billing\/payment-method\/intent":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/billing\/payment-method\/intent"}]}},"\/hub\/v1\/account\/billing\/payment-method":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"payment_method_id":{"description":"Payment method ID","type":"string","required":true},"intent_id":{"description":"Intent ID","type":"string","required":true},"name":{"description":"Full name","type":"string","required":true}}},{"methods":["DELETE"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/billing\/payment-method"}]}},"\/hub\/v1\/account\/billing\/fail-authentication":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"payment_method_id":{"description":"Payment method ID","type":"string","required":true},"intent_id":{"description":"Intent ID","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/billing\/fail-authentication"}]}},"\/hub\/v1\/account\/billing\/authenticate":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"intent_id":{"description":"Intent ID","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/billing\/authenticate"}]}},"\/hub\/v1\/account\/billing\/authenticate\/confirm":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"intent_id":{"description":"Intent ID","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/billing\/authenticate\/confirm"}]}},"\/hub\/v1\/account\/billing\/invoices":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"type":{"description":["Filter invoices by type. Support multiple.","wpmudev"],"type":"array","items":{"type":"string","enum":["main","hosting","smush-cdn","storage","addon-credit","hourly-backups","proactive-monitoring","domain","lc-support","email-account","site-speed-optimization","malware-removal","on-demand-development","on-demand-development-payment"],"example":"main"},"required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort invoices by object attribute.","type":"string","default":"name","enum":["name","date","amount","status","period"],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/billing\/invoices"}]}},"\/hub\/v1\/account\/billing\/invoices\/summary":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"date_from":{"description":"Start date range of invoices.","type":"date","format":"Y-m-d","required":false},"date_to":{"description":"End date range of invoices.","type":"date","format":"Y-m-d","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/billing\/invoices\/summary"}]}},"\/hub\/v1\/account\/billing\/invoices\/(?P[\\w]+)\/download":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"transaction_id":{"description":"Transaction ID.","type":"string","required":true}}}]},"\/hub\/v1\/account\/billing\/domains":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/billing\/domains"}]}},"\/hub\/v1\/account\/billing\/hosting\/annual":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"order":{"description":"Sort directions.","type":"string","default":"asc","enum":["asc","desc"],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/billing\/hosting\/annual"}]}},"\/hub\/v1\/account\/add-ons":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons"}]}},"\/hub\/v1\/account\/add-ons\/smush-cdn":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"bandwidth":{"description":"Bandwidth size in GB.","type":"integer","enum":[50,100,250,500,1024,5120,10240],"required":true}}},{"methods":["DELETE"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/smush-cdn"}]}},"\/hub\/v1\/account\/add-ons\/smush-cdn\/checkout\/complete":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/smush-cdn\/checkout\/complete"}]}},"\/hub\/v1\/account\/add-ons\/smush-cdn\/checkout\/error":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/smush-cdn\/checkout\/error"}]}},"\/hub\/v1\/account\/add-ons\/smush-cdn\/checkout\/description":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"bandwidth":{"description":"Bandwidth size in GB.","type":"integer","enum":[50,100,250,500,1024,5120,10240],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/smush-cdn\/checkout\/description"}]}},"\/hub\/v1\/account\/add-ons\/smush-cdn\/statistic":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/smush-cdn\/statistic"}]}},"\/hub\/v1\/account\/add-ons\/storage":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"size":{"description":"Storage size in GB.","type":"integer","enum":[100,250,500,1024],"required":true}}},{"methods":["DELETE"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/storage"}]}},"\/hub\/v1\/account\/add-ons\/storage\/checkout\/complete":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/storage\/checkout\/complete"}]}},"\/hub\/v1\/account\/add-ons\/storage\/checkout\/error":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/storage\/checkout\/error"}]}},"\/hub\/v1\/account\/add-ons\/storage\/checkout\/description":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"size":{"description":"Storage size in GB.","type":"integer","enum":[100,250,500,1024],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/storage\/checkout\/description"}]}},"\/hub\/v1\/account\/add-ons\/storage\/statistic":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/storage\/statistic"}]}},"\/hub\/v1\/account\/add-ons\/storage\/backups":{"namespace":"hub\/v1","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"site_id":{"description":["Filter backups by site_id.","wpmudev"],"type":"integer","minimum":1,"required":false},"active":{"description":["Filter backups by active only sites or inactive ( disconnected ) sites.","wpmudev"],"type":["boolean","null"],"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Backup ID.","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/storage\/backups"}]}},"\/hub\/v1\/account\/add-ons\/storage\/backups\/download":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Backup ID.","type":"string","required":true},"email":{"description":"Email that will receive the download link. Only applies for snapshot-backups. Optional, default will be current user's email.","type":"string","format":"email","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/storage\/backups\/download"}]}},"\/hub\/v1\/account\/add-ons\/storage\/backups\/disconnected-sites":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/storage\/backups\/disconnected-sites"}]}},"\/hub\/v1\/account\/add-ons\/storage\/backups\/disconnected-sites\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"site_id":{"description":"Disconnected Site ID to delete the Snapshot V4 backups from.","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/account\/add-ons\/storage\/backups\/disconnected-sites\/all":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/storage\/backups\/disconnected-sites\/all"}]}},"\/hub\/v1\/account\/add-ons\/hosting-credit":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"quantity":{"description":"Total quantity to purchase.","type":"integer","minimum":1,"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/hosting-credit"}]}},"\/hub\/v1\/account\/add-ons\/hosting-credit\/checkout\/complete":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/hosting-credit\/checkout\/complete"}]}},"\/hub\/v1\/account\/add-ons\/hosting-credit\/checkout\/error":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/hosting-credit\/checkout\/error"}]}},"\/hub\/v1\/account\/claim-free-hosting-credits":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Free Hosting Credits ID","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/claim-free-hosting-credits"}]}},"\/hub\/v1\/account\/switch-free-hub":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/switch-free-hub"}]}},"\/hub\/v1\/account\/add-ons\/hosting-hourly-backups":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"The Hosting site identifier.","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/hosting-hourly-backups"}]}},"\/hub\/v1\/account\/add-ons\/hosting-hourly-backups\/sites":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/hosting-hourly-backups\/sites"}]}},"\/hub\/v1\/account\/add-ons\/hosting-hourly-backups\/checkout":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"The Hosting site identifier.","type":"string","required":true},"action":{"description":"The checkout action to perform.","type":"string","enum":["cancel","keep","reactivate"],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/hosting-hourly-backups\/checkout"}]}},"\/hub\/v1\/account\/add-ons\/hosting-hourly-backups\/checkout\/complete":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/hosting-hourly-backups\/checkout\/complete"}]}},"\/hub\/v1\/account\/add-ons\/hosting-hourly-backups\/checkout\/error":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/hosting-hourly-backups\/checkout\/error"}]}},"\/hub\/v1\/account\/add-ons\/hosting-hourly-backups\/checkout\/check":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"The Hosting site identifier.","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/hosting-hourly-backups\/checkout\/check"}]}},"\/hub\/v1\/account\/add-ons\/hosting-hourly-backups\/checkout\/confirm":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"The Hosting site identifier.","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/hosting-hourly-backups\/checkout\/confirm"}]}},"\/hub\/v1\/account\/add-ons\/proactive-monitoring":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"site_id":{"description":"The Hub site ID.","type":"integer","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/proactive-monitoring"}]}},"\/hub\/v1\/account\/add-ons\/proactive-monitoring\/sites":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/proactive-monitoring\/sites"}]}},"\/hub\/v1\/account\/add-ons\/proactive-monitoring\/checkout":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"site_id":{"description":"The Hub site ID.","type":"integer","required":true},"action":{"description":"The checkout action to perform.","type":"string","enum":["cancel","keep","reactivate"],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/proactive-monitoring\/checkout"}]}},"\/hub\/v1\/account\/add-ons\/proactive-monitoring\/checkout\/complete":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/proactive-monitoring\/checkout\/complete"}]}},"\/hub\/v1\/account\/add-ons\/proactive-monitoring\/checkout\/error":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/proactive-monitoring\/checkout\/error"}]}},"\/hub\/v1\/account\/add-ons\/proactive-monitoring\/checkout\/check":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"site_id":{"description":"The Hub site ID.","type":"integer","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/proactive-monitoring\/checkout\/check"}]}},"\/hub\/v1\/account\/add-ons\/proactive-monitoring\/checkout\/confirm":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"site_id":{"description":"The Hub site ID.","type":"integer","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/proactive-monitoring\/checkout\/confirm"}]}},"\/hub\/v1\/account\/add-ons\/proactive-monitoring\/create-ticket":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"site_id":{"description":"Hub site ID.","type":"integer","required":true},"wp_admin_url":{"description":"WP admin login URL.","type":"string","format":"url","required":true},"wp_admin_username":{"description":"WP admin username.","type":"string","required":true},"wp_admin_password":{"description":"WP admin password.","type":"string","required":true},"host_cpanel_login_url":{"description":"Hosting CPanel login URL.","type":"string","format":"url","required":false},"host_cpanel_username":{"description":"Hosting CPanel username.","type":"string","required":false},"host_cpanel_password":{"description":"Hosting CPanel password.","type":"string","required":false},"ftp_ssh_host":{"description":"FTP\/SFTP\/SSH host.","type":"string","required":false},"ftp_ssh_port":{"description":"FTP\/SFTP\/SSH port.","type":"integer","required":false},"ftp_ssh_username":{"description":"FTP\/SFTP\/SSH username.","type":"string","required":false},"ftp_ssh_password":{"description":"FTP\/SFTP\/SSH password.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/proactive-monitoring\/create-ticket"}]}},"\/hub\/v1\/account\/add-ons\/proactive-monitoring\/claim-credits":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"triggered_from":{"description":"The source of the claim. Used for Mixpanel event.","type":"string","enum":["Pop-Up","Email"],"default":"Pop-Up","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/proactive-monitoring\/claim-credits"}]}},"\/hub\/v1\/account\/add-ons\/support-access\/checkout":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"member_id":{"description":"Team member identifier or invitation email address.","type":["integer","string"],"minimum":1,"required":true},"plan":{"description":"LiveChat support access plan.","type":"string","default":"lc-support-1-site","required":false},"action":{"description":"The checkout action to perform.","type":"string","enum":["add","change_plan","cancel","reactivate"],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/support-access\/checkout"}]}},"\/hub\/v1\/account\/add-ons\/support-access\/checkout\/complete":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/support-access\/checkout\/complete"}]}},"\/hub\/v1\/account\/add-ons\/support-access\/checkout\/error":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/support-access\/checkout\/error"}]}},"\/hub\/v1\/account\/add-ons\/support-access\/checkout\/description":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"member_id":{"description":"Team member identifier or invitation email address.","type":["integer","string"],"minimum":1,"required":true},"plan":{"description":"LiveChat support access plan.","type":"string","default":"lc-support-1-site","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/support-access\/checkout\/description"}]}},"\/hub\/v1\/account\/add-ons\/service":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"service_type":{"description":"Type of service.","type":"string","enum":["site-speed-optimization","malware-removal"],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/service"}]}},"\/hub\/v1\/account\/add-ons\/service\/checkout\/complete":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/service\/checkout\/complete"}]}},"\/hub\/v1\/account\/add-ons\/service\/checkout\/error":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/service\/checkout\/error"}]}},"\/hub\/v1\/account\/add-ons\/service\/checkout\/description":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"service_type":{"description":"Type of service.","type":"string","enum":["site-speed-optimization","malware-removal"],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/service\/checkout\/description"}]}},"\/hub\/v1\/account\/add-ons\/service\/send-credentials":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"service_order_id":{"description":"Service Order identifier","type":"integer","minimum":1,"required":true},"wp_admin_url":{"description":"WP Admin URL","type":"string","required":false},"wp_admin_username":{"description":"Admin username","type":"string","required":false},"wp_admin_password":{"description":"Admin password","type":"string","required":false},"host_cpanel_login_url":{"description":"Host \/ cPanel login URL","type":"string","required":false},"host_cpanel_provider":{"description":"Source site hosting provider","type":"string","required":false},"host_cpanel_username":{"description":"Host \/ cPanel username","type":"string","required":false},"host_cpanel_password":{"description":"Host \/ cPanel password","type":"string","required":false},"ftp_ssh_host":{"description":"FTP\/SFTP\/SSH Host","type":"string","required":false},"ftp_ssh_port":{"description":"FTP\/SFTP\/SSH Port","type":"integer","required":false},"ftp_ssh_username":{"description":"FTP\/SFTP\/SSH Username","type":"string","required":false},"ftp_ssh_password":{"description":"FTP\/SFTP\/SSH Password","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/service\/send-credentials"}]}},"\/hub\/v1\/account\/feedbacks":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST"],"args":{"id":{"type":"string","enum":["new_site_sidebar_1","quantum_hosting_plan_1","blc_1","reseller_1"],"required":true},"message":{"type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/feedbacks"}]}},"\/hub\/v1\/account\/services":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/services"}]}},"\/hub\/v1\/account\/add-ons\/on-demand-development":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/on-demand-development"}]}},"\/hub\/v1\/account\/add-ons\/on-demand-development\/checkout":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"requests":{"description":"No. of requests","type":"integer","enum":[],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/on-demand-development\/checkout"}]}},"\/hub\/v1\/account\/add-ons\/on-demand-development\/checkout\/complete":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/on-demand-development\/checkout\/complete"}]}},"\/hub\/v1\/account\/add-ons\/on-demand-development\/checkout\/error":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/on-demand-development\/checkout\/error"}]}},"\/hub\/v1\/account\/add-ons\/on-demand-development\/checkout\/description":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"requests":{"description":"No. of requests","type":"integer","enum":[],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/on-demand-development\/checkout\/description"}]}},"\/hub\/v1\/account\/add-ons\/on-demand-development\/requests":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"type":{"description":"Request type.","type":"string","enum":["all"],"default":"all","required":false},"per_page":{"description":"No. of items per page.","type":"integer","default":20,"minimum":1,"required":false},"page":{"description":"Page number for pagination.","type":"integer","default":1,"minimum":1,"required":false},"order_by":{"description":"Order limit by a field.","type":"string","enum":["request_id","reported_datetime"],"default":"request_id","required":false},"order":{"description":"Order.","type":"string","enum":["ASC","DESC"],"default":"DESC","required":false}}},{"methods":["POST"],"args":{"title":{"description":"Ticket title.","type":"string","required":true},"description":{"description":"Ticket description.","type":"string","required":false},"site_id":{"description":"Hub site ID.","type":"integer","required":true},"wp_admin_url":{"description":"WP admin login URL.","type":"string","format":"url","required":false},"wp_admin_username":{"description":"WP admin username.","type":"string","required":false},"wp_admin_password":{"description":"WP admin password.","type":"string","required":false},"host_cpanel_login_url":{"description":"Hosting CPanel login URL.","type":"string","format":"url","required":false},"host_cpanel_username":{"description":"Hosting CPanel username.","type":"string","required":false},"host_cpanel_password":{"description":"Hosting CPanel password.","type":"string","required":false},"ftp_ssh_host":{"description":"FTP\/SFTP\/SSH host.","type":"string","required":false},"ftp_ssh_port":{"description":"FTP\/SFTP\/SSH port.","type":"integer","required":false},"ftp_ssh_username":{"description":"FTP\/SFTP\/SSH username.","type":"string","required":false},"ftp_ssh_password":{"description":"FTP\/SFTP\/SSH password.","type":"string","required":false},"bb_attachments":{"description":"Attachment files","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/on-demand-development\/requests"}]}},"\/hub\/v1\/account\/add-ons\/on-demand-development\/requests\/remaining":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/on-demand-development\/requests\/remaining"}]}},"\/hub\/v1\/account\/add-ons\/on-demand-development-payment\/checkout":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"link_name":{"description":"Link name","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/on-demand-development-payment\/checkout"}]}},"\/hub\/v1\/account\/add-ons\/on-demand-development-payment\/checkout\/complete":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/on-demand-development-payment\/checkout\/complete"}]}},"\/hub\/v1\/account\/add-ons\/on-demand-development-payment\/checkout\/error":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/on-demand-development-payment\/checkout\/error"}]}},"\/hub\/v1\/account\/add-ons\/on-demand-development-payment\/checkout\/description":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"link_name":{"description":"Link name","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/add-ons\/on-demand-development-payment\/checkout\/description"}]}},"\/hub\/v1\/sites":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":20,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort sites by object attribute.","type":"string","default":"domain","enum":["domain","id","num_updates","title"],"required":false},"filter":{"description":"Filter sites result set.","type":"array","default":"all","items":{"type":"string"},"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"is_favorites_first":{"description":"Whether to list favorites site first.","type":"boolean","default":false,"required":false},"counts_as_header":{"description":"Whether to include counts as header response.","type":"boolean","default":true,"required":false},"count_hosted_as_header":{"description":"Whether to include hosted site counts as header response.x-count-hosted. if counts_as_header true, this will be ignored","type":"boolean","default":false,"required":false},"uninstalled_plugin_ids":{"description":"Find sites that has the plugins uninstalled.","type":"array","items":{"type":["string","integer"]},"required":false}}},{"methods":["POST"],"args":{"domain":{"description":"Domain","type":"string","format":"domain","required":true},"sso_enabled":{"default":false,"description":"Whether site has sso enabled","type":"boolean","required":false},"features":{"description":"List features and flag whether site has the feature available based on subscribed membership plan.","type":"array","items":{"type":"object","properties":{"id":{"description":"Feature Readable machine-ID.","type":"string","readonly":true,"example":"security-defender"},"name":{"description":"Feature Humanized name.","type":"string","readonly":true,"example":"Defender"},"is_has_access":{"description":"Whether this site has access to.","type":"boolean","readonly":true,"example":false},"upgrade_url":{"description":"Upgrade URL to get the feature.","type":"string","format":"uri","readonly":true,"example":"https:\/\/wpmudev.com"}}},"required":false},"has_pending_manual_hosting_migration":{"description":"Whether has pending manual hosting migration","type":"boolean","required":false},"is_hosting_suspended":{"description":"Whether hosting is suspended","type":"boolean","required":false},"has_active_dash":{"description":"Whether site has Dashboard Plugin active or not.","type":"boolean","required":false},"is_antibot_enabled":{"description":"Whether site has AntiBot feature enabled.","type":"boolean","required":false},"is_global_ip_list_enabled":{"description":"Whether site has Global IP List feature enabled.","type":"boolean","required":false},"username":{"description":"Site admin username","type":"string","required":true},"password":{"description":"Site admin password","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/sites"}]}},"\/hub\/v1\/sites\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","DELETE","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"is_cancel_billing":{"description":"Whether to remove client, cancel subscriptions and void invoices","type":"boolean","default":false,"required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"title":{"description":"Custom Site title. (User defined).","type":"string","format":"text-field","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/support-access":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/counts":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/sites\/counts"}]}},"\/hub\/v1\/sites\/validity\/domain":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"description":"Domain to check","type":"string","required":true},"features":{"description":"List features and flag whether site has the feature available based on subscribed membership plan.","type":"array","items":{"type":"object","properties":{"id":{"description":"Feature Readable machine-ID.","type":"string","readonly":true,"example":"security-defender"},"name":{"description":"Feature Humanized name.","type":"string","readonly":true,"example":"Defender"},"is_has_access":{"description":"Whether this site has access to.","type":"boolean","readonly":true,"example":false},"upgrade_url":{"description":"Upgrade URL to get the feature.","type":"string","format":"uri","readonly":true,"example":"https:\/\/wpmudev.com"}}},"required":false},"has_pending_manual_hosting_migration":{"description":"Whether has pending manual hosting migration","type":"boolean","required":false},"is_hosting_suspended":{"description":"Whether hosting is suspended","type":"boolean","required":false},"has_active_dash":{"description":"Whether site has Dashboard Plugin active or not.","type":"boolean","required":false},"is_antibot_enabled":{"description":"Whether site has AntiBot feature enabled.","type":"boolean","required":false},"is_global_ip_list_enabled":{"description":"Whether site has Global IP List feature enabled.","type":"boolean","required":false},"check_ownership":{"description":"Whether to check ownership, when enabled it will try to find whether the domain is being owned by another WPMUDEV user.","type":"boolean","default":false,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/sites\/validity\/domain"}]}},"\/hub\/v1\/sites\/(?P[\\d]+)\/sync":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"title":{"description":"Custom Site title. (User defined).","type":"string","format":"text-field","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/sso":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"sso_enabled":{"description":"Enable \/ Disable SSO","type":"boolean","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/favorite":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/screenshots":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/label\/(?P[\\w]+)":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"slug":{"description":"Label Slug","type":"string","required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"slug":{"description":"Label Slug","type":"string","required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/plugins":{"namespace":"hub\/v1","methods":["GET","POST","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort plugins by object attribute.","type":"string","default":"id","enum":["id","name"],"required":false},"filter":{"description":"Filter plugins result set.","type":"string","default":"all","enum":["all","has_update","is_favorited","is_updates_ignored"],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"is_favorites_first":{"description":"Whether to list favorites site first.","type":"boolean","default":false,"required":false},"counts_as_header":{"description":"Whether to include counts as header response.","type":"boolean","default":true,"required":false},"count_hosted_as_header":{"description":"Whether to include hosted site counts as header response.x-count-hosted. if counts_as_header true, this will be ignored","type":"boolean","default":false,"required":false},"uninstalled_plugin_ids":{"description":"Find sites that has the plugins uninstalled.","type":"array","items":{"type":["string","integer"]},"required":false}}},{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"plugin_id":{"description":"Plugin identifier. Plugin slug, or numeric if WPMU DEV Plugin.","type":["string","integer"],"required":false},"plugin_url":{"description":"Install new plugin from url.","type":"string","format":"url","required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"plugin_id":{"description":"Plugin identifier. Plugin slug, or numeric if WPMU DEV Plugin.","type":["string","integer"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/plugins\/view":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"plugin_id":{"description":"Plugin identifier. Plugin slug, or numeric if WPMU DEV Plugin.","type":["string","integer"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/plugins\/update":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"plugin_id":{"description":"Plugin identifier. Slug of plugin, or numeric if WPMU DEV Plugin","type":["string","integer"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/plugins\/activate":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"plugin_id":{"description":"Plugin identifier. Slug of plugin, or numeric if WPMU DEV Plugin","type":["string","integer"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/plugins\/deactivate":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"plugin_id":{"description":"Plugin identifier. Slug of plugin, or numeric if WPMU DEV Plugin","type":["string","integer"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/plugins\/install-activate":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"plugin_id":{"description":"Plugin identifier. Slug of plugin, or numeric if WPMU DEV Plugin","type":["string","integer"],"required":false},"plugin_url":{"description":"Install new plugin from url.","type":"string","format":"url","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/plugins\/deactivate-uninstall":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"plugin_id":{"description":"Plugin identifier. Slug of plugin, or numeric if WPMU DEV Plugin","type":["string","integer"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/plugins\/ignore-updates":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"plugin_id":{"description":"Plugin identifier. Slug of plugin, or numeric if WPMU DEV Plugin","type":["string","integer"],"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"plugin_id":{"description":"Plugin identifier. Slug of plugin, or numeric if WPMU DEV Plugin","type":["string","integer"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/plugins\/upgrade":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"plugin_id":{"description":"Plugin identifier. Slug of plugin, or numeric if WPMU DEV Plugin","type":"integer","required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/plugins\/downgrade":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"plugin_id":{"description":"Plugin identifier. Slug of plugin, or numeric if WPMU DEV Plugin","type":"integer","required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/themes":{"namespace":"hub\/v1","methods":["GET","POST","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort themes by object attribute.","type":"string","default":"id","enum":["id","name"],"required":false},"filter":{"description":"Filter themes result set.","type":"string","default":"all","enum":["all","has_update","is_favorited","is_updates_ignored"],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"is_favorites_first":{"description":"Whether to list favorites site first.","type":"boolean","default":false,"required":false},"counts_as_header":{"description":"Whether to include counts as header response.","type":"boolean","default":true,"required":false},"count_hosted_as_header":{"description":"Whether to include hosted site counts as header response.x-count-hosted. if counts_as_header true, this will be ignored","type":"boolean","default":false,"required":false},"uninstalled_plugin_ids":{"description":"Find sites that has the plugins uninstalled.","type":"array","items":{"type":["string","integer"]},"required":false}}},{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"theme_id":{"description":"Theme identifier. Theme slug, or numeric if WPMU DEV Theme.","type":["string","integer"],"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"theme_id":{"description":"Theme identifier. Theme slug, or numeric if WPMU DEV Theme.","type":["string","integer"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/themes\/view":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"theme_id":{"description":"Theme identifier. Theme slug, or numeric if WPMU DEV Theme.","type":["string","integer"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/themes\/update":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"theme_id":{"description":"Theme identifier. Slug of theme, or numeric if WPMU DEV Theme","type":["string","integer"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/themes\/activate":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"theme_id":{"description":"Theme identifier. Slug of theme, or numeric if WPMU DEV Theme","type":["string","integer"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/themes\/deactivate":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"theme_id":{"description":"Theme identifier. Slug of theme, or numeric if WPMU DEV Theme","type":["string","integer"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/themes\/ignore-updates":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"theme_id":{"description":"Theme identifier. Slug of theme, or numeric if WPMU DEV Theme","type":["string","integer"],"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"theme_id":{"description":"Theme identifier. Slug of theme, or numeric if WPMU DEV Theme","type":["string","integer"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/wp":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/wp-core\/ignore-updates":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/custom-thumbnail":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"is_active":{"description":"Flag whether to activate custom thumbnails for this site.","type":"boolean","required":false},"thumbnail":{"description":"Pass empty string to remove current custom thumbnail.","type":"string","required":false}}}]},"\/hub\/v1\/plugins":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort plugins by object attribute.","type":"string","default":"id","enum":["id","name","num_site_updates","num_site_ignored_updates","num_sites","num_site_actives","num_site_inactives","num_site_uninstalls"],"required":false},"filter":{"description":"Filter plugins result set.","type":"string","default":"all","enum":["all","has_site_updates","is_favorited","has_site_ignored_updates"],"required":false},"ids":{"description":"Filter plugins result set based on ids.","type":"array","items":{"type":["string","integer"]},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/plugins"}]}},"\/hub\/v1\/plugins\/view":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Plugin identifier","type":["string","integer"],"required":true},"is_sites_favorites_first":{"description":"Whether to list favorites sites first.","type":"boolean","default":true,"required":false},"sites_orderby":{"description":"Sort sites by object attribute.","type":"string","default":"id","enum":["domain","id","title"],"required":false},"sites_order":{"description":"Sites order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"sites_filter":{"description":"Filter sites result set.","type":"array","default":"all","items":{"type":"string","enum":["all"]},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/plugins\/view"}]}},"\/hub\/v1\/plugins\/upload":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/plugins\/upload"}]}},"\/hub\/v1\/plugins\/validity\/zip-url":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"url":{"description":"Url to validate.","type":"string","format":"url","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/plugins\/validity\/zip-url"}]}},"\/hub\/v1\/plugins\/ignore-updates":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Plugin identifier","type":["string","integer"],"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Plugin identifier","type":["string","integer"],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/plugins\/ignore-updates"}]}},"\/hub\/v1\/plugins\/changelog":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Plugin identifier. String slug, or numeric for WPMU DEV Plugins","type":["string","integer"],"required":true},"site_ids":{"description":"Site IDs. Referer for sites.","type":"array","items":{"type":"integer"},"required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/plugins\/changelog"}]}},"\/hub\/v1\/plugins\/changelog\/version\/(?P[\\-\\.\\w]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Plugin identifier. String slug, or numeric for WPMU DEV Plugins","type":["string","integer"],"required":true},"version":{"description":"Specific version to get","type":"string","required":true},"site_ids":{"description":"Site IDs. Referer for sites.","type":"array","items":{"type":"integer"},"required":false}}}]},"\/hub\/v1\/plugins\/info":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Plugin identifier. String slug, or numeric for WPMU DEV Plugins","type":["string","integer"],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/plugins\/info"}]}},"\/hub\/v1\/themes":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort themes by object attribute.","type":"string","default":"id","enum":["id","name","num_site_updates","num_site_ignored_updates"],"required":false},"filter":{"description":"Filter themes result set.","type":"string","default":"all","enum":["all","has_site_updates","is_favorited","has_site_ignored_updates"],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/themes"}]}},"\/hub\/v1\/themes\/view":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Theme identifier","type":["string","integer"],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/themes\/view"}]}},"\/hub\/v1\/themes\/ignore-updates":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Theme identifier","type":["string","integer"],"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Theme identifier","type":["string","integer"],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/themes\/ignore-updates"}]}},"\/hub\/v1\/wp-core\/ignore-updates":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":[]},{"methods":["DELETE"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/wp-core\/ignore-updates"}]}},"\/hub\/v1\/sites\/(?P[\\d]+)\/overview":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"period":{"description":"Period to fetch.","type":"string","enum":["day","week","month"],"default":"week","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/security":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"two_fa":{"description":"Two-Factor Authentication status.","type":"object","properties":{"is_error":{"description":"Whether Two-Factor Authentication info has failure. In rare case, this will return true if HUB failed to get Two-Factor Authentication status, most of the times due to connectivity failure with the site.","type":"boolean","example":false,"readonly":true},"error_code":{"description":"Machine readable error code, when is_error is true.","type":"string","example":"","readonly":true},"error_message":{"description":"Error message when is_error is true.","type":"string","example":"","readonly":true},"is_active":{"description":"Whether Two-Factor Authentication enabled or not on this site.","type":"boolean","example":false},"configure_url":{"description":"Configure url refer to WP Admin of the site.","type":"string","format":"url","example":"https:\/\/example.org\/wp-admin\/admin.php?page=wdf-advanced-tools","readonly":true},"lost_phone":{"description":"Lost phone feature info.","type":"object","readonly":true,"properties":{"is_active":{"description":"Whether Lost phone feature is active.","type":"boolean","example":false},"configure_url":{"description":"Configure URL refer to WP Admin site.","type":"string","format":"url","example":"https:\/\/example.org\/wp-admin\/admin.php?page=wdf-hardener#wp-version"}}}},"required":false},"google_recaptcha":{"description":"Google ReCaptcha Authentication status.","type":"object","properties":{"is_error":{"description":"Whether Google ReCaptcha info has failure. In rare case, this will return true if HUB failed to get Google ReCaptcha status, most of the times due to connectivity failure with the site.","type":"boolean","example":false,"readonly":true},"error_code":{"description":"Machine readable error code, when is_error is true.","type":"string","example":"","readonly":true},"error_message":{"description":"Error message when is_error is true.","type":"string","example":"","readonly":true},"is_active":{"description":"Whether Google ReCaptcha enabled or not on this site.","type":"boolean","example":false},"configure_url":{"description":"Configure url refer to WP Admin of the site.","type":"string","format":"url","example":"https:\/\/example.org\/wp-admin\/admin.php?page=wdf-advanced-tools","readonly":true}},"required":false},"quarantined_files":{"description":"Quarantined files.","type":"array","items":{"type":"object","properties":{"id":{"description":"Quarantined file id.","type":"integer","example":1},"file_name":{"description":"File name.","type":"string","example":"function.php"},"quarantined_on":{"description":"Quarantined Unix time.","type":"number","example":1187136000},"quarantined_on_utc":{"description":"Quarantined Unix time, based on UTC+0.","type":"number","example":1187136000},"quarantined_path":{"description":"Quarantined path.","type":"string","example":"\/var\/www\/html\/single.test\/wp-content\/plugins\/ninjascanner\/function.php"},"source_path":{"description":"Source path.","type":"string","example":"\/var\/www\/html\/single.test\/wp-content\/plugins\/ninjascanner\/function.php"}}},"required":false},"quarantined_files_configure_url":{"description":"Configure url for quarantined files,refer to WP Admin of the site.","type":"string","format":"url","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/security\/scan":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/security\/blocklist":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/security\/save-config":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"name":{"description":"Config name.","type":"string","minLength":1,"pattern":".*\\S.*","required":true},"description":{"description":"Config Description.","type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/security\/apply-config\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"config_id":{"description":"Config identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/security\/quarantined-files":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/security\/quarantined-files\/restore":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"file_id":{"description":"ID of quarantined file to restore","type":"integer","required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/performance":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/performance\/test":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/performance\/test\/warnings":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/performance\/caches":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"types":{"description":"Cache types to delete","type":"array","items":{"type":"string"},"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/performance\/(?P\\b(?!images\\b)\\w+)":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"module":{"description":"Performance module identifier.","type":"string","enum":["page_caching","gravatar_caching","rss_caching"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/performance\/save-config":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"name":{"description":"Config name.","type":"string","minLength":1,"pattern":".*\\S.*","required":true},"description":{"description":"Config Description.","type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/performance\/apply-config\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"config_id":{"description":"Config identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/performance\/images":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/performance\/images\/save-config":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"name":{"description":"Config name.","type":"string","minLength":1,"pattern":".*\\S.*","required":true},"description":{"description":"Config Description.","type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/performance\/images\/apply-config\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"config_id":{"description":"Config identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/seo":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/seo\/crawl":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/seo\/checkup":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/seo\/lighthouse":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/seo\/save-config":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"name":{"description":"Config name.","type":"string","minLength":1,"pattern":".*\\S.*","required":true},"description":{"description":"Config Description.","type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/seo\/apply-config\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"config_id":{"description":"Config identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backups":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backups\/backup":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"name":{"description":"Backup Name. Only applicable for Snapshot v4","type":"string","default":"Hub Manual Backup","required":false},"comment":{"description":"Backup Comment. Only applicable for DEV Hosted backup","type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backups\/save-config":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"name":{"description":"Config name.","type":"string","minLength":1,"pattern":".*\\S.*","required":true},"description":{"description":"Config Description.","type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backups\/apply-config\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"config_id":{"description":"Config identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backups\/hosting\/backups":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"time_from":{"description":"Get backups that created between time_from and time_to","type":"string","format":"Y-m-d H:i:s","required":false},"time_to":{"description":"Get backups that created between time_from and time_to","type":"string","format":"Y-m-d H:i:s","required":false}}},{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"comment":{"description":"Backup Comment.","type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backups\/hosting\/date-ranges":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backups\/hosting\/comment":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"backup_id":{"description":"Backup ID","type":"string","required":true},"comment":{"description":"New comment","type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backups\/snapshot-backups":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"allow_delete_all_backups":{"description":"Whether allowed to delete all backups on region change.","type":"boolean","default":false,"required":false},"is_error":{"description":"Whether Managed Backup info has failure. In rare case, this will return true if HUB failed to get Managed Backup status, most of the times due to connectivity failure with the site.","type":"boolean","required":false},"error_code":{"description":"Machine readable error code, when is_error is true.","type":"string","required":false},"error_message":{"description":"Error message when is_error is true.","type":"string","required":false},"is_active":{"description":"Whether Scheduled Snapshot Backups is active on this site.","type":"boolean","required":false},"is_extra_security_step":{"description":"Whether Extra Security step enabled.","type":"boolean","required":false},"configure_url":{"description":"Configure url refer to WP Admin of the site.","type":"string","format":"url","required":false},"ftp_restore":{"description":"FTP Restore","type":"object","properties":{"ftp_restore_id":{"description":"The ID of the FTP Restore","type":"string","example":"4d53c68f2ac3"},"is_running":{"description":"If an FTP Restore is Running","type":"boolean","example":true},"start_time":{"description":"FTP Restore Start Time","type":"integer","example":1619736006},"progress":{"description":"FTP Restore Progress Percent","type":"number","example":0},"current_stage":{"description":"Current stage FTP Restore is in","type":"string","example":"downloading_backup"},"finish_time":{"description":"FTP Restore Finish Time","type":"integer","example":1619736006},"is_success":{"description":"Was the FTP Restore a success?","type":"boolean","example":true},"error_code":{"description":"If the FTP Restore failed, what error code?","type":"string","example":"api_error"},"error_message":{"description":"If the FTP Restore failed, what error message?","type":"string","example":"API Error : Unauthorized"}},"required":false},"schedule":{"description":"Scheduled time for new backup. Based on user timezone.","type":"object","properties":{"interval":{"description":"Interval to create new backup. Empty when schedule is not enabled.","type":"string","enum":["","daily","weekly","monthly"],"example":"daily"},"day":{"description":"Day name \/ day of the month, only if interval is weekly \/ monthly.","type":["string","integer"],"example":"sunday"},"time":{"description":"24 hour representation of the schedule. This is based on user timezone.","type":"string","format":"H:i","example":"18:00"}},"required":false},"next_run":{"description":"Time of next scheduled backup, based on user timezone.","type":"string","format":"Y-m-d H:i:s","required":false},"next_run_utc":{"description":"Time of next scheduled backup, based on UTC+0.","type":"string","format":"Y-m-d H:i:s","required":false},"region":{"description":"Backup Region.","type":"string","enum":["US","EU"],"required":false},"rotation_frequency":{"description":"Backup Rotation Frequency.","type":"integer","minimum":1,"maximum":30,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backups\/snapshot-backups\/export":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"backup_id":{"description":"Backup ID","type":"string","required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backups\/snapshot-backups\/backups\/all":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backups\/snapshot-backups\/date-ranges":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backups\/snapshot-backups\/backups":{"namespace":"hub\/v1","methods":["GET","POST","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"time_from":{"description":"Get backups that created between time_from and time_to","type":"string","format":"Y-m-d H:i:s","required":false},"time_to":{"description":"Get backups that created between time_from and time_to","type":"string","format":"Y-m-d H:i:s","required":false}}},{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"name":{"description":"Backup Name.","type":"string","default":"Hub Manual Backup","required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"backup_id":{"description":"Backup ID","type":"string","required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backups\/snapshot-backups\/ftp-restore":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH","GET"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"HUB Site Identifier.","type":"integer","minimum":1,"required":true},"site_url":{"description":"Home URL of the Site","type":"string","format":"url","required":true},"backup_id":{"description":"Backup ID","type":"string","required":true},"protocol":{"description":"Protocol to connect to site server.","type":"string","enum":["sftp","ftp"],"required":true},"host":{"description":"Host to connect to server site.","type":"string","required":true},"port":{"description":"Port to connect to server site.","type":["number","null"],"minimum":21,"required":false},"username":{"description":"Username to connect to server site.","type":"string","required":true},"password":{"description":"Password to connect to server site.","type":"string","required":true},"path_open":{"description":"Wordpress Install Path.","type":"string","required":false},"path":{"description":"Wordpress Install Path.","type":"string","required":true}}},{"methods":["GET"],"args":{"id":{"description":"HUB Site Identifier.","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/insights\/uptime\/save-config":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"name":{"description":"Config name.","type":"string","minLength":1,"pattern":".*\\S.*","required":true},"description":{"description":"Config Description.","type":"string","required":false},"period":{"description":"Period to return the uptime data.","type":"string","enum":["day","week","month"],"default":"week","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/insights\/uptime\/apply-config\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"config_id":{"description":"Config identifier","type":"integer","minimum":1,"required":true},"period":{"description":"Period to return the uptime data.","type":"string","enum":["day","week","month"],"default":"week","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/insights\/analytics":{"namespace":"hub\/v1","methods":["GET","DELETE","POST","PUT","PATCH","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"period":{"description":"Period to fetch. Last X days","type":"integer","minimum":1,"maximum":90,"default":7,"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"period":{"description":"Period to fetch. Last X days","type":"integer","minimum":1,"maximum":90,"default":7,"required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/insights\/analytics\/settings":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"period":{"description":"Period to fetch. Last X days","type":"integer","minimum":1,"maximum":90,"default":7,"required":false},"is_active":{"description":"Whether Analytics module is active on this site.","type":"boolean","required":true},"metrics":{"description":"Analytics metrics to be returned on fetch.","type":"array","items":{"type":"string","enum":["pageviews","unique_pageviews","visit_time","bounce_rate","exit_rate","entry_visits","gen_time"]},"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting":{"namespace":"hub\/v1","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"check":{"description":"Check step ?","type":"integer","enum":[0,1],"default":0,"required":true},"is_cancel_billing":{"description":"Whether to remove client, cancel subscriptions and void invoices","type":"boolean","default":false,"required":false},"main_reason":{"description":"Main reason of deleting hosting site.","type":"string","default":"","required":false},"secondary_reason":{"description":"Secondary reason of deleting hosting site.","type":"string","default":"","required":false},"message_reason":{"description":"Expanded reason message of deleting hosting site.","type":"string","default":"","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/refresh":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/user-template":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"title":{"description":"Template title.","type":"string","format":"text-field","maxLength":50,"required":true},"description":{"description":"Template description.","type":"string","format":"textarea-field","maxLength":150,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/archive-reactivate":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/domains":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"domain":{"description":"Domain to add.","type":"string","required":true},"with_www":{"description":"Whether to include `www.` version.","type":"boolean","default":false,"required":false},"is_add_dns_records":{"description":"Whether to add to Hub DNS records","type":"boolean","default":false,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/domains\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"domain_id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"domain_id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/domains\/(?P[\\d]+)\/primary":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"domain_id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/domains\/(?P[\\d]+)\/check-dns":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"domain_id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/domains\/(?P[\\d]+)\/check-dns-ssl":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"domain_id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/domains\/(?P[\\d]+)\/add-dns-records":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"domain_id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/domains\/(?P[\\d]+)\/mark-dns-record-updated-to-cname":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"domain_id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"mark":{"description":"Mark DNS record as updated to CNAM","type":"boolean","default":true,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/accounts":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"username":{"description":"Username.","type":"string","required":true},"type":{"description":"Access type.","type":"string","enum":["ssh","sftp"],"required":true},"environment":{"default":"production","description":"Access environment.","type":"string","enum":["staging","production"],"required":false},"wp_path":{"default":"\/","description":"WP Path restriction.","type":"string","required":false},"auth_type":{"default":"password","description":"Authentication type.","type":"string","enum":["password","ssh_key"],"required":false},"ssh_key":{"description":"SSH Key. Only if auth_type = `ssh_key`","type":"string","required":false},"password":{"description":"Password. Only if auth_type = `password`","type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/accounts\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true},"auth_type":{"description":"Authentication type.","type":"string","enum":["password","ssh_key"],"required":false},"ssh_key":{"description":"SSH Key. Only if auth_type = `ssh_key`","type":"string","required":false},"password":{"description":"Password. Only if auth_type = `password`","type":"string","required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/password-protection":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"is_active":{"description":"Whether password protection feature is active.","type":"boolean","required":true},"username":{"description":"Username to use for authenticate password protection feature. Empty if feature not active.","type":"string","required":false},"password":{"description":"Password to use for authenticate password protection feature. Empty if feature not active.","type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/waf":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"is_active":{"description":"Whether WAF is active.","type":"boolean","required":true},"ip_blocklist":{"description":"Blocklisted IPs.","type":"array","items":{"type":"string"},"required":false},"ip_allowlist":{"description":"Allowed IPs.","type":"array","items":{"type":"string"},"required":false},"ua_blocklist":{"description":"Blocklisted IPs.","type":"array","items":{"type":"string"},"required":false},"ua_allowlist":{"description":"Allowed IPs.","type":"array","items":{"type":"string"},"required":false},"url_allowlist":{"description":"Allowed URLs.","type":"array","items":{"type":"string","pattern":"^\\\/*((?!-)[a-zA-Z0-9-_]+(?[\\d]+)\/modules\/hosting\/profiling":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"newrelic":{"type":"object","properties":{"is_active":{"description":"Whether Newrelic monitoring active.","type":"boolean","example":false},"key":{"description":"Newrelic license key.","type":"string","example":""},"app_name":{"description":"Newrelic app name. It will be used as an APM name inside the New Relic dashboard.","type":"string","example":"","maxLength":32}},"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/multisite":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"is_active":{"description":"Whether multisite feature is active.","type":"boolean","required":true},"type":{"description":"Multisite Type. Empty if feature not active.","type":"string","enum":["subdirectory","subdomain"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/php":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"version":{"description":"Current active PHP Version.","type":"string","enum":["8.1","8.2","8.3"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/object-cache":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/wp-config\/reset":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/migration\/available-sites":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/migration\/pending":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/migration":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"site_id":{"description":"HUB Site Identifier.","type":"integer","minimum":1,"required":true},"protocol":{"description":"Protocol to connect to site server.","type":"string","enum":["sftp","ftp"],"required":true},"host":{"description":"Host to connect to server site.","type":"string","required":true},"port":{"description":"Port to connect to server site.","type":["number","null"],"minimum":21,"required":false},"username":{"description":"Username to connect to server site.","type":"string","required":true},"password":{"description":"Password to connect to server site.","type":"string","required":true},"path_open":{"description":"Wordpress Install Path.","type":"string","required":false},"path":{"description":"Wordpress Install Path.","type":"string","required":false},"parallel":{"description":"Use parallel feature.","type":"boolean","default":true,"required":true},"hosting_provider":{"description":"The hosting provider","type":"string","default":"","required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/manual-migration":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"site_id":{"description":"HUB Site Identifier.","type":"integer","minimum":1,"required":true},"wp_login_details":{"description":"WP Login Details.","type":"object","properties":{"url":{"description":"WP Login URL.","type":"string","format":"url"},"username":{"description":"WP Login Username.","type":"string"},"password":{"description":"WP Login Password.","type":"string"}},"required":false},"host_login_details":{"description":"Host Login Details.","type":"object","properties":{"url":{"description":"Host Login Url.","type":"string","format":"url"},"username":{"description":"Host Login Username.","type":"string"},"password":{"description":"Host Login Password.","type":"string"},"provider":{"description":"Host Login Provider.","type":"string"}},"required":false},"ftp_login_details":{"description":"FTP Login Details.","type":"object","properties":{"host":{"description":"FTP Login Host.","type":"string"},"username":{"description":"FTP Login Username.","type":"string"},"password":{"description":"FTP Login Password.","type":"string"},"port":{"description":"FTP Login Port.","type":["integer","string"]}},"required":false},"additional_info":{"description":"FTP Login Additional Info.","type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/backups":{"namespace":"hub\/v1","methods":["POST","GET"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"comment":{"description":"Comment for the backup.","type":"string","required":false}}},{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"time_from":{"description":"Get backups that created between time_from and time_to","type":"string","format":"Y-m-d H:i:s","required":false},"time_to":{"description":"Get backups that created between time_from and time_to","type":"string","format":"Y-m-d H:i:s","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/backups\/date-ranges":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/backups\/(?P[\\w-]+)\/comment":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"backup_id":{"description":"Backup ID","type":"string","required":true},"comment":{"description":"New comment","type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/backups\/(?P[\\w-]+)\/restore":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"backup_id":{"description":"Backup ID","type":"string","required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/backups\/(?P[\\w-]+)\/download":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/logs\/export":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"types":{"description":"Log Types to export","type":"array","items":{"type":"string","enum":["access_log","php_errors_log","php_slow_log","waf_log"]},"required":true},"email":{"description":"Email address to send exported logs. Default to user email","type":"string","format":"email","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/logs\/(?P[\\w-]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"type":{"description":"Log Type","type":"string","enum":["access_log","php_errors_log","php_slow_log","waf_log","audit"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/email-forwards":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"from":{"description":"Forward email from.","type":"string","format":"email","required":true},"to":{"description":"Forward email to.","type":"string","format":"email","required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/email-forwards\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"email_forward_id":{"description":"Email Forward identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/email-forwards\/(?P[\\d]+)\/resend-verification":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"email_forward_id":{"description":"Email Forward identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/email-forwards\/(?P[\\d]+)\/send-test-email":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"email_forward_id":{"description":"Email Forward identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/email-forwards\/(?P[\\d]+)\/recheck-dns":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"email_forward_id":{"description":"Email Forward identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/email-accounts":{"namespace":"hub\/v1","methods":["GET","POST","DELETE","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"email":{"description":"Email address.","type":"string","format":"email","required":true},"password":{"description":"Password.","type":"string","required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"email":{"description":"Email address","type":"string","format":"email","required":true}}},{"methods":["PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"email":{"description":"Email address.","type":"string","format":"email","required":true},"password":{"description":"Password.","type":["null","string"],"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/email-accounts-alias":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"alias":{"description":"Alias Email address.","type":"string","format":"email","required":true},"destination":{"description":"Destination Email address.","type":"string","format":"email","required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"alias":{"description":"Alias Email address","type":"string","format":"email","required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/email-accounts\/send-test-email":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"email":{"description":"Email address","type":"string","format":"email","required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/email-accounts\/check-dns":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/email-accounts\/add-dns-records":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/plans":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/plans\/(?P[\\w-]+)\/meta":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"plan_id":{"description":"Plan identifier","type":"string","enum":["s-1vcpu-512mb-10gb","s-1vcpu-1gb","vhf-1c-1gb","vhf-1c-2gb","s-2vcpu-2gb","vhf-2c-2gb","vhf-2c-4gb","s-4vcpu-8gb","vhf-4c-16gb","s-6vcpu-16gb","vhf-6c-24gb","s-8vcpu-32gb","vhf-8c-32gb","s-16vcpu-64gb","s-20vcpu-96gb","s-24vcpu-128gb","s-32vcpu-192gb"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/plans\/(?P[\\w-]+)\/checkout":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"plan_id":{"description":"Plan identifier","type":"string","enum":["s-1vcpu-512mb-10gb","s-1vcpu-1gb","vhf-1c-1gb","vhf-1c-2gb","s-2vcpu-2gb","vhf-2c-2gb","vhf-2c-4gb","s-4vcpu-8gb","vhf-4c-16gb","s-6vcpu-16gb","vhf-6c-24gb","s-8vcpu-32gb","vhf-8c-32gb","s-16vcpu-64gb","s-20vcpu-96gb","s-24vcpu-128gb","s-32vcpu-192gb"],"required":true},"site_action":{"description":"Site Action","type":"string","enum":["upgrade","downgrade","keep","reactivate","cancel","authenticate"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/plans\/checkout\/complete":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/plans\/checkout\/error":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/db\/manage":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/analytics":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"period":{"description":"Period for returned analytics data.","type":"string","enum":["current","week","month","quarter","year"],"default":"month","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/analytics\/backups-overhead":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"period":{"description":"Period for returned analytics data.","type":"string","enum":["current","week","month","quarter","year"],"default":"month","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/staff-support\/access":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/staging":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/staging\/push":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"type":{"description":"Type to push.","type":"string","enum":["files","all"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/staging\/sync":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/staging\/support-access":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/staging\/php":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"version":{"description":"Current active PHP Version.","type":"string","enum":["8.1","8.2","8.3"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/staging\/password-protection":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"is_active":{"description":"Whether password protection feature is active.","type":"boolean","required":true},"username":{"description":"Username to use for authenticate password protection feature. Empty if feature not active.","type":"string","required":false},"password":{"description":"Password to use for authenticate password protection feature. Empty if feature not active.","type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/staging\/logs\/export":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"types":{"description":"Log Types to export","type":"array","items":{"type":"string","enum":["php_errors_log","access_log","php_slow_log","waf_log"]},"required":true},"email":{"description":"Email address to send exported logs. Default to user email","type":"string","format":"email","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/staging\/logs\/(?P[\\w-]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"type":{"description":"Log Type","type":"string","enum":["php_errors_log","access_log","php_slow_log","audit","waf_log"],"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/staging\/db\/manage":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/file\/manage":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/staging\/file\/manage":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/static-cache":{"namespace":"hub\/v1","methods":["DELETE","POST","PUT","PATCH"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"is_active":{"description":"Whether Server Static Cache is active.","type":"boolean","required":false},"ttl":{"description":"Cache TTL \/ lifetime. In minutes","type":"integer","enum":[60,240,480,720,1440],"required":false},"bypass_urls":{"description":"List of urls that bypass cache. Relatives mode.","type":"array","items":{"type":"string"},"required":false},"query_params":{"description":"List of query params that will be cached.","type":"array","items":{"type":"string"},"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/bruteforce-protection":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"is_active":{"description":"Whether Bruteforce Attack Protection is active.","type":"boolean","required":true},"ip_allowlist":{"description":"List of Allowlist IPs for Bruteforce Attack Protection.","type":"array","items":{"type":"string"},"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/wp-reset":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"email":{"description":"WP admin email","type":"string","format":"email","required":true},"username":{"description":"WP Admin username","type":"string","required":true},"password":{"description":"WP admin Password","type":"string","minLength":8,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/staging\/wp-reset":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"email":{"description":"WP admin email","type":"string","format":"email","required":true},"username":{"description":"WP Admin username","type":"string","required":true},"password":{"description":"WP admin Password","type":"string","minLength":8,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/suspend":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/ioncube-loader":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/xmlrpc":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"is_enabled":{"description":"Is XML-RPC is enabled?","type":"boolean","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/maintenance-mode\/acknowledge-completed":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/insights":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"period":{"description":"Period to fetch.","type":"string","enum":["day","week","month"],"default":"week","required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/insights\/uptime":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"period":{"description":"Period to fetch.","type":"string","enum":["day","week","month"],"default":"week","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"period":{"description":"Period to fetch.","type":"string","enum":["day","week","month"],"default":"week","required":false},"is_active":{"description":"Whether Uptime monitor is active.","type":"boolean","required":false},"plugin_configure_url":{"description":"Configure url refer to WP Admin Plugin ( HB ) of the site.","type":"string","format":"url","required":false},"notification":{"description":"Notification emails configuration.","type":"object","properties":{"is_active":{"description":"Whether Notification is enabled","type":"boolean","example":false},"threshold":{"description":"How long uptime should wait before sending out downtime notifications, in minutes. 0 means instant, no waiting time.","type":"integer","enum":[0,5,10,30],"example":0},"recipients":{"description":"Recipients of notification emails.","type":"array","items":{"type":"object","properties":{"name":{"description":"Recipient name.","type":"string","example":"John Doe"},"email":{"description":"Email address.","type":"string","format":"email","example":"admin@example.com"},"is_subscribed":{"description":"Whether recipient is subscribed to this email.","type":"boolean","readonly":true,"example":false},"is_pending":{"description":"Whether recipient subscription to this email is pending.","type":"boolean","readonly":true,"example":false}}}}},"required":false},"configs":{"description":"List of configs available for uptime module that can be applied.","type":"array","items":{"type":"object","properties":{"id":{"description":"Config identifier.","type":"number","example":1},"name":{"description":"Config name.","type":"string","example":"Basic Config"},"description":{"description":"Config Description.","type":"string","example":"Config Description"},"package":{"description":"Package Information.","type":"object","properties":{"id":{"description":"Package ID.","type":"string","example":"some-package-id"},"name":{"description":"Package Name.","type":"string","example":"Package Name"},"is_dev":{"description":"Whether Package is WPMU DEV Package.","type":"boolean","example":false}}},"is_official":{"description":"Whether Package config is Official Package config.","type":"boolean","example":false,"readonly":true},"is_editable":{"description":"Whether Package config can be edited.","type":"boolean","example":false,"readonly":true},"is_removable":{"description":"Whether Package config can be removed.","type":"boolean","example":false,"readonly":true},"config":{"description":"String representation of the config in JSON format.","type":"string","example":""},"created_time":{"description":"Created time, based on user timezone","type":"string","format":"Y-m-d H:i:s","example":"2019-10-01 13:09:00"},"created_time_utc":{"description":"Created time, based on UTC+0","type":"string","format":"Y-m-d H:i:s","example":"2019-10-01 13:09:00"}}},"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/performance\/uptime":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"period":{"description":"Period to fetch.","type":"string","enum":["day","week","month"],"default":"week","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"period":{"description":"Period to fetch.","type":"string","enum":["day","week","month"],"default":"week","required":false},"is_active":{"description":"Whether Uptime monitor is active.","type":"boolean","required":false},"plugin_configure_url":{"description":"Configure url refer to WP Admin Plugin ( HB ) of the site.","type":"string","format":"url","required":false},"notification":{"description":"Notification emails configuration.","type":"object","properties":{"is_active":{"description":"Whether Notification is enabled","type":"boolean","example":false},"threshold":{"description":"How long uptime should wait before sending out downtime notifications, in minutes. 0 means instant, no waiting time.","type":"integer","enum":[0,5,10,30],"example":0},"recipients":{"description":"Recipients of notification emails.","type":"array","items":{"type":"object","properties":{"name":{"description":"Recipient name.","type":"string","example":"John Doe"},"email":{"description":"Email address.","type":"string","format":"email","example":"admin@example.com"},"is_subscribed":{"description":"Whether recipient is subscribed to this email.","type":"boolean","readonly":true,"example":false},"is_pending":{"description":"Whether recipient subscription to this email is pending.","type":"boolean","readonly":true,"example":false}}}}},"required":false},"configs":{"description":"List of configs available for uptime module that can be applied.","type":"array","items":{"type":"object","properties":{"id":{"description":"Config identifier.","type":"number","example":1},"name":{"description":"Config name.","type":"string","example":"Basic Config"},"description":{"description":"Config Description.","type":"string","example":"Config Description"},"package":{"description":"Package Information.","type":"object","properties":{"id":{"description":"Package ID.","type":"string","example":"some-package-id"},"name":{"description":"Package Name.","type":"string","example":"Package Name"},"is_dev":{"description":"Whether Package is WPMU DEV Package.","type":"boolean","example":false}}},"is_official":{"description":"Whether Package config is Official Package config.","type":"boolean","example":false,"readonly":true},"is_editable":{"description":"Whether Package config can be edited.","type":"boolean","example":false,"readonly":true},"is_removable":{"description":"Whether Package config can be removed.","type":"boolean","example":false,"readonly":true},"config":{"description":"String representation of the config in JSON format.","type":"string","example":""},"created_time":{"description":"Created time, based on user timezone","type":"string","format":"Y-m-d H:i:s","example":"2019-10-01 13:09:00"},"created_time_utc":{"description":"Created time, based on UTC+0","type":"string","format":"Y-m-d H:i:s","example":"2019-10-01 13:09:00"}}},"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/automate":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"is_active":{"description":"Whether Automate module is active on this site.","type":"boolean","required":false},"is_update_all":{"description":"Whether Automate updates all items, when true it means Automate will attempt to update WordPress Core, WPMU DEV Dashboard Plugin, all installed plugins and all installed themes. Specific plugins \/ themes can still be updated \/ ignored regardless of this value.","type":"boolean","required":false},"is_update_wp":{"description":"Whether Automate will check and updates WordPress Core","type":"boolean","required":false},"is_wp_updates_ignored":{"description":"Whether WordPress core updates ignored.","type":"boolean","required":false},"plugins":{"description":"List of installed plugins, and its settings of force update or force ignore.","type":"array","items":{"type":"object","properties":{"id":{"description":"Plugin identifier. Either plugin slug or numeric if its WPMU DEV Plugins.","type":"string","example":"akismet\/akismet.php"},"name":{"description":"Plugin name.","type":"string","example":"Akismet Anti-Spam"},"is_active":{"description":"Whether plugin is activated on the site.","type":"boolean","example":false},"version":{"description":"Current installed plugin version.","type":"string","example":"1.0"},"is_update":{"description":"Whether Automate will check and update this plugin.","type":"boolean","example":false},"is_updates_ignored":{"description":"Whether this plugin updates ignored.","type":"boolean","example":false}}},"required":false},"themes":{"description":"List of installed themes, and its settings of force update or force ignore.","type":"array","items":{"type":"object","properties":{"id":{"description":"Theme slug.","type":"string","example":"twentynineteen"},"name":{"description":"Theme name.","type":"string","example":"Twenty Nineteen","readonly":true},"is_active":{"description":"Whether theme is activated on the site.","type":"boolean","example":false},"version":{"description":"Current installed theme version.","type":"string","example":"1.0"},"is_update":{"description":"Whether Automate will check and update this theme.","type":"boolean","example":false},"is_updates_ignored":{"description":"Whether this theme updates ignored.","type":"boolean","example":false}}},"required":false},"schedule":{"description":"Scheduled time when Automate should run. When days and time are empty, means it uses our default time interval (+\/- 3 hours)","type":"object","properties":{"days":{"description":"List of days when Automate will run. Send empty days to disable to disable custom schedule.","type":"array","items":{"type":"string","enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday",""],"example":"monday"}},"time":{"description":"24 hour representation of the schedule. This is based on user timezone.","type":"string","format":"H:i","example":"18:00"}},"required":false},"is_auto_backup":{"description":"Whether to run auto backup before running Automate. To be able to use this feature, Snapshot need to be properly configured or site hosted in WPMU DEV.","type":"boolean","required":false},"safe_upgrade":{"description":"Safe upgrade configuration.","type":"object","properties":{"is_active":{"description":"Whether safe upgrade feature is active. When its active, by default it will capture site homepage.","type":"boolean","example":false},"extra_paths":{"description":"List of site paths for safe upgrade to check.","type":"array","items":{"type":"string","format":"url","example":"about-us"}}},"required":false},"safe_upgrade_email":{"description":"Safe upgrade email configuration.","type":"object","properties":{"is_active":{"description":"Whether email alert when safe upgrade failing is enabled","type":"boolean","example":false},"threshold":{"description":"Different in percentage to trigger the email","type":"number","minimum":1,"maximum":100,"example":25},"recipients":{"description":"Recipients of safe upgrade emails.","type":"array","items":{"properties":{"email":{"description":"Email address.","type":"string","format":"email","example":"admin@example.com"},"is_subscribed":{"description":"Whether recipient is subscribed to this email.","type":"boolean","readonly":true,"example":false},"is_pending":{"description":"Whether recipient subscription to this email is pending.","type":"boolean","readonly":true,"example":false}}}}},"required":false},"report_email":{"description":"Report Email configuration.","type":"object","properties":{"interval":{"description":"Interval to send the updates report email","type":"string","enum":["none","all","daily","weekly","monthly"],"example":"all"},"recipients":{"description":"Recipients of updates report emails.","type":"array","items":{"properties":{"email":{"description":"Email address.","type":"string","format":"email","example":"admin@example.com"},"is_subscribed":{"description":"Whether recipient is subscribed to this email.","type":"boolean","readonly":true,"example":false},"is_pending":{"description":"Whether recipient subscription to this email is pending.","type":"boolean","readonly":true,"example":false}}}}},"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/automate\/logs":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/reports":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"name":{"description":"Report Name.","type":"string","required":true},"last_generated":{"description":"Last generated time, based on user timezone, otherwise it will return GMT. Note this can be empty.","type":"string","format":"Y-m-d H:i:s","required":false},"last_generated_utc":{"description":"Last generated time, based on UTC+0. Note this can be empty.","type":"string","format":"Y-m-d H:i:s","required":false},"next_generate":{"description":"Next generate time, based on user timezone.","type":"string","format":"Y-m-d H:i:s","required":false},"next_generate_utc":{"description":"Next generate time, based on UTC+0.","type":"string","format":"Y-m-d H:i:s","required":false},"schedule":{"description":"Report Schedule.","type":"object","properties":{"interval":{"description":"Interval to create new report. Empty when schedule is not enabled.","type":"string","enum":["none","weekly","fortnightly","monthly","quarterly"],"example":"weekly"},"day":{"description":"Day name \/ day of the month.","type":["string","integer"],"example":"sunday"},"time":{"description":"24 hour representation of the schedule. This is based on user timezone.","type":"string","format":"H:i","example":"18:00"}},"required":false},"services":{"description":"Services configuration for this report.","type":"array","items":{"type":"object","properties":{"id":{"description":"Service ID.","type":"string","enum":["updates","security","billing","performance","uptime","seo","backups","analytics","blc","backlinks"],"example":"updates"},"is_enabled":{"description":"Whether this service included in the report content.","type":"boolean","example":false,"required":true},"is_active":{"description":"Whether this service active on this site.","type":"boolean","readonly":true,"example":false}}},"required":true},"content":{"description":"Report content settings \/ customization.","type":"object","properties":{"language":{"description":"Report Language ID.","type":"object","properties":{"id":{"description":"Language ID.","type":"string","default":"en_US","example":"en_US","required":true},"name":{"description":"Language Name.","type":"string","readonly":true,"example":"English (United States)"},"percent_translated":{"description":"Language translated percentage.","type":"number","readonly":true,"example":100}}},"multisite":{"description":"Multisite settings of this report.","type":"object","properties":{"type":{"description":"Multisite Type report","type":"string","enum":["","network","primary","subsite"],"example":""},"subsite_url":{"description":"Subsite url for this report refer to.","type":"string","format":"uri","example":"https:\/\/subsite.example.org"},"subsite_id":{"description":"Subsite ID for this report refer to.","type":"integer","minimum":0,"default":0,"example":""}}},"title":{"description":"Title. This show in front page of report content.","type":"string","required":true,"default":"Activity report for {{domain}}","example":"Activity report for {{domain}}"},"summary":{"description":"Summary. This show in front page of report content, below the title.","type":"string","default":"","example":""},"type":{"description":"Report content type. This will control how much detail will show in report content.","type":"string","enum":["detailed","summary"],"default":"detailed","example":"summary"},"brand_logo":{"description":"Brand Logo. Pass as file to update. This will show near the report title on front page.","type":"object","properties":{"original_url":{"description":"Original size URL.","type":"string","example":"https:\/\/wpmudev.com\/wp-content\/uploads\/brand_logo.png"},"thumb_url":{"description":"Thumbnail size URL.","type":"string","example":"https:\/\/wpmudev.com\/wp-content\/uploads\/brand_logo.png"}}},"brand_color":{"description":"Brand Hex color. This will be half of the background color on report front page.","type":"string","default":"#17a8e3","example":"#17a8e3"},"font_color":{"description":"Font Hex color. This will be font color on the front page.","type":"string","default":"#fff","example":"#fff"},"date_format":{"description":"Date format setting. Displayed in front page. https:\/\/wpmudev.com\/docs\/getting-started\/hub-reports\/#dateformat","type":"string","default":"MMMM DD, YYYY [at] h:mma","example":"MMMM DD, YYYY [at] h:mma"},"filename":{"description":"This will be part of filename report_{filename}_time_uniq.pdf","type":"string","default":""}},"required":true},"email":{"description":"Report email settings \/ customization.","type":"object","properties":{"sender_name":{"description":"Sender name","type":"string","required":false,"example":"Some Website"},"reply_to":{"description":"Reply to email","type":"string","format":"email","required":false,"example":"replyto@example.org"},"subject":{"description":"Email subject","type":"string","example":"Activity Report for {{domain}}"},"body":{"description":"Email body","type":"string","example":"Hi there,\\n\\nPlease find attached to this email your full website activity report for {{domain}}.\\n\\nKind regards,\\n{{senderName}}."},"time_format":{"description":"Time format used for {{reportTime}}","type":"string","example":"h:mma"},"date_format":{"description":"Date format used for {{reportDate}}","type":"string","example":"MMMM DD, YYYY"}},"required":true},"recipients":{"description":"Recipients of report emails.","type":"array","items":{"type":"object","properties":{"email":{"description":"Email address.","type":"string","format":"email","required":false,"example":"admin@example.com"},"is_subscribed":{"description":"Whether recipient is subscribed to this email.","type":"boolean","readonly":true,"example":false},"is_pending":{"description":"Whether recipient subscription to this email is pending.","type":"boolean","readonly":true,"example":false}}},"required":false},"email_sender":{"description":"Where emails are sent from","type":"object","properties":{"type":{"description":"The Type of Email Sender","type":"string","enum":["site-reports","thc","custom-smtp"],"example":"site-reports"},"id":{"description":"The ID of the Email Sender","type":"number","example":1}},"required":false},"send_now":{"description":"Whether also generate and send report immediately.","type":"boolean","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/reports\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","DELETE","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"report_id":{"description":"Report identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"report_id":{"description":"Report identifier","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"report_id":{"description":"Report identifier","type":"integer","minimum":1,"required":true},"name":{"description":"Report Name.","type":"string","required":false},"last_generated":{"description":"Last generated time, based on user timezone, otherwise it will return GMT. Note this can be empty.","type":"string","format":"Y-m-d H:i:s","required":false},"last_generated_utc":{"description":"Last generated time, based on UTC+0. Note this can be empty.","type":"string","format":"Y-m-d H:i:s","required":false},"next_generate":{"description":"Next generate time, based on user timezone.","type":"string","format":"Y-m-d H:i:s","required":false},"next_generate_utc":{"description":"Next generate time, based on UTC+0.","type":"string","format":"Y-m-d H:i:s","required":false},"schedule":{"description":"Report Schedule.","type":"object","properties":{"interval":{"description":"Interval to create new report. Empty when schedule is not enabled.","type":"string","enum":["none","weekly","fortnightly","monthly","quarterly"],"example":"weekly"},"day":{"description":"Day name \/ day of the month.","type":["string","integer"],"example":"sunday"},"time":{"description":"24 hour representation of the schedule. This is based on user timezone.","type":"string","format":"H:i","example":"18:00"}},"required":false},"services":{"description":"Services configuration for this report.","type":"array","items":{"type":"object","properties":{"id":{"description":"Service ID.","type":"string","enum":["updates","security","billing","performance","uptime","seo","backups","analytics","blc","backlinks"],"example":"updates"},"is_enabled":{"description":"Whether this service included in the report content.","type":"boolean","example":false,"required":true},"is_active":{"description":"Whether this service active on this site.","type":"boolean","readonly":true,"example":false}}},"required":false},"content":{"description":"Report content settings \/ customization.","type":"object","properties":{"language":{"description":"Report Language ID.","type":"object","properties":{"id":{"description":"Language ID.","type":"string","default":"en_US","example":"en_US","required":true},"name":{"description":"Language Name.","type":"string","readonly":true,"example":"English (United States)"},"percent_translated":{"description":"Language translated percentage.","type":"number","readonly":true,"example":100}}},"multisite":{"description":"Multisite settings of this report.","type":"object","properties":{"type":{"description":"Multisite Type report","type":"string","enum":["","network","primary","subsite"],"example":""},"subsite_url":{"description":"Subsite url for this report refer to.","type":"string","format":"uri","example":"https:\/\/subsite.example.org"},"subsite_id":{"description":"Subsite ID for this report refer to.","type":"integer","minimum":0,"default":0,"example":""}}},"title":{"description":"Title. This show in front page of report content.","type":"string","required":true,"default":"Activity report for {{domain}}","example":"Activity report for {{domain}}"},"summary":{"description":"Summary. This show in front page of report content, below the title.","type":"string","default":"","example":""},"type":{"description":"Report content type. This will control how much detail will show in report content.","type":"string","enum":["detailed","summary"],"default":"detailed","example":"summary"},"brand_logo":{"description":"Brand Logo. Pass as file to update. This will show near the report title on front page.","type":"object","properties":{"original_url":{"description":"Original size URL.","type":"string","example":"https:\/\/wpmudev.com\/wp-content\/uploads\/brand_logo.png"},"thumb_url":{"description":"Thumbnail size URL.","type":"string","example":"https:\/\/wpmudev.com\/wp-content\/uploads\/brand_logo.png"}}},"brand_color":{"description":"Brand Hex color. This will be half of the background color on report front page.","type":"string","default":"#17a8e3","example":"#17a8e3"},"font_color":{"description":"Font Hex color. This will be font color on the front page.","type":"string","default":"#fff","example":"#fff"},"date_format":{"description":"Date format setting. Displayed in front page. https:\/\/wpmudev.com\/docs\/getting-started\/hub-reports\/#dateformat","type":"string","default":"MMMM DD, YYYY [at] h:mma","example":"MMMM DD, YYYY [at] h:mma"},"filename":{"description":"This will be part of filename report_{filename}_time_uniq.pdf","type":"string","default":""}},"required":false},"email":{"description":"Report email settings \/ customization.","type":"object","properties":{"sender_name":{"description":"Sender name","type":"string","required":false,"example":"Some Website"},"reply_to":{"description":"Reply to email","type":"string","format":"email","required":false,"example":"replyto@example.org"},"subject":{"description":"Email subject","type":"string","example":"Activity Report for {{domain}}"},"body":{"description":"Email body","type":"string","example":"Hi there,\\n\\nPlease find attached to this email your full website activity report for {{domain}}.\\n\\nKind regards,\\n{{senderName}}."},"time_format":{"description":"Time format used for {{reportTime}}","type":"string","example":"h:mma"},"date_format":{"description":"Date format used for {{reportDate}}","type":"string","example":"MMMM DD, YYYY"}},"required":false},"recipients":{"description":"Recipients of report emails.","type":"array","items":{"type":"object","properties":{"email":{"description":"Email address.","type":"string","format":"email","required":false,"example":"admin@example.com"},"is_subscribed":{"description":"Whether recipient is subscribed to this email.","type":"boolean","readonly":true,"example":false},"is_pending":{"description":"Whether recipient subscription to this email is pending.","type":"boolean","readonly":true,"example":false}}},"required":false},"email_sender":{"description":"Where emails are sent from","type":"object","properties":{"type":{"description":"The Type of Email Sender","type":"string","enum":["site-reports","thc","custom-smtp"],"example":"site-reports"},"id":{"description":"The ID of the Email Sender","type":"number","example":1}},"required":false},"send_now":{"description":"Whether also generate and send report immediately.","type":"boolean","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/reports\/scheduled":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/reports\/languages":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/reports\/thc-senders":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/reports\/histories":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/reports\/(?P[\\d]+)\/histories":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"report_id":{"description":"Report identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/reports\/(?P[\\d]+)\/histories\/(?P[\\w\\-\\_\\.]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"report_id":{"description":"Report identifier","type":"integer","minimum":1,"required":true},"history_id":{"description":"History identifier","type":"string","required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/reports\/(?P[\\d]+)\/histories\/(?P[\\w\\-\\_\\.]+)\/download":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"report_id":{"description":"Report identifier","type":"integer","minimum":1,"required":true},"history_id":{"description":"History identifier","type":"string","required":true},"_wpnonce":{"description":"Optional nonce for download via WPMU DEV HUB. To download via API use HTTP_AUTHORIZATION.","type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/reports\/(?P[\\d]+)\/latest-history\/send":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"report_id":{"description":"Report identifier","type":"integer","minimum":1,"required":true},"sender_name":{"description":"Sender name","type":"string","default":"WPMU DEV","required":false},"reply_to":{"description":"Reply to email","type":"string","format":"email","default":"noreply@wpmudev.org","required":false},"subject":{"description":"Email subject","type":"string","required":true},"body":{"description":"Email body","type":"string","required":true},"recipients":{"description":"Recipients.","type":"array","items":{"type":"object","properties":{"email":{"description":"Email address.","type":"string","format":"email","example":"admin@example.com"}}},"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/reports\/schedule-preview":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"report_id":{"description":"Report identifier","type":"integer","minimum":1,"required":false},"schedule":{"description":"Report Schedule.","type":"object","properties":{"interval":{"description":"Interval to create new report. Empty when schedule is not enabled.","type":"string","enum":["none","weekly","fortnightly","monthly","quarterly"],"example":"weekly"},"day":{"description":"Day name \/ day of the month.","type":["string","integer"],"example":"sunday"},"time":{"description":"24 hour representation of the schedule. This is based on user timezone.","type":"string","format":"H:i","example":"18:00"}},"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/ignore-updates":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/skip-setup":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"is_setup_skipped":{"description":"Whether setup skipped","type":"boolean","default":true,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/client":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"role":{"description":"Role Detail","type":"object","properties":{"id":{"description":"Role ID","type":"string","example":"","context":["list","view","edit"]}},"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/client\/send-invite":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/subscriptions":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"role_id":{"description":"Filter by role ID.","type":"string","format":"text-field","required":false},"status":{"type":"array","items":{"type":"string"},"required":false},"domain":{"description":["Filter subscriptions by domain.","wpmudev"],"type":"string","required":false}}},{"methods":["POST"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"client_id":{"description":"Client ID ( required if site doesn't have client )","type":"integer","default":null,"required":false},"items":{"type":"array","items":{"type":"object","properties":{"plan":{"type":"object","properties":{"id":{"type":"integer","required":true}},"required":true},"quantity":{"type":"integer","required":true,"minimum":1}}},"required":false},"taxes":{"type":"array","uniqueItems":true,"maxItems":5,"items":{"type":"object","properties":{"id":{"description":"Tax Rate ID","type":"integer","required":true}}},"required":false},"invoice_note":{"description":"Invoice note","type":["null","string"],"default":null,"required":false},"is_send_invoice":{"description":"Whether to send invoice directly","type":"boolean","default":false,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/subscriptions\/invoice-pdf-preview":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"client_id":{"description":"Client ID ( required if site doesn't have client )","type":"integer","default":null,"required":false},"items":{"type":"array","minItems":1,"items":{"type":"object","properties":{"plan":{"type":"object","properties":{"id":{"type":"integer","required":true}},"required":true},"quantity":{"type":"integer","required":true,"minimum":1}}},"required":true},"taxes":{"type":"array","uniqueItems":true,"maxItems":5,"items":{"type":"object","properties":{"id":{"description":"Tax Rate ID","type":"integer","required":true}}},"required":false},"invoice_note":{"description":"Invoice note","type":["null","string"],"default":null,"required":false},"invoice_id":{"description":"Invoice ID. If the context is editing draft.","type":["null","integer"],"default":null,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/subscriptions\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/subscriptions\/(?P[\\d]+)\/cancel":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/subscriptions\/(?P[\\d]+)\/request-cancel":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/subscriptions\/(?P[\\d]+)\/reactivate":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/one-time-products":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"role_id":{"description":"Filter by role ID.","type":"string","format":"text-field","required":false},"status":{"description":"Filter by status.","type":"string","format":"text-field","enum":["active","inactive","pending"],"required":false},"domain":{"description":["Filter subscriptions by domain.","wpmudev"],"type":"string","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/one-time-products\/(?P[\\d]+)\/re-bill":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"one_time_product_id":{"description":"One Time Product ID","type":"integer","minimum":1,"required":true},"invoice_note":{"description":"Invoice note","type":["null","string"],"default":null,"required":false},"is_send_invoice":{"description":"Whether to send invoice directly","type":"boolean","default":true,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/invoices":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"created_on":{"description":["Filter invoices by date its created. Format \"Y-m-d\".","wpmudev"],"type":"string","pattern":"^[\\d]{4}[-][\\d]{2}[-][\\d]{2}$","required":false},"status":{"description":["Filter invoices by status. Support multiple.","wpmudev"],"type":"array","items":{"type":"string","enum":["draft","payment-due","open","paid","uncollectible","void","refunded","failed"],"example":"payment-due"},"required":false},"domain":{"description":["Filter invoices by Domain.","wpmudev"],"type":"string","required":false},"plan_id":{"description":["Filter invoices by Plan ID. Support multiple.","wpmudev"],"type":"array","items":{"type":"integer","example":1},"required":false},"subscription_id":{"description":["Filter invoices by Subscription ID.","wpmudev"],"type":"integer","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/invoices\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true},"items":{"type":"array","minItems":1,"items":{"type":"object","properties":{"plan":{"type":"object","properties":{"id":{"type":"integer","required":true}},"required":true},"quantity":{"type":"integer","required":true,"minimum":1}}},"required":true},"taxes":{"type":"array","uniqueItems":true,"maxItems":5,"items":{"type":"object","properties":{"id":{"description":"Tax Rate ID","type":"integer","required":true}}},"required":false},"invoice_note":{"description":"Invoice note","type":["null","string"],"default":null,"required":false},"is_send_invoice":{"description":"Whether to send invoice directly","type":"boolean","default":false,"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/invoices\/(?P[\\d]+)\/download":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/invoices\/(?P[\\d]+)\/mark-as-paid":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true},"method":{"description":"Payment method","type":"string","enum":["cash","check","bank_transfer","other"],"required":true},"reference":{"description":"Payment reference","type":"string","required":false},"date":{"description":"Payment date","type":"string","pattern":"^[\\d]{4}[-][\\d]{2}[-][\\d]{2}$","required":false},"is_send_receipt":{"description":"Whether to send receipt to client","type":"boolean","default":false,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/invoices\/(?P[\\d]+)\/mark-as-void":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true},"is_cancel_subscription":{"description":"Whether to cancel attached subscription.","type":"boolean","default":false,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/invoices\/(?P[\\d]+)\/refund":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true},"amount":{"description":"Refund amount, optional. Default is full amount","type":"number","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/invoices\/(?P[\\d]+)\/pay":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/invoices\/(?P[\\d]+)\/pay-intent-success":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/invoices\/(?P[\\d]+)\/pay-intent-error":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/invoices\/(?P[\\d]+)\/send-email":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/clients":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"role_id":{"description":"Filter by role ID.","type":"string","format":"text-field","required":false},"status":{"description":"Filter by status.","type":"string","format":"text-field","enum":["active","inactive","pending"],"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/products":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":1000,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort products by object attribute.","type":"string","default":"product_id","enum":["product_id","name","created_on"],"required":false},"ids":{"description":"Filter by IDs.","type":"array","items":{"type":"integer"},"required":false},"is_archived_products":{"description":"Filter the results.","type":["boolean","null"],"default":null,"required":false},"is_archived_plans":{"description":"Filter the plan results.","type":["boolean","null"],"default":null,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/clients\/roles":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"role_id":{"description":"Filter by role ID.","type":"string","format":"text-field","required":false},"status":{"description":"Filter by status.","type":"string","format":"text-field","enum":["active","inactive","pending"],"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/billing\/tax-rates":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site ID","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"is_active":{"description":"Filter the results based on active status.","type":["boolean","null"],"default":null,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/blc":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"update_process_links_from_plugin":{"description":"Whether to check plugins process.","type":"boolean","default":false,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/blc\/scan":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/blc\/broken-links\/export":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/blc\/schedule":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/blc\/ignored-links":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"links":{"description":"Links list to add.","type":"array","items":{"type":"string","format":"uri"},"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"links":{"description":"Links list to remove.","type":"array","items":{"type":"string","format":"uri"},"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/blc\/ignored-links\/all":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/blc\/broken-links":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"link":{"description":"BLC broken link that being edited.","type":"string","format":"uri","required":true},"new_link":{"description":"BLC new link after edit.","type":"string","format":"uri","required":true},"full_site":{"description":"Whether to edit the link on the full site.","type":"boolean","default":false,"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"link":{"description":"BLC broken link that will be unlinked.","type":"string","format":"uri","required":true},"full_site":{"description":"Whether to edit the link on the full site.","type":"boolean","default":false,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/blc\/options":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"denormalize":{"description":"Controls whether or not to normalize query variables from the URLs.","type":"boolean","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"denormalize":{"description":"Controls whether or not to normalize query variables from the URLs.","type":"boolean","required":false}}}]},"\/hub\/v1\/hosting\/sites":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort sites by object attribute.","type":"string","default":"domain","enum":["domain","id"],"required":false},"filter":{"description":"Filter results by statuses.","type":"array","default":[],"items":{"type":"string","enum":["loading","active","clone_pending"]},"required":false}}},{"methods":["POST"],"args":{"backups":{"description":"Hosting Backups type.","type":"string","required":false},"temp_domain":{"description":"Temporary Domain","type":"string","format":"text-field","required":true},"email":{"description":"WP admin email","type":"string","format":"email","required":true},"username":{"description":"WP Admin username","type":"string","format":"text-field","required":true},"password":{"description":"WP admin Password","type":"string","format":"text-field","minLength":8,"required":true},"region":{"description":"DEV Hosting Region","type":"string","enum":["atl","ord","dfw","lax","mia","ewr","sea","sjc","mex","yto","ams","fra","lhr","cdg","mad","man","sto","waw","icn","sgp","nrt","itm","blr","bom","del","tlv","syd","mel","jnb","scl"],"required":true},"multisite":{"description":"Whether use multisite","type":"string","enum":["subdomain","subdirectory"],"required":false},"check":{"description":"Check step ?","type":"integer","enum":[0,1,2,3],"default":0,"required":true},"plan":{"description":"Hosting site plan.","type":"string","enum":["s-1vcpu-512mb-10gb","s-1vcpu-1gb","vhf-1c-1gb","vhf-1c-2gb","s-2vcpu-2gb","vhf-2c-2gb","vhf-2c-4gb","s-4vcpu-8gb","vhf-4c-16gb","s-6vcpu-16gb","vhf-6c-24gb","s-8vcpu-32gb","vhf-8c-32gb","s-16vcpu-64gb","s-20vcpu-96gb","s-24vcpu-128gb","s-32vcpu-192gb",""],"default":"","required":false},"period":{"description":"Period.","type":"integer","enum":[1,12],"default":1,"required":false},"addons":{"description":"Hosting site addons.","type":"array","items":{"type":"string","enum":["proactive-monitoring","hourly-backups"]},"default":[],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/sites"}]}},"\/hub\/v1\/hosting\/sites\/(?P[\\w-]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting\/sites\/validity\/temp_domain":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"temp_domain":{"description":"Temporary Domain","type":"string","format":"text-field","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/sites\/validity\/temp_domain"}]}},"\/hub\/v1\/hosting\/sites\/create\/checkout\/complete":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/sites\/create\/checkout\/complete"}]}},"\/hub\/v1\/hosting\/sites\/create\/checkout\/error":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/sites\/create\/checkout\/error"}]}},"\/hub\/v1\/hosting\/sites\/create\/checkout\/pending":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/sites\/create\/checkout\/pending"}]}},"\/hub\/v1\/hosting\/sites\/migrate":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"backups":{"description":"Hosting Backups type.","type":"string","required":false},"temp_domain":{"description":"Temporary Domain","type":"string","format":"text-field","required":true},"region":{"description":"DEV Hosting Region","type":"string","enum":["atl","ord","dfw","lax","mia","ewr","sea","sjc","mex","yto","ams","fra","lhr","cdg","mad","man","sto","waw","icn","sgp","nrt","itm","blr","bom","del","tlv","syd","mel","jnb","scl"],"required":true},"check":{"description":"Check step ?","type":"integer","enum":[0,1,2,3],"default":0,"required":true},"plan":{"description":"Hosting site plan.","type":"string","enum":["s-1vcpu-512mb-10gb","s-1vcpu-1gb","vhf-1c-1gb","vhf-1c-2gb","s-2vcpu-2gb","vhf-2c-2gb","vhf-2c-4gb","s-4vcpu-8gb","vhf-4c-16gb","s-6vcpu-16gb","vhf-6c-24gb","s-8vcpu-32gb","vhf-8c-32gb","s-16vcpu-64gb","s-20vcpu-96gb","s-24vcpu-128gb","s-32vcpu-192gb",""],"default":"","required":false},"period":{"description":"Period.","type":"integer","enum":[1,12],"default":1,"required":false},"addons":{"description":"Hosting site addons.","type":"array","items":{"type":"string","enum":["proactive-monitoring","hourly-backups"]},"default":[],"required":false},"site_id":{"description":"HUB Site Identifier.","type":"integer","minimum":1,"required":true},"site_url":{"description":"HUB Site URL.","type":"string","format":"uri","required":false},"is_manual":{"description":"Whether migrate manual or not.","type":"boolean","default":false,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/sites\/migrate"}]}},"\/hub\/v1\/hosting\/sites\/migrate\/available-sites":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/sites\/migrate\/available-sites"}]}},"\/hub\/v1\/hosting\/sites\/clone":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"temp_domain":{"description":"Temporary Domain","type":"string","format":"text-field","required":true},"region":{"description":"DEV Hosting Region","type":"string","enum":["atl","ord","dfw","lax","mia","ewr","sea","sjc","mex","yto","ams","fra","lhr","cdg","mad","man","sto","waw","icn","sgp","nrt","itm","blr","bom","del","tlv","syd","mel","jnb","scl"],"required":true},"check":{"description":"Check step ?","type":"integer","enum":[0,1,2,3],"default":0,"required":true},"plan":{"description":"Hosting site plan.","type":"string","enum":["s-1vcpu-512mb-10gb","s-1vcpu-1gb","vhf-1c-1gb","vhf-1c-2gb","s-2vcpu-2gb","vhf-2c-2gb","vhf-2c-4gb","s-4vcpu-8gb","vhf-4c-16gb","s-6vcpu-16gb","vhf-6c-24gb","s-8vcpu-32gb","vhf-8c-32gb","s-16vcpu-64gb","s-20vcpu-96gb","s-24vcpu-128gb","s-32vcpu-192gb",""],"default":"","required":false},"period":{"description":"Period.","type":"integer","enum":[1,12],"default":1,"required":false},"addons":{"description":"Hosting site addons.","type":"array","items":{"type":"string","enum":["proactive-monitoring","hourly-backups"]},"default":[],"required":false},"site_id":{"description":"HUB Site Identifier.","type":"integer","minimum":1,"required":false},"hosting_site_id":{"description":"Hosting Site ID.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/sites\/clone"}]}},"\/hub\/v1\/hosting\/sites\/clone\/available-sites":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/sites\/clone\/available-sites"}]}},"\/hub\/v1\/hosting\/sites\/clone-template":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"temp_domain":{"description":"Temporary Domain","type":"string","format":"text-field","required":true},"region":{"description":"DEV Hosting Region","type":"string","enum":["atl","ord","dfw","lax","mia","ewr","sea","sjc","mex","yto","ams","fra","lhr","cdg","mad","man","sto","waw","icn","sgp","nrt","itm","blr","bom","del","tlv","syd","mel","jnb","scl"],"required":true},"check":{"description":"Check step ?","type":"integer","enum":[0,1,2,3],"default":0,"required":true},"plan":{"description":"Hosting site plan.","type":"string","enum":["s-1vcpu-512mb-10gb","s-1vcpu-1gb","vhf-1c-1gb","vhf-1c-2gb","s-2vcpu-2gb","vhf-2c-2gb","vhf-2c-4gb","s-4vcpu-8gb","vhf-4c-16gb","s-6vcpu-16gb","vhf-6c-24gb","s-8vcpu-32gb","vhf-8c-32gb","s-16vcpu-64gb","s-20vcpu-96gb","s-24vcpu-128gb","s-32vcpu-192gb",""],"default":"","required":false},"period":{"description":"Period.","type":"integer","enum":[1,12],"default":1,"required":false},"addons":{"description":"Hosting site addons.","type":"array","items":{"type":"string","enum":["proactive-monitoring","hourly-backups"]},"default":[],"required":false},"hosting_site_id":{"description":"Hosting Site ID.","type":"string","required":false},"backups":{"description":"Hosting Backups type.","type":"string","default":"nightly","enum":["nightly","hourly"],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/sites\/clone-template"}]}},"\/hub\/v1\/hosting\/sites\/clone-templates\/available-sites":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort templates by object attribute.","type":"string","default":"menu_order","enum":["title","created_time","menu_order"],"required":false},"themes":{"description":"Filter results by themes.","type":"array","default":[],"items":{"type":"string"},"required":false},"builders":{"description":"Filter results by builders.","type":"array","default":[],"items":{"type":"string"},"required":false},"categories":{"description":"Filter by categories.","type":"array","default":[],"items":{"type":"string"},"required":false},"is_premium":{"description":"Filter by Premium or Basic.","type":"boolean","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/sites\/clone-templates\/available-sites"}]}},"\/hub\/v1\/hosting\/sites\/clone-templates\/favorite":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"template_id":{"description":"Template site id","type":"string","required":true}}},{"methods":["DELETE"],"args":{"template_id":{"description":"Template site id","type":"array","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/sites\/clone-templates\/favorite"}]}},"\/hub\/v1\/hosting\/sites\/clone-user-template":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"temp_domain":{"description":"Temporary Domain","type":"string","format":"text-field","required":true},"region":{"description":"DEV Hosting Region","type":"string","enum":["atl","ord","dfw","lax","mia","ewr","sea","sjc","mex","yto","ams","fra","lhr","cdg","mad","man","sto","waw","icn","sgp","nrt","itm","blr","bom","del","tlv","syd","mel","jnb","scl"],"required":true},"check":{"description":"Check step ?","type":"integer","enum":[0,1,2,3],"default":0,"required":true},"plan":{"description":"Hosting site plan.","type":"string","enum":["s-1vcpu-512mb-10gb","s-1vcpu-1gb","vhf-1c-1gb","vhf-1c-2gb","s-2vcpu-2gb","vhf-2c-2gb","vhf-2c-4gb","s-4vcpu-8gb","vhf-4c-16gb","s-6vcpu-16gb","vhf-6c-24gb","s-8vcpu-32gb","vhf-8c-32gb","s-16vcpu-64gb","s-20vcpu-96gb","s-24vcpu-128gb","s-32vcpu-192gb",""],"default":"","required":false},"period":{"description":"Period.","type":"integer","enum":[1,12],"default":1,"required":false},"addons":{"description":"Hosting site addons.","type":"array","items":{"type":"string","enum":["proactive-monitoring","hourly-backups"]},"default":[],"required":false},"user_template_id":{"description":"User Template Identifier.","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/sites\/clone-user-template"}]}},"\/hub\/v1\/hosting\/clone-user-templates":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":25,"minimum":1,"maximum":100,"required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Template.id","type":"string","required":true},"title":{"description":"Template title.","type":"string","format":"text-field","maxLength":50,"required":false},"description":{"description":"Template Description.","type":"string","format":"textarea-field","maxLength":150,"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Template.id","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/clone-user-templates"}]}},"\/hub\/v1\/hosting\/clone-user-templates\/queue":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/clone-user-templates\/queue"}]}},"\/hub\/v1\/hosting\/clone-user-templates\/queue\/(?P[\\w-]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"site_id":{"description":"Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting\/random-pass-phrases":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"length":{"description":"Number of phrases.","type":"integer","default":3,"minimum":1,"maximum":5,"required":false},"separator":{"description":"Separator for each phrase.","type":"string","default":".","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/random-pass-phrases"}]}},"\/hub\/v1\/hosting\/plans":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/hosting\/plans"}]}},"\/hub\/v1\/team":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"name":{"description":"Team Name. Used in invitations and the team switcher ","type":"string","format":"text-field","required":false}}},{"methods":["DELETE"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/team"}]}},"\/hub\/v1\/team\/roles":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST"],"args":{"name":{"description":"Role Name","type":"string","format":"text-field","required":true},"capabilities":{"description":"List of capabilities. In category:[ actions ] fashion.","type":"object","properties":{"example_category":{"description":"List of actions.","type":"array","items":{"type":"string","example":"read"}}},"required":true},"is_all_sites":{"default":false,"description":"Flag whether role is able to access all sites","type":"boolean","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/team\/roles"}]}},"\/hub\/v1\/team\/roles\/(?P[\\w-]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Role identifier","type":"string","required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Role identifier","type":"string","required":true},"name":{"description":"Role Name","type":"string","format":"text-field","required":false},"capabilities":{"description":"List of capabilities. In category:[ actions ] fashion.","type":"object","properties":{"example_category":{"description":"List of actions.","type":"array","items":{"type":"string","example":"read"}}},"required":false},"is_all_sites":{"description":"Flag whether role is able to access all sites","type":"boolean","required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Role identifier","type":"string","required":true}}}]},"\/hub\/v1\/team\/members":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST"],"args":{"email":{"description":"Member Email","type":"string","format":"email","required":true},"name":{"description":"Display name for identifier.","type":"string","required":false},"note":{"description":"Note for identifier.","type":"string","required":false},"role":{"description":"Primary Role information.","type":"object","properties":{"id":{"description":"Role identifier","type":"string","enum":["member","limited_member"],"required":true,"example":"member"},"name":{"description":"Role name","type":"string","readonly":true,"example":"Member"},"is_all_sites":{"description":"Flag whether role is able to access all sites.","type":"boolean","example":true},"capabilities":{"description":"List of capabilities. In category:[ actions ] fashion.","type":"object","properties":{"example_category":{"description":"List of actions.","type":"array","items":{"type":"string","example":"read"}}}}},"required":true},"sites":{"description":"Sites that this member has access to.","type":"array","items":{"type":"object","properties":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true,"example":1},"domain":{"description":"Domain","type":"string","format":"domain","readonly":true,"example":"example.org"},"home_url":{"description":"Home URL","type":"string","format":"url","readonly":true,"example":"https:\/\/example.org\/"}}},"required":true},"lc_support_plan":{"description":"LiveChat support access plan.","type":"string","required":false},"lc_support_action":{"description":"LiveChat support checkout action.","type":"string","enum":["add","change_plan","cancel","reactivate"],"required":false},"lc_support_check":{"description":"LiveChat support checkout check.","type":"integer","required":false},"is_send_invite":{"description":"Whether to send invite as email","type":"boolean","default":true,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/team\/members"}]}},"\/hub\/v1\/team\/members\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Member identifier","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Member identifier","type":"integer","minimum":1,"required":true},"email":{"description":"Member Email","type":"string","format":"email","required":false},"name":{"description":"Display name for identifier.","type":"string","required":false},"note":{"description":"Note for identifier.","type":"string","required":false},"role":{"description":"Primary Role information.","type":"object","properties":{"id":{"description":"Role identifier","type":"string","enum":["member","limited_member"],"required":true,"example":"member"},"name":{"description":"Role name","type":"string","readonly":true,"example":"Member"},"is_all_sites":{"description":"Flag whether role is able to access all sites.","type":"boolean","example":true},"capabilities":{"description":"List of capabilities. In category:[ actions ] fashion.","type":"object","properties":{"example_category":{"description":"List of actions.","type":"array","items":{"type":"string","example":"read"}}}}},"required":false},"sites":{"description":"Sites that this member has access to.","type":"array","items":{"type":"object","properties":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true,"example":1},"domain":{"description":"Domain","type":"string","format":"domain","readonly":true,"example":"example.org"},"home_url":{"description":"Home URL","type":"string","format":"url","readonly":true,"example":"https:\/\/example.org\/"}}},"required":false},"lc_support_plan":{"description":"LiveChat support access plan.","type":"string","required":false},"lc_support_action":{"description":"LiveChat support checkout action.","type":"string","enum":["add","change_plan","cancel","reactivate"],"required":false},"lc_support_check":{"description":"LiveChat support checkout check.","type":"integer","required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Member identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/team\/members\/invitations":{"namespace":"hub\/v1","methods":["GET","POST","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"email":{"description":"Email Address","type":"string","format":"email","required":true}}},{"methods":["POST"],"args":{"email":{"description":"Email Address","type":"string","format":"email","required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"email":{"description":"Member Email","type":"string","format":"email","required":false},"name":{"description":"Display name for identifier.","type":"string","required":false},"note":{"description":"Note for identifier.","type":"string","required":false},"role":{"description":"Primary Role information.","type":"object","properties":{"id":{"description":"Role identifier","type":"string","enum":["member","limited_member"],"required":true,"example":"member"},"name":{"description":"Role name","type":"string","readonly":true,"example":"Member"},"is_all_sites":{"description":"Flag whether role is able to access all sites.","type":"boolean","example":true},"capabilities":{"description":"List of capabilities. In category:[ actions ] fashion.","type":"object","properties":{"example_category":{"description":"List of actions.","type":"array","items":{"type":"string","example":"read"}}}}},"required":false},"sites":{"description":"Sites that this member has access to.","type":"array","items":{"type":"object","properties":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true,"example":1},"domain":{"description":"Domain","type":"string","format":"domain","readonly":true,"example":"example.org"},"home_url":{"description":"Home URL","type":"string","format":"url","readonly":true,"example":"https:\/\/example.org\/"}}},"required":false},"lc_support_plan":{"description":"LiveChat support access plan.","type":"string","required":false},"lc_support_action":{"description":"LiveChat support checkout action.","type":"string","enum":["add","change_plan","cancel","reactivate"],"required":false},"lc_support_check":{"description":"LiveChat support checkout check.","type":"integer","required":false}}},{"methods":["DELETE"],"args":{"email":{"description":"Email Address","type":"string","format":"email","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/team\/members\/invitations"}]}},"\/hub\/v1\/team\/sites-members":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/team\/sites-members"}]}},"\/hub\/v1\/team\/sites-members\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","POST","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"email":{"description":"Email address","type":"string","format":"email","required":true},"role":{"description":"Primary Role information.","type":"object","properties":{"id":{"description":"Role identifier","type":"string","enum":["member","limited_member"],"required":true,"example":"member"}},"required":false},"is_send_invite":{"description":"Whether to send invite as email","type":"boolean","default":true,"required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"users":{"description":"Multiple Users object","type":"array","items":{"type":"object","properties":{"email":{"description":"Email address","type":"string","format":"email","example":"user@example.org","required":true},"role":{"description":"Primary Role information.","type":"object","required":false,"properties":{"id":{"description":"Role identifier","type":"string","enum":["member","limited_member"],"required":true,"example":"member"}}},"is_send_invite":{"description":"Whether to send invite as email","type":"boolean","default":true}}},"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"email":{"description":"Email address","type":"string","format":"email","required":true}}}]},"\/hub\/v1\/notifications":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"types":{"description":"Notification type.","type":"array","items":{"type":"string","enum":["global-notice","new-blog-post","new-comic-post","new-hero-points","new-reputation-points","rank-leveled-up","wpmudev-update-released","repo-update-released","wp-core-update-released","new-referral-signed-up","uptime-site-up","uptime-site-down","site-blacklisted","site-un-blacklisted","site-uptime-disabled","new-forum-comment","new-forum-reply","new-support-comment","new-support-reply","automate-package-updated","automate-wp-core-updated","smush-cdn-disabled","new-dotw-post"]},"default":[],"required":false},"is_unread":{"description":"Whether to fetch unread only.","type":"boolean","default":false,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/notifications"}]}},"\/hub\/v1\/notifications\/mark-all-as-read":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/notifications\/mark-all-as-read"}]}},"\/hub\/v1\/releases":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"categories_slug":{"description":"Limit result set to releases with one or more specific categories slugs.","type":"array","items":{"type":"string"},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/releases"}]}},"\/hub\/v1\/domains":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":9223372036854775807,"minimum":1,"maximum":9223372036854775807,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"orderby":{"description":"Sort domains by object attribute.","type":"string","default":"id","enum":["id","domain"],"required":false},"order":{"description":"Sort directions.","type":"string","default":"desc","enum":["asc","desc"],"required":false}}},{"methods":["POST"],"args":{"domain":{"description":"Domain.","type":"string","required":true},"records":{"description":"DNS Records to be added. Optional","type":"array","items":{"type":"object","properties":{"type":{"description":"The type of the DNS record. For example: A, CNAME, TXT, ...","type":"string","example":"NS","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA"]},"name":{"description":"The host name, alias, or service being defined by the record.","type":"string","example":"www"},"data":{"description":"Variable data depending on record type. For example, the \"data\" value for an A record would be the IPv4 address to which the domain will be mapped. For a CAA record, it would contain the domain name of the CA being granted permission to issue certificates.","type":"string","example":"162.10.66.0"},"priority":{"description":"The priority of the host (for SRV and MX records. null otherwise).","type":["null","integer"],"example":null},"port":{"description":"The port that the service is accessible on (for SRV records only. null otherwise).","type":["null","integer"],"minimum":0,"maximum":65535,"example":null},"ttl":{"description":"This value is the time to live for the record, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested. There is a minimum ttl value of 30, unless it is not set. If not set, the default value is the value of the SOA record. For SOA records, defines the time to live for purposes of negative caching.","type":"integer","minimum":30,"maximum":2147483647,"example":1800,"default":43200,"validate_callback":[{},"ttl_arg_validate_callback"]},"weight":{"description":"The weight of records with the same priority (for SRV records only. null otherwise).","type":["null","integer"],"example":null},"flags":{"description":"An unsigned integer between 0-255 used for CAA records.","type":["null","integer"],"example":null},"tag":{"description":"The parameter tag for CAA records. Valid values are \"issue\", \"issuewild\", or \"iodef\"","type":["null","string"],"example":null}}},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domains"}]}},"\/hub\/v1\/domains\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false}}}]},"\/hub\/v1\/domains\/(?P[\\d]+)\/recheck-ns":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false}}}]},"\/hub\/v1\/domains\/(?P[\\d]+)\/public-dns-records":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false}}}]},"\/hub\/v1\/domains\/validity\/domain":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"description":"Domain.","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domains\/validity\/domain"}]}},"\/hub\/v1\/domains\/dns-records":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"description":"Domain.","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domains\/dns-records"}]}},"\/hub\/v1\/domains\/(?P[\\d]+)\/records":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":500,"minimum":1,"maximum":500,"required":false}}},{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"type":{"description":"The type of the DNS record. For example: A, CNAME, TXT, ...","type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA"],"required":true},"name":{"description":"The host name, alias, or service being defined by the record.","type":"string","required":true},"data":{"description":"Variable data depending on record type. For example, the \"data\" value for an A record would be the IPv4 address to which the domain will be mapped. For a CAA record, it would contain the domain name of the CA being granted permission to issue certificates.","type":"string","required":false},"priority":{"description":"The priority of the host (for SRV and MX records. null otherwise).","type":["null","integer"],"required":false},"port":{"description":"The port that the service is accessible on (for SRV records only. null otherwise).","type":["null","integer"],"minimum":0,"maximum":65535,"required":false},"ttl":{"default":43200,"description":"This value is the time to live for the record, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested. There is a minimum ttl value of 30, unless it is not set. If not set, the default value is the value of the SOA record. For SOA records, defines the time to live for purposes of negative caching.","type":"integer","minimum":30,"maximum":2147483647,"required":false},"weight":{"description":"The weight of records with the same priority (for SRV records only. null otherwise).","type":["null","integer"],"required":false},"flags":{"description":"An unsigned integer between 0-255 used for CAA records.","type":["null","integer"],"required":false},"tag":{"description":"The parameter tag for CAA records. Valid values are \"issue\", \"issuewild\", or \"iodef\"","type":["null","string"],"required":false}}}]},"\/hub\/v1\/domains\/(?P[\\d]+)\/records\/import":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"records":{"description":"List of records to be imported.","type":"array","minItems":1,"maxItems":30,"items":{"type":"object","properties":{"type":{"description":"The type of the DNS record. For example: A, CNAME, TXT, ...","type":"string","example":"NS","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA"],"required":true},"name":{"description":"The host name, alias, or service being defined by the record.","type":"string","example":"www","required":true},"data":{"description":"Variable data depending on record type. For example, the \"data\" value for an A record would be the IPv4 address to which the domain will be mapped. For a CAA record, it would contain the domain name of the CA being granted permission to issue certificates.","type":"string","example":"162.10.66.0"},"priority":{"description":"The priority of the host (for SRV and MX records. null otherwise).","type":["null","integer"],"example":null},"port":{"description":"The port that the service is accessible on (for SRV records only. null otherwise).","type":["null","integer"],"minimum":0,"maximum":65535,"example":null},"ttl":{"description":"This value is the time to live for the record, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested. There is a minimum ttl value of 30, unless it is not set. If not set, the default value is the value of the SOA record. For SOA records, defines the time to live for purposes of negative caching.","type":"integer","minimum":30,"maximum":2147483647,"example":1800,"default":43200,"validate_callback":[{},"ttl_arg_validate_callback"]},"weight":{"description":"The weight of records with the same priority (for SRV records only. null otherwise).","type":["null","integer"],"example":null},"flags":{"description":"An unsigned integer between 0-255 used for CAA records.","type":["null","integer"],"example":null},"tag":{"description":"The parameter tag for CAA records. Valid values are \"issue\", \"issuewild\", or \"iodef\"","type":["null","string"],"example":null}}},"required":false}}}]},"\/hub\/v1\/domains\/(?P[\\d]+)\/records\/(?P[a-z0-9-]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"record_id":{"description":"Record ID.","type":"string","format":"uuid","required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"record_id":{"description":"Record ID.","type":"string","format":"uuid","required":true},"type":{"description":"The type of the DNS record. For example: A, CNAME, TXT, ...","type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA"],"required":false},"name":{"description":"The host name, alias, or service being defined by the record.","type":"string","required":false},"data":{"description":"Variable data depending on record type. For example, the \"data\" value for an A record would be the IPv4 address to which the domain will be mapped. For a CAA record, it would contain the domain name of the CA being granted permission to issue certificates.","type":"string","required":false},"priority":{"description":"The priority of the host (for SRV and MX records. null otherwise).","type":["null","integer"],"required":false},"port":{"description":"The port that the service is accessible on (for SRV records only. null otherwise).","type":["null","integer"],"minimum":0,"maximum":65535,"required":false},"ttl":{"description":"This value is the time to live for the record, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested. There is a minimum ttl value of 30, unless it is not set. If not set, the default value is the value of the SOA record. For SOA records, defines the time to live for purposes of negative caching.","type":"integer","minimum":30,"maximum":2147483647,"required":false},"weight":{"description":"The weight of records with the same priority (for SRV records only. null otherwise).","type":["null","integer"],"required":false},"flags":{"description":"An unsigned integer between 0-255 used for CAA records.","type":["null","integer"],"required":false},"tag":{"description":"The parameter tag for CAA records. Valid values are \"issue\", \"issuewild\", or \"iodef\"","type":["null","string"],"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"record_id":{"description":"Record ID.","type":"string","format":"uuid","required":true}}}]},"\/hub\/v1\/team-invitation\/confirm":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hub_invite":{"description":"Invitation hash","type":"string","required":true},"user_email":{"description":"Invited user email","type":"string","format":"email","required":true},"team_id":{"description":"Team ID","type":"integer","required":true},"signup":{"description":"Flag whether to do signup or not. Ignored if signup not required","type":"boolean","required":false},"first_name":{"description":"First name, only on signup","type":"string","required":false},"password":{"description":"Password, only on signup","type":"string","required":false},"agree_tos":{"description":"Flag whether agree to tos or not, must be true. Ignored if signup not required","type":"boolean","required":false},"language":{"description":"User language preference.","type":"object","properties":{"id":{"description":"Language ID","type":"string","format":"text-field","example":"en_US","default":"en_US"},"name":{"description":"Language Display Name","type":"string","format":"text-field","example":"English (United States)","default":"English (United States)"}},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/team-invitation\/confirm"}]}},"\/hub\/v1\/reset-password":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"user_email":{"description":"Username \/ Email to reset password","type":"string","required":false},"google_unlink":{"description":"Do we unlink Google Login","type":"boolean","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/reset-password"}]}},"\/hub\/v1\/reset-password\/confirm":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"key":{"description":"Reset Password Key","type":"string","required":true},"login":{"description":"Username used to login","type":"string","required":true},"password":{"description":"New Password","type":"string","minLength":8,"required":false},"password_confirm":{"description":"New Password Confirmation","type":"string","minLength":8,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/reset-password\/confirm"}]}},"\/hub\/v1\/account\/link-google":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"google_email":{"description":"Email returned from OAuth Request","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/link-google"}]}},"\/hub\/v1\/confirm\/hosting-email-forward":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"email":{"description":"Email","type":"string","format":"email","required":true},"forward_email":{"description":"Forward Email","type":"string","format":"email","required":true},"hosting_site_id":{"description":"Hosting site ID","type":"string","required":true},"hash":{"description":"Confirmation Hash","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/confirm\/hosting-email-forward"}]}},"\/hub\/v1\/projects":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"type":{"description":"Project Type","type":"string","enum":["plugins","themes"],"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[119],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/projects"}]}},"\/hub\/v1\/projects\/(?P[\\d]+)\/download":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Project identifier","type":"integer","minimum":1,"required":true},"version":{"description":"Version","type":"string","required":true}}}]},"\/hub\/v1\/projects-membership":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/projects-membership"}]}},"\/hub\/v1\/app-settings":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/app-settings"}]}},"\/hub\/v1\/package-configs":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"is_official":{"description":"Filter Official configs.","type":"boolean","required":false},"package_id":{"description":"Filter configs by package ID.","type":"string","required":false}}},{"methods":["POST"],"args":{"id":{"description":"Config identifier.","type":"number","required":false},"name":{"description":"Config name.","type":"string","format":"text-field","minLength":1,"pattern":".*\\S.*","required":true},"description":{"description":"Config Description.","type":"string","format":"textarea-field","required":false},"package":{"description":"Package Information.","type":"object","properties":{"id":{"description":"Package ID.","type":"string","format":"text-field","example":"some-package-id"},"name":{"description":"Package Name.","type":"string","format":"text-field","example":"Package Name","readonly":true},"is_dev":{"description":"Whether Package is WPMU DEV Package.","type":"boolean","example":false,"readonly":true}},"required":true},"config":{"description":"String representation of the config in JSON format.","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/package-configs"}]}},"\/hub\/v1\/package-configs\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Config Identifier.","type":"number","required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Config identifier.","type":"number","required":false},"name":{"description":"Config name.","type":"string","format":"text-field","minLength":1,"pattern":".*\\S.*","required":false},"description":{"description":"Config Description.","type":"string","format":"textarea-field","required":false},"package":{"description":"Package Information.","type":"object","properties":{"id":{"description":"Package ID.","type":"string","format":"text-field","example":"some-package-id"},"name":{"description":"Package Name.","type":"string","format":"text-field","example":"Package Name","readonly":true},"is_dev":{"description":"Whether Package is WPMU DEV Package.","type":"boolean","example":false,"readonly":true}},"required":false},"config":{"description":"String representation of the config in JSON format.","type":"string","required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Config Identifier.","type":"number","required":true}}}]},"\/hub\/v1\/wp-org-plugins":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"author":{"description":"Filter by author.","type":"string","required":false},"browse":{"description":"Section to browse","type":"string","enum":["","recommended","popular","featured","new","beta"],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/wp-org-plugins"}]}},"\/hub\/v1\/global-ip-list":{"namespace":"hub\/v1","methods":["GET","PUT","PATCH","POST","DELETE"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["PUT","PATCH"],"args":{"allow_list":{"description":"IP Allow List.","type":"array","items":{"type":"string"},"required":false},"block_list":{"description":"IP Block List.","type":"array","items":{"type":"string"},"required":false}}},{"methods":["POST"],"args":{"allow_list":{"description":"IP Allow List.","type":"array","items":{"type":"string"},"required":false},"block_list":{"description":"IP Block List.","type":"array","items":{"type":"string"},"required":false}}},{"methods":["DELETE"],"args":{"allow_list":{"description":"IP Allow List.","type":"array","items":{"type":"string"},"required":false},"block_list":{"description":"IP Block List.","type":"array","items":{"type":"string"},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/global-ip-list"}]}},"\/hub\/v1\/global-ip-list\/reset":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"keep_allow_list":{"description":"Whether to keep allow list.","type":"boolean","default":false,"required":false},"keep_block_list":{"description":"Whether to keep block list.","type":"boolean","default":false,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/global-ip-list\/reset"}]}},"\/hub\/v1\/export-sites":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/export-sites"}]}},"\/hub\/v1\/forminator-templates":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"is_official":{"description":"Filter official templates.","type":"boolean","required":false},"category":{"description":"Filter templates by category.","type":"string","required":false},"order_by":{"description":"Order results by a field.","type":"string","enum":["is_official","created","name"],"required":false},"order":{"description":"Order.","type":"string","enum":["ASC","DESC"],"required":false}}},{"methods":["POST"],"args":{"template_id":{"description":"Template identifier.","type":"number","required":false},"site_id":{"description":"Site identifier.","type":"number","minimum":1,"required":false},"name":{"description":"Template name.","type":"string","format":"text-field","minLength":1,"pattern":".*\\S.*","required":true},"description":{"description":"Template description.","type":"string","format":"textarea-field","required":false},"config":{"description":"String representation of the config in JSON format.","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/forminator-templates"}]}},"\/hub\/v1\/forminator-templates\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"template_id":{"description":"Template identifier.","type":"number","required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"template_id":{"description":"Template identifier.","type":"number","required":false},"site_id":{"description":"Site identifier.","type":"number","minimum":1,"required":false},"name":{"description":"Template name.","type":"string","format":"text-field","minLength":1,"pattern":".*\\S.*","required":false},"description":{"description":"Template description.","type":"string","format":"textarea-field","required":false},"config":{"description":"String representation of the config in JSON format.","type":"string","required":false}}},{"methods":["DELETE"],"args":{"template_id":{"description":"Template identifier.","type":"number","required":true}}}]},"\/hub\/v1\/forminator-templates\/categories":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/forminator-templates\/categories"}]}},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting":{"namespace":"hub\/v1","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}},{"methods":["DELETE"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"check":{"description":"Check step ?","type":"integer","enum":[0,1],"default":0,"required":true},"is_cancel_billing":{"description":"Whether to remove client, cancel subscriptions and void invoices","type":"boolean","default":false,"required":false},"main_reason":{"description":"Main reason of deleting hosting site.","type":"string","default":"","required":false},"secondary_reason":{"description":"Secondary reason of deleting hosting site.","type":"string","default":"","required":false},"message_reason":{"description":"Expanded reason message of deleting hosting site.","type":"string","default":"","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/refresh":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/user-template":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"title":{"description":"Template title.","type":"string","format":"text-field","maxLength":50,"required":true},"description":{"description":"Template description.","type":"string","format":"textarea-field","maxLength":150,"required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/archive-reactivate":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/waf":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"is_active":{"description":"Whether WAF is active.","type":"boolean","required":true},"ip_blocklist":{"description":"Blocklisted IPs.","type":"array","items":{"type":"string"},"required":false},"ip_allowlist":{"description":"Allowed IPs.","type":"array","items":{"type":"string"},"required":false},"ua_blocklist":{"description":"Blocklisted IPs.","type":"array","items":{"type":"string"},"required":false},"ua_allowlist":{"description":"Allowed IPs.","type":"array","items":{"type":"string"},"required":false},"url_allowlist":{"description":"Allowed URLs.","type":"array","items":{"type":"string","pattern":"^\\\/*((?!-)[a-zA-Z0-9-_]+(?[\\w-]+)\/modules\/hosting\/profiling":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"newrelic":{"type":"object","properties":{"is_active":{"description":"Whether Newrelic monitoring active.","type":"boolean","example":false},"key":{"description":"Newrelic license key.","type":"string","example":""},"app_name":{"description":"Newrelic app name. It will be used as an APM name inside the New Relic dashboard.","type":"string","example":"","maxLength":32}},"required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/accounts":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"username":{"description":"Username.","type":"string","required":true},"type":{"description":"Access type.","type":"string","enum":["ssh","sftp"],"required":true},"environment":{"default":"production","description":"Access environment.","type":"string","enum":["staging","production"],"required":false},"wp_path":{"default":"\/","description":"WP Path restriction.","type":"string","required":false},"auth_type":{"default":"password","description":"Authentication type.","type":"string","enum":["password","ssh_key"],"required":false},"ssh_key":{"description":"SSH Key. Only if auth_type = `ssh_key`","type":"string","required":false},"password":{"description":"Password. Only if auth_type = `password`","type":"string","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/accounts\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true},"auth_type":{"description":"Authentication type.","type":"string","enum":["password","ssh_key"],"required":false},"ssh_key":{"description":"SSH Key. Only if auth_type = `ssh_key`","type":"string","required":false},"password":{"description":"Password. Only if auth_type = `password`","type":"string","required":false}}},{"methods":["DELETE"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/analytics":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"period":{"description":"Period for returned analytics data.","type":"string","enum":["current","week","month","quarter","year"],"default":"month","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/analytics\/backups-overhead":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"period":{"description":"Period for returned analytics data.","type":"string","enum":["current","week","month","quarter","year"],"default":"month","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/backups":{"namespace":"hub\/v1","methods":["POST","GET"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"comment":{"description":"Comment for the backup.","type":"string","required":false}}},{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"time_from":{"description":"Get backups that created between time_from and time_to","type":"string","format":"Y-m-d H:i:s","required":false},"time_to":{"description":"Get backups that created between time_from and time_to","type":"string","format":"Y-m-d H:i:s","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/backups\/date-ranges":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/backups\/(?P[\\w-]+)\/comment":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"backup_id":{"description":"Backup ID","type":"string","required":true},"comment":{"description":"New comment","type":"string","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/backups\/(?P[\\w-]+)\/restore":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"backup_id":{"description":"Backup ID","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/backups\/(?P[\\w-]+)\/download":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/db\/manage":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/domains":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"domain":{"description":"Domain to add.","type":"string","required":true},"with_www":{"description":"Whether to include `www.` version.","type":"boolean","default":false,"required":false},"is_add_dns_records":{"description":"Whether to add to Hub DNS records","type":"boolean","default":false,"required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/domains\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"domain_id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"domain_id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/domains\/(?P[\\d]+)\/primary":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"domain_id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/domains\/(?P[\\d]+)\/check-dns":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"domain_id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/domains\/(?P[\\d]+)\/check-dns-ssl":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"domain_id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/domains\/(?P[\\d]+)\/add-dns-records":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"domain_id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/domains\/(?P[\\d]+)\/mark-dns-record-updated-to-cname":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"domain_id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"mark":{"description":"Mark DNS record as updated to CNAM","type":"boolean","default":true,"required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/email-accounts":{"namespace":"hub\/v1","methods":["GET","POST","DELETE","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}},{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"email":{"description":"Email address.","type":"string","format":"email","required":true},"password":{"description":"Password.","type":"string","required":true}}},{"methods":["DELETE"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"email":{"description":"Email address","type":"string","format":"email","required":true}}},{"methods":["PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"email":{"description":"Email address.","type":"string","format":"email","required":true},"password":{"description":"Password.","type":["null","string"],"required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/email-accounts-alias":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"alias":{"description":"Alias Email address.","type":"string","format":"email","required":true},"destination":{"description":"Destination Email address.","type":"string","format":"email","required":true}}},{"methods":["DELETE"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"alias":{"description":"Alias Email address","type":"string","format":"email","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/email-accounts\/send-test-email":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"email":{"description":"Email address","type":"string","format":"email","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/email-accounts\/check-dns":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/email-accounts\/add-dns-records":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/email-forwards":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"from":{"description":"Forward email from.","type":"string","format":"email","required":true},"to":{"description":"Forward email to.","type":"string","format":"email","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/email-forwards\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"email_forward_id":{"description":"Email Forward identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/email-forwards\/(?P[\\d]+)\/resend-verification":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"email_forward_id":{"description":"Email Forward identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/email-forwards\/(?P[\\d]+)\/send-test-email":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"email_forward_id":{"description":"Email Forward identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/email-forwards\/(?P[\\d]+)\/recheck-dns":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"email_forward_id":{"description":"Email Forward identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/file\/manage":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/logs\/export":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"types":{"description":"Log Types to export","type":"array","items":{"type":"string","enum":["access_log","php_errors_log","php_slow_log","waf_log"]},"required":true},"email":{"description":"Email address to send exported logs. Default to user email","type":"string","format":"email","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/logs\/(?P[\\w-]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"type":{"description":"Log Type","type":"string","enum":["access_log","php_errors_log","php_slow_log","waf_log","audit"],"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/migration\/available-sites":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/migration\/pending":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/migration":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"site_id":{"description":"HUB Site Identifier.","type":"integer","minimum":1,"required":true},"protocol":{"description":"Protocol to connect to site server.","type":"string","enum":["sftp","ftp"],"required":true},"host":{"description":"Host to connect to server site.","type":"string","required":true},"port":{"description":"Port to connect to server site.","type":["number","null"],"minimum":21,"required":false},"username":{"description":"Username to connect to server site.","type":"string","required":true},"password":{"description":"Password to connect to server site.","type":"string","required":true},"path_open":{"description":"Wordpress Install Path.","type":"string","required":false},"path":{"description":"Wordpress Install Path.","type":"string","required":false},"parallel":{"description":"Use parallel feature.","type":"boolean","default":true,"required":true},"hosting_provider":{"description":"The hosting provider","type":"string","default":"","required":false}}},{"methods":["DELETE"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/manual-migration":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"site_id":{"description":"HUB Site Identifier.","type":"integer","minimum":1,"required":true},"wp_login_details":{"description":"WP Login Details.","type":"object","properties":{"url":{"description":"WP Login URL.","type":"string","format":"url"},"username":{"description":"WP Login Username.","type":"string"},"password":{"description":"WP Login Password.","type":"string"}},"required":false},"host_login_details":{"description":"Host Login Details.","type":"object","properties":{"url":{"description":"Host Login Url.","type":"string","format":"url"},"username":{"description":"Host Login Username.","type":"string"},"password":{"description":"Host Login Password.","type":"string"},"provider":{"description":"Host Login Provider.","type":"string"}},"required":false},"ftp_login_details":{"description":"FTP Login Details.","type":"object","properties":{"host":{"description":"FTP Login Host.","type":"string"},"username":{"description":"FTP Login Username.","type":"string"},"password":{"description":"FTP Login Password.","type":"string"},"port":{"description":"FTP Login Port.","type":["integer","string"]}},"required":false},"additional_info":{"description":"FTP Login Additional Info.","type":"string","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/multisite":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"is_active":{"description":"Whether multisite feature is active.","type":"boolean","required":true},"type":{"description":"Multisite Type. Empty if feature not active.","type":"string","enum":["subdirectory","subdomain"],"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/object-cache":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/password-protection":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"is_active":{"description":"Whether password protection feature is active.","type":"boolean","required":true},"username":{"description":"Username to use for authenticate password protection feature. Empty if feature not active.","type":"string","required":false},"password":{"description":"Password to use for authenticate password protection feature. Empty if feature not active.","type":"string","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/php":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"version":{"description":"Current active PHP Version.","type":"string","enum":["8.1","8.2","8.3"],"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/plans":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/plans\/(?P[\\w-]+)\/meta":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"plan_id":{"description":"Plan identifier","type":"string","enum":["s-1vcpu-512mb-10gb","s-1vcpu-1gb","vhf-1c-1gb","vhf-1c-2gb","s-2vcpu-2gb","vhf-2c-2gb","vhf-2c-4gb","s-4vcpu-8gb","vhf-4c-16gb","s-6vcpu-16gb","vhf-6c-24gb","s-8vcpu-32gb","vhf-8c-32gb","s-16vcpu-64gb","s-20vcpu-96gb","s-24vcpu-128gb","s-32vcpu-192gb"],"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/plans\/(?P[\\w-]+)\/checkout":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"plan_id":{"description":"Plan identifier","type":"string","enum":["s-1vcpu-512mb-10gb","s-1vcpu-1gb","vhf-1c-1gb","vhf-1c-2gb","s-2vcpu-2gb","vhf-2c-2gb","vhf-2c-4gb","s-4vcpu-8gb","vhf-4c-16gb","s-6vcpu-16gb","vhf-6c-24gb","s-8vcpu-32gb","vhf-8c-32gb","s-16vcpu-64gb","s-20vcpu-96gb","s-24vcpu-128gb","s-32vcpu-192gb"],"required":true},"site_action":{"description":"Site Action","type":"string","enum":["upgrade","downgrade","keep","reactivate","cancel","authenticate"],"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/plans\/checkout\/complete":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/plans\/checkout\/error":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/staging":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/staging\/push":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"type":{"description":"Type to push.","type":"string","enum":["files","all"],"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/staging\/sync":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/staging\/support-access":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/static-cache":{"namespace":"hub\/v1","methods":["DELETE","POST","PUT","PATCH"],"endpoints":[{"methods":["DELETE"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"is_active":{"description":"Whether Server Static Cache is active.","type":"boolean","required":false},"ttl":{"description":"Cache TTL \/ lifetime. In minutes","type":"integer","enum":[60,240,480,720,1440],"required":false},"bypass_urls":{"description":"List of urls that bypass cache. Relatives mode.","type":"array","items":{"type":"string"},"required":false},"query_params":{"description":"List of query params that will be cached.","type":"array","items":{"type":"string"},"required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/wp-config\/reset":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/staff-support\/access":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/staging\/db\/manage":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/staging\/file\/manage":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/staging\/logs\/export":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"types":{"description":"Log Types to export","type":"array","items":{"type":"string","enum":["php_errors_log","access_log","php_slow_log","waf_log"]},"required":true},"email":{"description":"Email address to send exported logs. Default to user email","type":"string","format":"email","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/staging\/logs\/(?P[\\w-]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"type":{"description":"Log Type","type":"string","enum":["php_errors_log","access_log","php_slow_log","audit","waf_log"],"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/staging\/password-protection":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"is_active":{"description":"Whether password protection feature is active.","type":"boolean","required":true},"username":{"description":"Username to use for authenticate password protection feature. Empty if feature not active.","type":"string","required":false},"password":{"description":"Password to use for authenticate password protection feature. Empty if feature not active.","type":"string","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/staging\/php":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"version":{"description":"Current active PHP Version.","type":"string","enum":["8.1","8.2","8.3"],"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/bruteforce-protection":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"is_active":{"description":"Whether Bruteforce Attack Protection is active.","type":"boolean","required":true},"ip_allowlist":{"description":"List of Allowlist IPs for Bruteforce Attack Protection.","type":"array","items":{"type":"string"},"required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/wp-reset":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"email":{"description":"WP admin email","type":"string","format":"email","required":true},"username":{"description":"WP Admin username","type":"string","required":true},"password":{"description":"WP admin Password","type":"string","minLength":8,"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/staging\/wp-reset":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"email":{"description":"WP admin email","type":"string","format":"email","required":true},"username":{"description":"WP Admin username","type":"string","required":true},"password":{"description":"WP admin Password","type":"string","minLength":8,"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/suspend":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}},{"methods":["DELETE"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/ioncube-loader":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}},{"methods":["DELETE"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/xmlrpc":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"is_enabled":{"description":"Is XML-RPC is enabled?","type":"boolean","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/maintenance-mode\/acknowledge-completed":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/community\/overview":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/community\/overview"}]}},"\/hub\/v1\/community\/point-activities":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/community\/point-activities"}]}},"\/hub\/v1\/community\/referrals\/invite":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"emails":{"description":"Emails address to sent","type":"array","items":{"type":"string","format":"email"},"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/community\/referrals\/invite"}]}},"\/hub\/v1\/community\/forum-subscriptions\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Forum ID","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Forum ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/support\/overview":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"is_tickets_dash_hidden":{"description":"Whether tickets will be hidden on WPMUDEV Dash or not.","type":"boolean","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/support\/overview"}]}},"\/hub\/v1\/support\/contact":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"post_id":{"description":"Saved Post ID","type":"integer","minimum":1,"required":false},"redirect_url":{"description":"The URL of the new post if relevant","type":"string","format":"domain","required":false},"type":{"description":"Contact Form Type","type":"string","required":false},"topic":{"description":"Topic of Request","type":"string","required":false},"issue":{"description":"The explanation of the issue\/request","type":"string","required":false},"website_id":{"description":"The Site ID","type":"string","required":false},"description":{"description":"Additional details about the request","type":"string","required":false},"notify":{"description":"Whether to notify by email","type":"string","enum":["yes","no"],"default":"yes","required":false},"private_ticket":{"description":"Whether to make the ticket private","type":"string","required":false},"suppress_mail":{"description":"Whether to suppress sending an email to others about the topic","type":"string","default":"off","required":false},"support_access":{"description":"Whether to grant staff support access for the selected site.","type":"string","enum":["1","0"],"default":"0","required":false},"title":{"description":"Title of request","type":"string","required":false},"product_id":{"description":"The related Product ID","type":"string","default":"","required":false},"product_name":{"description":"The related Product Name","type":"string","default":"","required":false},"product_feature":{"description":"The related Product Feature","type":"string","default":"","required":false},"domain":{"description":"The registered Domain","type":"string","default":"","required":false},"domain_feature":{"description":"The related Domain Feature","type":"string","default":"","required":false},"hosting_feature":{"description":"The related Hosting Feature","type":"string","default":"","required":false},"webmail_domain":{"description":"The related Webmail domain","type":"string","default":"","required":false},"webmail_account":{"description":"The related Webmail account","type":"string","default":"","required":false},"webmail_feature":{"description":"The related Webmail Feature","type":"string","default":"","required":false},"hub_service":{"description":"The related Hub service","type":"string","default":"","required":false},"forum_id":{"description":"ID of the Forum","type":"integer","required":false},"bbp_reply_content":{"description":"Content of the question","type":"string","required":false},"bb_attachments":{"description":"Attachment files","type":"string","required":false},"stt_checkbox":{"description":"Notify user by email","type":"integer","enum":[1,0],"default":1,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/support\/contact"}]}},"\/hub\/v1\/support\/tickets":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"status":{"description":"Filter of status tickets.","type":"string","enum":["all","open","resolved","feedback"],"default":"all","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort tickets by object attribute.","type":"string","default":"created_time","enum":["created_time"],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/support\/tickets"}]}},"\/hub\/v1\/support\/chat-transcripts":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Chat transcripts order.","type":"string","enum":["desc","asc"],"default":"desc","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/support\/chat-transcripts"}]}},"\/hub\/v1\/support\/chat-transcripts\/(?P[\\d]+)\/download":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Chat identifier.","type":"string","required":true}}}]},"\/hub\/v1\/client-billing":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"stripe_connect_info":{"type":"object","properties":{"account_name":{"description":"Name of Stripe connected account.","type":"string","readonly":true,"example":"Account Name"},"account_email":{"description":"Email of Stripe connected account.","type":"string","format":"email","readonly":true,"example":"account@example.org"},"account_connect_time":{"description":"Time when Stripe connected, based on user timezone.","type":"string","format":"Y-m-d H:i:s","readonly":true,"example":"2019-10-01 13:09:00"},"account_connect_time_utc":{"description":"Time when Stripe connected, based on user UTC+0.","type":"string","format":"Y-m-d H:i:s","readonly":true,"example":"2019-10-01 13:09:00"}},"required":false},"payment_currency":{"description":"Payment Currency.","type":"string","required":false},"currency_symbol":{"description":"Billing Currency symbol.","type":"string","required":false},"statement_descriptor":{"description":"Statement Descriptor.","type":"string","minLength":5,"maxLength":22,"pattern":"^[^<\"'*\\\\>]+$","required":false},"branding":{"type":"object","properties":{"logo":{"description":"Logo URL.","type":"string","format":"uri","readonly":true,"example":"https:\/\/example.org\/example.png"},"logo_180x180":{"description":"Logo URL in 180x180 pixels.","type":"string","format":"uri","readonly":true,"example":"https:\/\/example.org\/example.png"},"logo_360x360":{"description":"Logo URL in 360x360 pixels.","type":"string","format":"uri","readonly":true,"example":"https:\/\/example.org\/example.png"},"color":{"description":"Brand Color.","type":"string","format":"hex-color","example":"red"}},"required":false},"business_profile":{"type":"object","properties":{"name":{"description":"Business name.","type":"string","format":"text-field","example":"Business Name"},"contact_email":{"description":"Business contact email.","type":["string","null"],"format":"email","example":"business@example.org"},"contact_number":{"description":"Business contact number.","type":"string","format":"text-field","example":"788272348238"},"website":{"description":"Business website.","type":"string","format":"uri","example":"https:\/\/example.org"},"address":{"properties":{"line1":{"description":"Business Address line 1.","type":"string","format":"text-field","example":"Address line 1"},"line2":{"description":"Business Address line 2.","type":"string","format":"text-field","example":"Address line 2"},"city":{"description":"Business Address City.","type":"string","format":"text-field","example":"City"},"state":{"description":"Business Address State.","type":"string","format":"text-field","example":"State"},"postal_code":{"description":"Business Address Postal Code.","type":"string","format":"text-field","example":"782"},"country":{"description":"Business Address Country.","type":"string","format":"text-field","example":"country"}}}},"required":false},"business_profile_additional_info":{"description":"Business Profile additional info.","type":"array","items":{"type":"object","properties":{"id":{"description":"Field ID.","type":"integer","required":true,"example":1},"name":{"description":"Field Name.","type":"string","readonly":true,"example":"Name"},"type":{"description":"Field type.","type":"string","enum":["text","textarea"],"readonly":true,"example":"text"},"category":{"description":"Field category.","type":"string","enum":["business","client"],"readonly":true,"example":"business"},"value":{"description":"Field value.","type":"string","required":true,"example":"value"}}},"required":false},"num_products":{"description":"Num of active ( non archived ) products.","type":"integer","required":false},"num_recurring_plans":{"description":"Num of active ( non archived ) recurring plans.","type":"integer","required":false},"num_one_time_plans":{"description":"Num of active ( non archived ) one time plans.","type":"integer","required":false},"num_archived_products":{"description":"Num of archived products.","type":"integer","required":false},"num_archived_recurring_plans":{"description":"Num of archived recurring plans.","type":"integer","required":false},"num_archived_one_time_plans":{"description":"Num of archived one time plans.","type":"integer","required":false},"num_clients":{"description":"Num of clients.","type":"integer","required":false},"num_active_subscriptions":{"description":"Num of active subscriptions.","type":"integer","required":false},"num_clients_with_active_subscriptions":{"description":"Num of clients with active subscriptions.","type":"integer","required":false},"mrr":{"description":"Total MRR.","type":"number","required":false},"net_revenue":{"description":"Total net revenue.","type":"number","required":false},"average_client_mrr":{"description":"Average MRR per client.","type":"number","required":false},"average_client_net_revenue":{"description":"Average Net Revenue per client.","type":"number","required":false},"client_capabilities":{"description":"List of capabilities available for clients. In category:[ actions ] fashion.","type":"object","properties":{"example_category":{"description":"List of actions.","type":"array","items":{"type":"string","example":"read"}}},"required":false},"primary_hub_sites":{"description":"List of available that can be set as primary Hub of the client.","type":"array","items":{"type":"object","properties":{"id":{"description":"Site identifier","type":"integer","minimum":0,"example":1,"required":true},"domain":{"description":"Domain","type":"string","format":"domain","readonly":true,"example":"example.org"},"home_url":{"description":"Home url of the site.","type":"string","readonly":true,"example":"My Site"},"title":{"description":"Custom Site title. (User defined).","type":"string","readonly":true,"example":"My Site"}}},"required":false},"is_currency_locked":{"description":"Whether currency is locked.","type":"boolean","required":false},"invoice_counts":{"description":"Invoice counts by status.","type":"object","properties":{"failed":{"description":"Number of failed invoices.","type":"integer","example":0},"paid":{"description":"Number of paid invoices.","type":"integer","example":0},"payment-due":{"description":"Number of payment due invoices.","type":"integer","example":0},"refunded":{"description":"Number of refunded invoices.","type":"integer","example":0},"void":{"description":"Number of void invoices.","type":"integer","example":0},"draft":{"description":"Number of draft invoices.","type":"integer","example":0},"recurring-draft":{"description":"Number of recurring-draft invoices.","type":"integer","example":0}},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing"}]}},"\/hub\/v1\/client-billing\/stripe\/connect":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/stripe\/connect"}]}},"\/hub\/v1\/client-billing\/stripe\/disconnect":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/stripe\/disconnect"}]}},"\/hub\/v1\/client-billing\/stripe\/reconnect":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/stripe\/reconnect"}]}},"\/hub\/v1\/client-billing\/stripe\/onboarding":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/stripe\/onboarding"}]}},"\/hub\/v1\/client-billing\/custom-fields":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"business":{"description":"Business custom fields","type":"array","items":{"type":"object","properties":{"id":{"description":"Field ID.","type":["integer","null"],"required":true,"example":1},"name":{"description":"Field Name.","type":"string","format":"text-field","required":true,"example":"Name"},"type":{"description":"Field type.","type":"string","enum":["text","textarea"],"required":true,"example":"text"}}},"required":false},"client":{"description":"Business custom fields","type":"array","items":{"type":"object","properties":{"id":{"description":"Field ID.","type":["integer","null"],"required":true,"example":1},"name":{"description":"Field Name.","type":"string","format":"text-field","required":true,"example":"Name"},"type":{"description":"Field type.","type":"string","enum":["text","textarea"],"required":true,"example":"text"},"is_private":{"description":"Whether field available for clients.","type":"boolean","required":false,"default":false,"example":false}}},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/custom-fields"}]}},"\/hub\/v1\/client-billing\/invoices-settings":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"number_format":{"description":"Invoice number format.","type":"object","properties":{"prefix":{"description":"Invoice number prefix.","type":"string","example":"INV","maxLength":16},"next_number":{"description":"Invoice number prefix.","type":"string","pattern":"^[0-9]+$","example":"0001","maxLength":16}},"required":false},"footer_note":{"description":"Invoice Footer note.","type":"string","required":false},"fields":{"description":"List of available fields and its status","type":"object","properties":{"brand_logo":{"type":"object","properties":{"id":{"description":"Field ID.","type":"string","example":"brand_logo"},"name":{"description":"Field Name.","type":"string","example":"Name"},"is_enabled":{"description":"Flag whether field is enabled.","type":"boolean","example":false}}},"business_address":{"type":"object","properties":{"id":{"description":"Field ID.","type":"string","example":"business_address"},"name":{"description":"Field Name.","type":"string","example":"Name"},"is_enabled":{"description":"Flag whether field is enabled.","type":"boolean","example":false}}},"client_address":{"type":"object","properties":{"id":{"description":"Field ID.","type":"string","example":"client_address"},"name":{"description":"Field Name.","type":"string","example":"Name"},"is_enabled":{"description":"Flag whether field is enabled.","type":"boolean","example":false}}},"business_custom_fields":{"description":"List of business custom fields and its status.","type":"array","items":{"type":"object","properties":{"id":{"description":"Field ID.","type":"integer","required":true,"example":1},"name":{"description":"Field Name.","type":"string","readonly":true,"example":"Name"},"is_enabled":{"description":"Whether field is enabled.","type":"boolean","example":false}}}},"client_custom_fields":{"description":"List of client custom fields and its status.","type":"array","items":{"type":"object","properties":{"id":{"description":"Field ID.","type":"integer","required":true,"example":1},"name":{"description":"Field Name.","type":"string","readonly":true,"example":"Name"},"is_enabled":{"description":"Whether field is enabled.","type":"boolean","example":false}}}}},"required":false},"preview_url":{"description":"Preview sample URL in PDF.","type":"string","format":"url","required":false},"default_pdf_language":{"description":"Default language for PDF.","type":"object","properties":{"id":{"description":"Language ID","type":"string","example":"en_US"},"name":{"description":"Language Name","type":"string","example":"English United States"},"percent_translated":{"description":"Percentage of language translated","type":"number","example":100}},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/invoices-settings"}]}},"\/hub\/v1\/client-billing\/invoices-settings\/preview":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/invoices-settings\/preview"}]}},"\/hub\/v1\/client-billing\/emails-settings":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"is_business_branding_enabled":{"description":"Whether business branding enabled for email.","type":"boolean","required":false},"footer_note":{"description":"Email Footer note.","type":"string","required":false},"invoice_notification":{"type":"object","properties":{"is_enabled":{"description":"Whether email enabled.","type":"boolean","example":false}},"required":false},"payment_receipt":{"type":"object","properties":{"is_enabled":{"description":"Whether email enabled.","type":"boolean","example":false}},"required":false},"payment_failed":{"type":"object","properties":{"is_enabled":{"description":"Whether email enabled.","type":"boolean","example":false}},"required":false},"payment_refund":{"type":"object","properties":{"is_enabled":{"description":"Whether email enabled.","type":"boolean","example":false}},"required":false},"subscription_updated":{"type":"object","properties":{"is_enabled":{"description":"Whether email enabled.","type":"boolean","example":false}},"required":false},"subscription_reactivated":{"type":"object","properties":{"is_enabled":{"description":"Whether email enabled.","type":"boolean","example":false}},"required":false},"subscription_cancelled":{"type":"object","properties":{"is_enabled":{"description":"Whether email enabled.","type":"boolean","example":false}},"required":false},"card_expire_incoming":{"type":"object","properties":{"is_enabled":{"description":"Whether email enabled.","type":"boolean","example":false}},"required":false},"card_expired":{"type":"object","properties":{"is_enabled":{"description":"Whether email enabled.","type":"boolean","example":false}},"required":false},"trial_expire_incoming":{"type":"object","properties":{"is_enabled":{"description":"Whether email enabled.","type":"boolean","example":false}},"required":false},"trial_expired":{"type":"object","properties":{"is_enabled":{"description":"Whether email enabled.","type":"boolean","example":false}},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/emails-settings"}]}},"\/hub\/v1\/client-billing\/clients":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"role_id":{"description":"Filter by role ID.","type":"string","format":"text-field","required":false},"status":{"description":"Filter by status.","type":"string","format":"text-field","enum":["active","inactive","pending"],"required":false}}},{"methods":["POST"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":false},"name":{"description":"Client Full Name","type":"string","format":"text-field","minLength":1,"pattern":".*\\S.*","required":true},"email":{"description":"Client email address","type":"string","format":"email","required":true},"role":{"description":"Role Detail","type":"object","properties":{"id":{"description":"Role ID","type":"string","example":"","context":["list","view","edit"]},"name":{"description":"Role Name","type":"string","example":"","context":["list","view","edit"]}},"required":false},"contact_number":{"description":"Client contact number","type":"string","maxLength":20,"required":false},"sites":{"description":"Client's sites","type":"array","items":{"type":"object","properties":{"id":{"description":"Site ID","type":"integer"},"domain":{"description":"Site Domain","type":"string"},"home_url":{"description":"Home URL","type":"string","format":"url","readonly":true,"example":"https:\/\/example.org\/"}}},"required":false},"domains":{"description":"Client's domains","type":"array","items":{"type":"object","properties":{"id":{"description":"Domain name ID","type":"integer"},"domain":{"description":"Domain","type":"string"}}},"required":false},"billing_address":{"description":"Client's Billing address","type":"object","properties":{"line1":{"description":"Business Address line 1.","type":"string","format":"text-field","example":"Address line 1"},"line2":{"description":"Business Address line 2.","type":"string","format":"text-field","example":"Address line 2"},"city":{"description":"Business Address City.","type":"string","format":"text-field","example":"City"},"state":{"description":"Business Address State.","type":"string","format":"text-field","example":"State"},"postal_code":{"description":"Business Address Postal Code.","type":"string","format":"text-field","example":"782"},"country":{"description":"Business Address Country.","type":"string","format":"text-field","example":"country"}},"required":false},"additional_info":{"description":"Client additional info.","type":"array","items":{"type":"object","properties":{"id":{"description":"Field ID.","type":"integer","required":true,"example":1},"name":{"description":"Field Name.","type":"string","readonly":true,"example":"Name"},"type":{"description":"Field type.","type":"string","enum":["text","textarea"],"readonly":true,"example":"text"},"category":{"description":"Field category.","type":"string","enum":["business","client"],"readonly":true,"example":"client"},"value":{"description":"Field value.","type":"string","format":"textarea-field","required":true,"example":"value"}}},"required":false},"primary_hub":{"description":"Primary Hub connected to this client","type":"object","properties":{"id":{"description":"Site identifier","type":"integer","minimum":0,"example":1,"required":true},"domain":{"description":"Domain","type":"string","format":"domain","readonly":true,"example":"example.org"},"home_url":{"description":"Home url of the site.","type":"string","readonly":true,"example":"My Site"},"title":{"description":"Custom Site title. (User defined).","type":"string","readonly":true,"example":"My Site"}},"required":false},"invoice_pdf_preview_base_url":{"description":"Preview invoice base URL in PDF.","type":"string","format":"url","required":false},"invoice_counts":{"description":"Invoice counts by status.","type":"object","properties":{"failed":{"description":"Number of failed invoices.","type":"integer","example":0},"paid":{"description":"Number of paid invoices.","type":"integer","example":0},"payment-due":{"description":"Number of payment due invoices.","type":"integer","example":0},"refunded":{"description":"Number of refunded invoices.","type":"integer","example":0},"void":{"description":"Number of void invoices.","type":"integer","example":0},"draft":{"description":"Number of draft invoices.","type":"integer","example":0},"recurring-draft":{"description":"Number of recurring-draft invoices.","type":"integer","example":0}},"required":false},"stripe_account_id":{"description":"Stripe Account id to be used to setup payment method.","type":"string","required":false},"created_on":{"required":false},"created_on_utc":{"required":false},"invited_on":{"required":false},"invited_on_utc":{"required":false},"invoice_pdf_language":{"description":"Default language for Invoice PDF.","type":"object","properties":{"id":{"description":"Language ID","type":"string","example":"en_US"},"name":{"description":"Language Name","type":"string","example":"English United States"},"percent_translated":{"description":"Percentage of language translated","type":"number","example":100}},"required":false},"is_send_invite":{"description":"Whether to send invitation.","type":"boolean","default":false,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/clients"}]}},"\/hub\/v1\/client-billing\/clients\/import-stripe\/(?Pcus_[\\w]+)":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}]},"\/hub\/v1\/client-billing\/clients\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":false},"name":{"description":"Client Full Name","type":"string","format":"text-field","minLength":1,"pattern":".*\\S.*","required":false},"email":{"description":"Client email address","type":"string","format":"email","required":false},"role":{"description":"Role Detail","type":"object","properties":{"id":{"description":"Role ID","type":"string","example":"","context":["list","view","edit"]},"name":{"description":"Role Name","type":"string","example":"","context":["list","view","edit"]}},"required":false},"contact_number":{"description":"Client contact number","type":"string","maxLength":20,"required":false},"sites":{"description":"Client's sites","type":"array","items":{"type":"object","properties":{"id":{"description":"Site ID","type":"integer"},"domain":{"description":"Site Domain","type":"string"},"home_url":{"description":"Home URL","type":"string","format":"url","readonly":true,"example":"https:\/\/example.org\/"}}},"required":false},"domains":{"description":"Client's domains","type":"array","items":{"type":"object","properties":{"id":{"description":"Domain name ID","type":"integer"},"domain":{"description":"Domain","type":"string"}}},"required":false},"billing_address":{"description":"Client's Billing address","type":"object","properties":{"line1":{"description":"Business Address line 1.","type":"string","format":"text-field","example":"Address line 1"},"line2":{"description":"Business Address line 2.","type":"string","format":"text-field","example":"Address line 2"},"city":{"description":"Business Address City.","type":"string","format":"text-field","example":"City"},"state":{"description":"Business Address State.","type":"string","format":"text-field","example":"State"},"postal_code":{"description":"Business Address Postal Code.","type":"string","format":"text-field","example":"782"},"country":{"description":"Business Address Country.","type":"string","format":"text-field","example":"country"}},"required":false},"additional_info":{"description":"Client additional info.","type":"array","items":{"type":"object","properties":{"id":{"description":"Field ID.","type":"integer","required":true,"example":1},"name":{"description":"Field Name.","type":"string","readonly":true,"example":"Name"},"type":{"description":"Field type.","type":"string","enum":["text","textarea"],"readonly":true,"example":"text"},"category":{"description":"Field category.","type":"string","enum":["business","client"],"readonly":true,"example":"client"},"value":{"description":"Field value.","type":"string","format":"textarea-field","required":true,"example":"value"}}},"required":false},"primary_hub":{"description":"Primary Hub connected to this client","type":"object","properties":{"id":{"description":"Site identifier","type":"integer","minimum":0,"example":1,"required":true},"domain":{"description":"Domain","type":"string","format":"domain","readonly":true,"example":"example.org"},"home_url":{"description":"Home url of the site.","type":"string","readonly":true,"example":"My Site"},"title":{"description":"Custom Site title. (User defined).","type":"string","readonly":true,"example":"My Site"}},"required":false},"invoice_pdf_preview_base_url":{"description":"Preview invoice base URL in PDF.","type":"string","format":"url","required":false},"invoice_counts":{"description":"Invoice counts by status.","type":"object","properties":{"failed":{"description":"Number of failed invoices.","type":"integer","example":0},"paid":{"description":"Number of paid invoices.","type":"integer","example":0},"payment-due":{"description":"Number of payment due invoices.","type":"integer","example":0},"refunded":{"description":"Number of refunded invoices.","type":"integer","example":0},"void":{"description":"Number of void invoices.","type":"integer","example":0},"draft":{"description":"Number of draft invoices.","type":"integer","example":0},"recurring-draft":{"description":"Number of recurring-draft invoices.","type":"integer","example":0}},"required":false},"stripe_account_id":{"description":"Stripe Account id to be used to setup payment method.","type":"string","required":false},"created_on":{"required":false},"created_on_utc":{"required":false},"invited_on":{"required":false},"invited_on_utc":{"required":false},"invoice_pdf_language":{"description":"Default language for Invoice PDF.","type":"object","properties":{"id":{"description":"Language ID","type":"string","example":"en_US"},"name":{"description":"Language Name","type":"string","example":"English United States"},"percent_translated":{"description":"Percentage of language translated","type":"number","example":100}},"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":true},"is_delete_stripe_customer":{"description":"Whether delete Stripe customer too.","type":"boolean","default":true,"required":false}}}]},"\/hub\/v1\/client-billing\/clients\/(?P[\\d]+)\/send-invite":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing\/clients\/(?P[\\d]+)\/payment-method\/intent":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}]},"\/hub\/v1\/client-billing\/clients\/(?P[\\d]+)\/payment-method":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"stripe_payment_method_id":{"description":"Stripe Payment Method id","required":true}}},{"methods":["DELETE"],"args":[]}]},"\/hub\/v1\/client-billing\/clients\/roles":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST"],"args":{"name":{"description":"Role Name","type":"string","required":true},"capabilities":{"description":"List of capabilities. In category:[ actions ] fashion.","type":"object","properties":{"example_category":{"description":"List of actions.","type":"array","items":{"type":"string","example":"read"}}},"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/clients\/roles"}]}},"\/hub\/v1\/client-billing\/clients\/roles\/(?P[\\w-]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Role identifier","type":"string","required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Role identifier","type":"string","required":true},"name":{"description":"Role Name","type":"string","required":false},"capabilities":{"description":"List of capabilities. In category:[ actions ] fashion.","type":"object","properties":{"example_category":{"description":"List of actions.","type":"array","items":{"type":"string","example":"read"}}},"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Role identifier","type":"string","required":true}}}]},"\/hub\/v1\/client-billing\/stripe\/customers":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"limit":{"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 100.","type":"integer","default":100,"minimum":1,"maximum":100,"required":false},"starting_after":{"description":"A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/stripe\/customers"}]}},"\/hub\/v1\/client-billing\/products":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":1000,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort products by object attribute.","type":"string","default":"product_id","enum":["product_id","name","created_on"],"required":false},"ids":{"description":"Filter by IDs.","type":"array","items":{"type":"integer"},"required":false},"is_archived_products":{"description":"Filter the results.","type":["boolean","null"],"default":null,"required":false},"is_archived_plans":{"description":"Filter the plan results.","type":["boolean","null"],"default":null,"required":false}}},{"methods":["POST"],"args":{"id":{"description":"Product ID.","type":"integer","required":false},"is_archived":{"description":"Whether product is archived.","type":"boolean","required":false},"name":{"description":"Product Name.","type":"string","format":"text-field","required":true},"type":{"description":"Product Type.","type":"string","required":false},"image":{"description":"Product Image. Original size","type":"string","format":"uri","required":false},"image_50x50":{"description":"Product Image. 50px size","type":"string","format":"uri","required":false},"image_180x180":{"description":"Product Image. 180px size","type":"string","format":"uri","required":false},"image_360x360":{"description":"Product Image. 360px size","type":"string","format":"uri","required":false},"image_44x44":{"description":"Product Image. 44px size","type":"string","format":"uri","required":false},"image_88x88":{"description":"Product Image. 88px size","type":"string","format":"uri","required":false},"image_30x30":{"description":"Product Image. 30px size","type":"string","format":"uri","required":false},"image_60x60":{"description":"Product Image. 60px size","type":"string","format":"uri","required":false},"plans":{"description":"List of plans.","type":"array","items":{"type":"object","properties":{"id":{"description":"Plan ID.","type":["integer","null"],"required":true,"example":1},"is_archived":{"description":"Whether plan is archived.","type":"boolean","example":false},"name":{"description":"Plan Name.","type":"string","format":"text-field","example":"Plan Name"},"price":{"description":"Plan Price.","type":"number","example":0},"currency":{"description":"Plan Price Currency.","type":"string","example":"usd"},"currency_symbol":{"description":"Plan Price Currency symbol.","type":"string","example":"$"},"stripe_price_id":{"description":"Stripe Price id","type":"string","readonly":true},"is_recurring":{"description":"Whether plan is recurring type.","type":"boolean","example":false},"interval":{"description":"Plan billing interval when its recurring.","type":"string","enum":["","day","week","month","year"],"example":""},"interval_count":{"description":"Plan billing interval count when its recurring.","type":"integer","example":0},"billing_cycle":{"description":"Plan billing cycle.","type":"integer","example":0}}},"required":false},"duplicate_from_id":{"description":"Product ID reference for duplication context.","type":"integer","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/products"}]}},"\/hub\/v1\/client-billing\/products\/import-stripe\/(?Pprod_[\\w]+)":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}]},"\/hub\/v1\/client-billing\/products\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Product ID","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Product ID.","type":"integer","required":false},"is_archived":{"description":"Whether product is archived.","type":"boolean","required":false},"name":{"description":"Product Name.","type":"string","format":"text-field","required":false},"type":{"description":"Product Type.","type":"string","required":false},"image":{"description":"Product Image. Original size","type":"string","format":"uri","required":false},"image_50x50":{"description":"Product Image. 50px size","type":"string","format":"uri","required":false},"image_180x180":{"description":"Product Image. 180px size","type":"string","format":"uri","required":false},"image_360x360":{"description":"Product Image. 360px size","type":"string","format":"uri","required":false},"image_44x44":{"description":"Product Image. 44px size","type":"string","format":"uri","required":false},"image_88x88":{"description":"Product Image. 88px size","type":"string","format":"uri","required":false},"image_30x30":{"description":"Product Image. 30px size","type":"string","format":"uri","required":false},"image_60x60":{"description":"Product Image. 60px size","type":"string","format":"uri","required":false},"plans":{"description":"List of plans.","type":"array","items":{"type":"object","properties":{"id":{"description":"Plan ID.","type":["integer","null"],"required":true,"example":1},"is_archived":{"description":"Whether plan is archived.","type":"boolean","example":false},"name":{"description":"Plan Name.","type":"string","format":"text-field","example":"Plan Name"},"price":{"description":"Plan Price.","type":"number","example":0},"currency":{"description":"Plan Price Currency.","type":"string","example":"usd"},"currency_symbol":{"description":"Plan Price Currency symbol.","type":"string","example":"$"},"stripe_price_id":{"description":"Stripe Price id","type":"string","readonly":true},"is_recurring":{"description":"Whether plan is recurring type.","type":"boolean","example":false},"interval":{"description":"Plan billing interval when its recurring.","type":"string","enum":["","day","week","month","year"],"example":""},"interval_count":{"description":"Plan billing interval count when its recurring.","type":"integer","example":0},"billing_cycle":{"description":"Plan billing cycle.","type":"integer","example":0}}},"required":false},"remove_plan_ids":{"description":"Plan IDs to remove from product.","type":"array","items":{"type":"integer"},"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Product ID","type":"integer","minimum":1,"required":true},"is_delete_stripe_product":{"description":"Whether delete Stripe product too.","type":"boolean","default":true,"required":false}}}]},"\/hub\/v1\/client-billing\/products\/(?P[\\d]+)\/duplicate":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Product ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing\/products\/(?P[\\d]+)\/plans\/(?P[\\d]+)\/duplicate":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Product ID","type":"integer","minimum":1,"required":true},"plan_id":{"description":"Plan ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing\/stripe\/products":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"limit":{"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 100.","type":"integer","default":10,"minimum":1,"maximum":10,"required":false},"starting_after":{"description":"A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/stripe\/products"}]}},"\/hub\/v1\/client-billing\/invoices":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"client_id":{"description":["Filter invoices by Client ID.","wpmudev"],"type":"integer","required":false},"created_on":{"description":["Filter invoices by date its created. Format \"Y-m-d\".","wpmudev"],"type":"string","pattern":"^[\\d]{4}[-][\\d]{2}[-][\\d]{2}$","required":false},"status":{"description":["Filter invoices by status. Support multiple.","wpmudev"],"type":"array","items":{"type":"string","enum":["draft","payment-due","open","paid","uncollectible","void","refunded","failed"],"example":"payment-due"},"required":false},"site_id":{"description":["Filter invoices by Site ID.","wpmudev"],"type":"integer","required":false},"domain":{"description":["Filter invoices by Domain.","wpmudev"],"type":"string","required":false},"plan_id":{"description":["Filter invoices by Plan ID. Support multiple.","wpmudev"],"type":"array","items":{"type":"integer","example":1},"required":false},"subscription_id":{"description":["Filter invoices by Subscription ID.","wpmudev"],"type":"integer","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/invoices"}]}},"\/hub\/v1\/client-billing\/invoices\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true},"client_id":{"description":"Client ID","type":"integer","required":true},"site_id":{"description":"Site identifier","type":["null","integer"],"default":null,"required":false},"domain":{"description":"Domain","type":["null","string"],"default":null,"required":false},"items":{"type":"array","minItems":1,"items":{"type":"object","properties":{"plan":{"type":"object","properties":{"id":{"type":"integer","required":true}},"required":true},"quantity":{"type":"integer","required":true,"minimum":1}}},"required":true},"taxes":{"type":"array","uniqueItems":true,"maxItems":5,"items":{"type":"object","properties":{"id":{"description":"Tax Rate ID","type":"integer","required":true}}},"required":false},"invoice_note":{"description":"Invoice note","type":["null","string"],"default":null,"required":false},"is_send_invoice":{"description":"Whether to send invoice directly","type":"boolean","default":false,"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing\/invoices\/(?P[\\d]+)\/download":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing\/invoices\/(?P[\\d]+)\/mark-as-paid":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true},"method":{"description":"Payment method","type":"string","enum":["cash","check","bank_transfer","other"],"required":true},"reference":{"description":"Payment reference","type":"string","required":false},"date":{"description":"Payment date","type":"string","pattern":"^[\\d]{4}[-][\\d]{2}[-][\\d]{2}$","required":false},"is_send_receipt":{"description":"Whether to send receipt to client","type":"boolean","default":false,"required":false}}}]},"\/hub\/v1\/client-billing\/invoices\/(?P[\\d]+)\/mark-as-void":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true},"is_cancel_subscription":{"description":"Whether to cancel attached subscription.","type":"boolean","default":false,"required":false}}}]},"\/hub\/v1\/client-billing\/invoices\/(?P[\\d]+)\/refund":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true},"amount":{"description":"Refund amount, optional. Default is full amount","type":"number","required":false}}}]},"\/hub\/v1\/client-billing\/invoices\/(?P[\\d]+)\/send-email":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing\/clients\/(?P[\\d]+)\/subscriptions":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"role_id":{"description":"Filter by role ID.","type":"string","format":"text-field","required":false},"status":{"type":"array","items":{"type":"string"},"required":false},"site_id":{"description":["Filter subscriptions by Site ID.","wpmudev"],"type":"integer","required":false},"domain":{"description":["Filter subscriptions by domain.","wpmudev"],"type":"string","required":false}}},{"methods":["POST"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":true},"site_id":{"description":"Site identifier","type":["null","integer"],"default":null,"required":false},"domain":{"description":"Domain","type":["null","string"],"default":null,"required":false},"items":{"type":"array","minItems":1,"items":{"type":"object","properties":{"plan":{"type":"object","properties":{"id":{"type":"integer","required":true}},"required":true},"quantity":{"type":"integer","required":true,"minimum":1},"create_site":{"type":"object","properties":{"hosting_site_id":{"type":"string","required":true},"hosting_region":{"type":"string","required":true},"wp_email":{"type":"string","required":true},"wp_username":{"type":"string","required":true},"wp_password":{"type":"string","required":true}},"required":false}}},"required":true},"taxes":{"type":"array","uniqueItems":true,"maxItems":5,"items":{"type":"object","properties":{"id":{"description":"Tax Rate ID","type":"integer","required":true}}},"required":false},"invoice_note":{"description":"Invoice note","type":["null","string"],"default":null,"required":false},"is_send_invoice":{"description":"Whether to send invoice directly","type":"boolean","default":false,"required":false}}}]},"\/hub\/v1\/client-billing\/clients\/(?P[\\d]+)\/subscriptions\/invoice-pdf-preview":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":true},"site_id":{"description":"Site identifier","type":["null","integer"],"default":null,"required":false},"domain":{"description":"Domain name","type":["null","string"],"default":null,"required":false},"items":{"type":"array","minItems":1,"items":{"type":"object","properties":{"plan":{"type":"object","properties":{"id":{"type":"integer","required":true}},"required":true},"quantity":{"type":"integer","required":true,"minimum":1}}},"required":true},"taxes":{"type":"array","uniqueItems":true,"maxItems":5,"items":{"type":"object","properties":{"id":{"description":"Tax Rate ID","type":"integer","required":true}}},"required":false},"invoice_note":{"description":"Invoice note","type":["null","string"],"default":null,"required":false},"invoice_id":{"description":"Invoice ID. If the context is editing draft.","type":["null","integer"],"default":null,"required":false}}}]},"\/hub\/v1\/client-billing\/clients\/(?P[\\d]+)\/subscriptions\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":true},"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":true},"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing\/clients\/(?P[\\d]+)\/subscriptions\/(?P[\\d]+)\/cancel":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":true},"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing\/clients\/(?P[\\d]+)\/subscriptions\/(?P[\\d]+)\/reactivate":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":true},"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing\/clients\/(?P[\\d]+)\/one-time-products":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"role_id":{"description":"Filter by role ID.","type":"string","format":"text-field","required":false},"status":{"description":"Filter by status.","type":"string","format":"text-field","enum":["active","inactive","pending"],"required":false},"site_id":{"description":["Filter subscriptions by Site ID.","wpmudev"],"type":"integer","required":false},"domain":{"description":["Filter subscriptions by domain.","wpmudev"],"type":"string","required":false}}}]},"\/hub\/v1\/client-billing\/clients\/(?P[\\d]+)\/one-time-products\/(?P[\\d]+)\/re-bill":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":true},"one_time_product_id":{"description":"One Time Product ID","type":"integer","minimum":1,"required":true},"invoice_note":{"description":"Invoice note","type":["null","string"],"default":null,"required":false},"is_send_invoice":{"description":"Whether to send invoice directly","type":"boolean","default":true,"required":false}}}]},"\/hub\/v1\/client-billing\/tax-rates":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"is_active":{"description":"Filter the results based on active status.","type":["boolean","null"],"default":null,"required":false}}},{"methods":["POST"],"args":{"items":{"description":"New tax rates to be added","type":"array","maxItems":10,"items":{"type":"object","properties":{"name":{"description":"Tax Rate Name.","type":"string","format":"text-field","required":true,"minLength":1,"pattern":".*\\S.*","example":"Tax Rate"},"percentage":{"description":"Tax Rate Percentage.","type":"number","required":true,"minimum":0,"maximum":100,"example":1}}},"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/tax-rates"}]}},"\/hub\/v1\/client-billing\/tax-rates\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Tax Rate ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing\/reseller":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/reseller"}]}},"\/hub\/v1\/client-billing\/reseller\/settings":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"hosting_default_client_role":{"description":"Default Client Role for Hosting Reseller Products.","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":false},"hosting_tax_rates":{"description":"Hosting Tax Rates.","type":"array","items":{"type":"object","properties":{"id":{"description":"Tax Rate ID.","type":"integer","readonly":true,"example":1},"name":{"description":"Tax Rate Name.","type":"string","format":"text-field","readonly":true,"example":"Tax Rate"},"percentage":{"description":"Tax Rate Percentage.","type":"number","readonly":true,"example":1},"is_inclusive":{"description":"whether tax is inclusive to the invoice.","type":"boolean","readonly":true,"example":true},"is_active":{"description":"whether tax is active.","type":"boolean","readonly":true,"example":true},"created_time":{"description":"Created time, based on user timezone","type":"string","format":"Y-m-d H:i:s","readonly":true,"example":"2019-10-01 13:09:00"},"created_time_utc":{"description":"Created time, based on UTC+0","type":"string","format":"Y-m-d H:i:s","readonly":true,"example":"2019-10-01 13:09:00"}}},"required":false},"domain_default_client_role":{"description":"Default Client Role for Domain Reseller Products.","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":false},"domain_tax_rates":{"description":"Domain Tax Rates.","type":"array","items":{"type":"object","properties":{"id":{"description":"Tax Rate ID.","type":"integer","readonly":true,"example":1},"name":{"description":"Tax Rate Name.","type":"string","format":"text-field","readonly":true,"example":"Tax Rate"},"percentage":{"description":"Tax Rate Percentage.","type":"number","readonly":true,"example":1},"is_inclusive":{"description":"whether tax is inclusive to the invoice.","type":"boolean","readonly":true,"example":true},"is_active":{"description":"whether tax is active.","type":"boolean","readonly":true,"example":true},"created_time":{"description":"Created time, based on user timezone","type":"string","format":"Y-m-d H:i:s","readonly":true,"example":"2019-10-01 13:09:00"},"created_time_utc":{"description":"Created time, based on UTC+0","type":"string","format":"Y-m-d H:i:s","readonly":true,"example":"2019-10-01 13:09:00"}}},"required":false},"domain_currency_rate":{"description":"Domain Currency Rate.","type":["number",null],"minimum":0.01,"maximum":99999999,"required":false},"domain_round_off_decimal_places":{"description":"Domain Round Off Decimal Places.","type":"integer","enum":[1,2],"required":false},"is_domain_currency_rate_setup_available":{"description":"Whether currency rate setup is available for Domain reseller.","type":"boolean","required":false},"is_domain_currency_rate_setup_required":{"description":"Whether currency rate setup is required for Domain reseller.","type":"boolean","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/reseller\/settings"}]}},"\/hub\/v1\/client-billing\/reseller\/setup":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"is_thc_reseller_setup_completed":{"description":"Whether THC already setup with reseller. This is user self-maintained flag. They can update this anytime.","type":"boolean","enum":[true],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/reseller\/setup"}]}},"\/hub\/v1\/client-billing\/reseller\/domain-wait-list":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"is_in_domain_reseller_wait_list":{"default":true,"description":"Whether in Domain Reseller wait list.","type":"boolean","enum":[true],"required":false},"payment_currency":{"description":"Client Billing Payment Currency.","type":"string","required":false},"currency_symbol":{"description":"Client Billing Payment Currency symbol.","type":"string","required":false},"domain_currency_rate":{"description":"Currency rate for domain-reseller plans against WPMU DEV currency (USD).","type":["number",null],"minimum":0.01,"maximum":99999999,"required":false},"is_domain_currency_rate_setup_available":{"description":"Whether currency rate setup is available for Domain reseller.","type":"boolean","required":false},"is_domain_currency_rate_setup_required":{"description":"Whether currency rate setup is required for Domain reseller.","type":"boolean","required":false},"domain_round_off_decimal_places":{"default":1,"description":"Decimal point round, to rounding domain price for client.","type":"integer","enum":[1,2],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/reseller\/domain-wait-list"}]}},"\/hub\/v1\/client-billing\/products\/reseller\/hosting":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":1000,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort products by object attribute.","type":"string","default":"product_id","enum":["product_id","name","created_on"],"required":false},"ids":{"description":"Filter by IDs.","type":"array","items":{"type":"integer"},"required":false},"is_archived_products":{"description":"Filter the results.","type":["boolean","null"],"default":null,"required":false},"is_archived_plans":{"description":"Filter the plan results.","type":["boolean","null"],"default":null,"required":false}}},{"methods":["POST"],"args":{"id":{"description":"Product ID.","type":"integer","required":false},"is_archived":{"description":"Whether product is archived.","type":"boolean","required":false},"name":{"description":"Product Name.","type":"string","format":"text-field","required":true},"type":{"description":"Product Type.","type":"string","required":false},"image":{"description":"Product Image. Original size","type":"string","format":"uri","required":false},"image_50x50":{"description":"Product Image. 50px size","type":"string","format":"uri","required":false},"image_180x180":{"description":"Product Image. 180px size","type":"string","format":"uri","required":false},"image_360x360":{"description":"Product Image. 360px size","type":"string","format":"uri","required":false},"image_44x44":{"description":"Product Image. 44px size","type":"string","format":"uri","required":false},"image_88x88":{"description":"Product Image. 88px size","type":"string","format":"uri","required":false},"image_30x30":{"description":"Product Image. 30px size","type":"string","format":"uri","required":false},"image_60x60":{"description":"Product Image. 60px size","type":"string","format":"uri","required":false},"plans":{"description":"List of plans.","type":"array","items":{"type":"object","properties":{"id":{"description":"Plan ID.","type":["integer","null"],"required":true,"example":1},"is_archived":{"description":"Whether plan is archived.","type":"boolean","example":false},"name":{"description":"Plan Name.","type":"string","format":"text-field","example":"Plan Name"},"price":{"description":"Plan Price.","type":"number","example":0},"currency":{"description":"Plan Price Currency.","type":"string","example":"usd"},"currency_symbol":{"description":"Plan Price Currency symbol.","type":"string","example":"$"},"stripe_price_id":{"description":"Stripe Price id","type":"string","readonly":true},"is_recurring":{"description":"Whether plan is recurring type.","type":"boolean","example":false},"interval":{"description":"Plan billing interval when its recurring.","type":"string","enum":["","day","week","month","year"],"example":""},"interval_count":{"description":"Plan billing interval count when its recurring.","type":"integer","example":0},"billing_cycle":{"description":"Plan billing cycle.","type":"integer","example":0}}},"required":false},"description":{"description":"Product Description.","type":"string","format":"textarea-field","required":false},"feature_list":{"description":"Feature List.","type":"array","items":{"type":"string","format":"text-field"},"required":false},"hosting_plan":{"description":"Hosting Plan.","type":"object","properties":{"id":{"type":"string","required":true},"name":{"type":"string"},"period":{"type":"number"},"price":{"type":"number"},"price_with_tax":{"type":"number"},"currency":{"type":"string"},"currency_label":{"type":"string"}},"required":true},"wp_user_role":{"default":{"id":"editor"},"description":"WP User Role.","type":"object","properties":{"id":{"type":"string","required":true,"default":"editor"},"name":{"type":"string"}},"required":true},"client_role":{"default":{"behavior":"default"},"description":"Client Role.","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"behavior":{"description":"Client Role Behavior.","type":"string","enum":["default","change"],"example":"default","default":"default"}},"required":false},"site_templates":{"default":{"behavior":"allow_selection"},"description":"Site Template(s) setting.","type":"object","properties":{"behavior":{"description":"Site Template Behavior.","type":"string","enum":["allow_selection","force_selection","disable"],"example":"allow_selection","default":"allow_selection"},"is_all_allowed":{"description":"Whether ALL Site Templates allowed. Only in allow_selection mode.","type":"boolean","readonly":true},"allowed":{"description":"Allowed Templates. Only in allow_selection mode.","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["template","user_template"],"example":"template"},"description":{"description":"Template Description.","type":"string","example":""},"theme":{"type":"string"},"builder":{"type":"string"},"preview_url":{"type":"string","format":"uri"},"thumbnail_url":{"type":"string","format":"uri"},"is_favorited":{"type":"boolean"},"creation_time":{"description":"Template creation time. Based on user timezone.","type":"string","format":"Y-m-d H:i:s","example":"2019-10-01 13:09:00"},"creation_time_utc":{"description":"Template creation time. Based on UTC+0.","type":"string","format":"Y-m-d H:i:s","example":"2019-10-01 13:09:00"}}}},"forced":{"description":"Forced Template. Only in force_selection mode.","type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["template","user_template"],"example":"template"},"description":{"description":"Template Description.","type":"string","example":""},"theme":{"type":"string"},"builder":{"type":"string"},"preview_url":{"type":"string","format":"uri"},"thumbnail_url":{"type":"string","format":"uri"},"is_favorited":{"type":"boolean"},"creation_time":{"description":"Template creation time. Based on user timezone.","type":"string","format":"Y-m-d H:i:s","example":"2019-10-01 13:09:00"},"creation_time_utc":{"description":"Template creation time. Based on UTC+0.","type":"string","format":"Y-m-d H:i:s","example":"2019-10-01 13:09:00"}}}},"required":false},"site_regions":{"default":{"behavior":"allow_selection"},"description":"Site Regions(s) setting.","type":"object","properties":{"behavior":{"description":"Site Region Behavior.","type":"string","enum":["allow_selection","force_selection"],"example":"allow_selection","default":"allow_selection"},"is_all_allowed":{"description":"Whether ALL regions allowed. Only in allow_selection mode.","type":"boolean","readonly":true},"allowed":{"description":"Allowed Regions. Only in allow_selection mode.","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"forced":{"description":"Forced Regions. Only in force_selection mode.","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"required":false},"auto_suspend":{"default":{"behavior":"when_overdue","days_after":7,"auto_unsuspend":true},"description":"Auto Suspend Settings.","type":"object","properties":{"behavior":{"description":"Auto Suspend Behavior.","type":"string","enum":["when_overdue","do_not_suspend"],"default":"when_overdue"},"days_after":{"description":"Auto Suspend After in days.","type":"integer","example":7,"min":0,"default":7},"auto_unsuspend":{"description":"Auto Unsuspend.","type":"boolean","example":true,"default":true}},"required":false},"auto_delete":{"default":{"behavior":"do_not_delete","days_after":30},"description":"Auto Delete Settings.","type":"object","properties":{"behavior":{"description":"Auto Delete Behavior.","type":"string","enum":["when_overdue","do_not_delete"],"default":"do_not_delete","example":"do_not_delete"},"days_after":{"description":"Auto Delete After in days.","type":"integer","example":30,"min":0,"default":30}},"required":false},"duplicate_from_id":{"description":"Product ID reference for duplication context.","type":"integer","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/products\/reseller\/hosting"}]}},"\/hub\/v1\/client-billing\/products\/reseller\/hosting\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Product ID","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Product ID.","type":"integer","required":false},"is_archived":{"description":"Whether product is archived.","type":"boolean","required":false},"name":{"description":"Product Name.","type":"string","format":"text-field","required":false},"type":{"description":"Product Type.","type":"string","required":false},"image":{"description":"Product Image. Original size","type":"string","format":"uri","required":false},"image_50x50":{"description":"Product Image. 50px size","type":"string","format":"uri","required":false},"image_180x180":{"description":"Product Image. 180px size","type":"string","format":"uri","required":false},"image_360x360":{"description":"Product Image. 360px size","type":"string","format":"uri","required":false},"image_44x44":{"description":"Product Image. 44px size","type":"string","format":"uri","required":false},"image_88x88":{"description":"Product Image. 88px size","type":"string","format":"uri","required":false},"image_30x30":{"description":"Product Image. 30px size","type":"string","format":"uri","required":false},"image_60x60":{"description":"Product Image. 60px size","type":"string","format":"uri","required":false},"plans":{"description":"List of plans.","type":"array","items":{"type":"object","properties":{"id":{"description":"Plan ID.","type":["integer","null"],"required":true,"example":1},"is_archived":{"description":"Whether plan is archived.","type":"boolean","example":false},"name":{"description":"Plan Name.","type":"string","format":"text-field","example":"Plan Name"},"price":{"description":"Plan Price.","type":"number","example":0},"currency":{"description":"Plan Price Currency.","type":"string","example":"usd"},"currency_symbol":{"description":"Plan Price Currency symbol.","type":"string","example":"$"},"stripe_price_id":{"description":"Stripe Price id","type":"string","readonly":true},"is_recurring":{"description":"Whether plan is recurring type.","type":"boolean","example":false},"interval":{"description":"Plan billing interval when its recurring.","type":"string","enum":["","day","week","month","year"],"example":""},"interval_count":{"description":"Plan billing interval count when its recurring.","type":"integer","example":0},"billing_cycle":{"description":"Plan billing cycle.","type":"integer","example":0}}},"required":false},"description":{"description":"Product Description.","type":"string","format":"textarea-field","required":false},"feature_list":{"description":"Feature List.","type":"array","items":{"type":"string","format":"text-field"},"required":false},"hosting_plan":{"description":"Hosting Plan.","type":"object","properties":{"id":{"type":"string","required":true},"name":{"type":"string"},"period":{"type":"number"},"price":{"type":"number"},"price_with_tax":{"type":"number"},"currency":{"type":"string"},"currency_label":{"type":"string"}},"required":false},"wp_user_role":{"description":"WP User Role.","type":"object","properties":{"id":{"type":"string","required":true,"default":"editor"},"name":{"type":"string"}},"required":false},"client_role":{"description":"Client Role.","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"behavior":{"description":"Client Role Behavior.","type":"string","enum":["default","change"],"example":"default","default":"default"}},"required":false},"site_templates":{"description":"Site Template(s) setting.","type":"object","properties":{"behavior":{"description":"Site Template Behavior.","type":"string","enum":["allow_selection","force_selection","disable"],"example":"allow_selection","default":"allow_selection"},"is_all_allowed":{"description":"Whether ALL Site Templates allowed. Only in allow_selection mode.","type":"boolean","readonly":true},"allowed":{"description":"Allowed Templates. Only in allow_selection mode.","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["template","user_template"],"example":"template"},"description":{"description":"Template Description.","type":"string","example":""},"theme":{"type":"string"},"builder":{"type":"string"},"preview_url":{"type":"string","format":"uri"},"thumbnail_url":{"type":"string","format":"uri"},"is_favorited":{"type":"boolean"},"creation_time":{"description":"Template creation time. Based on user timezone.","type":"string","format":"Y-m-d H:i:s","example":"2019-10-01 13:09:00"},"creation_time_utc":{"description":"Template creation time. Based on UTC+0.","type":"string","format":"Y-m-d H:i:s","example":"2019-10-01 13:09:00"}}}},"forced":{"description":"Forced Template. Only in force_selection mode.","type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["template","user_template"],"example":"template"},"description":{"description":"Template Description.","type":"string","example":""},"theme":{"type":"string"},"builder":{"type":"string"},"preview_url":{"type":"string","format":"uri"},"thumbnail_url":{"type":"string","format":"uri"},"is_favorited":{"type":"boolean"},"creation_time":{"description":"Template creation time. Based on user timezone.","type":"string","format":"Y-m-d H:i:s","example":"2019-10-01 13:09:00"},"creation_time_utc":{"description":"Template creation time. Based on UTC+0.","type":"string","format":"Y-m-d H:i:s","example":"2019-10-01 13:09:00"}}}},"required":false},"site_regions":{"description":"Site Regions(s) setting.","type":"object","properties":{"behavior":{"description":"Site Region Behavior.","type":"string","enum":["allow_selection","force_selection"],"example":"allow_selection","default":"allow_selection"},"is_all_allowed":{"description":"Whether ALL regions allowed. Only in allow_selection mode.","type":"boolean","readonly":true},"allowed":{"description":"Allowed Regions. Only in allow_selection mode.","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"forced":{"description":"Forced Regions. Only in force_selection mode.","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"required":false},"auto_suspend":{"description":"Auto Suspend Settings.","type":"object","properties":{"behavior":{"description":"Auto Suspend Behavior.","type":"string","enum":["when_overdue","do_not_suspend"],"default":"when_overdue"},"days_after":{"description":"Auto Suspend After in days.","type":"integer","example":7,"min":0,"default":7},"auto_unsuspend":{"description":"Auto Unsuspend.","type":"boolean","example":true,"default":true}},"required":false},"auto_delete":{"description":"Auto Delete Settings.","type":"object","properties":{"behavior":{"description":"Auto Delete Behavior.","type":"string","enum":["when_overdue","do_not_delete"],"default":"do_not_delete","example":"do_not_delete"},"days_after":{"description":"Auto Delete After in days.","type":"integer","example":30,"min":0,"default":30}},"required":false},"remove_plan_ids":{"description":"Plan IDs to remove from product.","type":"array","items":{"type":"integer"},"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Product ID","type":"integer","minimum":1,"required":true},"is_delete_stripe_product":{"description":"Whether delete Stripe product too.","type":"boolean","default":true,"required":false}}}]},"\/hub\/v1\/client-billing\/products\/reseller\/hosting\/(?P[\\d]+)\/duplicate":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Product ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing\/products\/reseller\/hosting\/(?P[\\d]+)\/plans\/(?P[\\d]+)\/duplicate":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Product ID","type":"integer","minimum":1,"required":true},"plan_id":{"description":"Plan ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing\/products\/reseller\/hosting\/meta":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/products\/reseller\/hosting\/meta"}]}},"\/hub\/v1\/client-billing\/products\/reseller\/domain\/meta":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/products\/reseller\/domain\/meta"}]}},"\/hub\/v1\/client-billing\/products\/reseller\/domain\/plans":{"namespace":"hub\/v1","methods":["GET","POST","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":20,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false}}},{"methods":["POST"],"args":{"markup_percentage":{"description":"Markup percentage.","type":["number","null"],"minimum":0.01,"maximum":1000,"required":false},"markup_amount":{"description":"Markup amount.","type":["number","null"],"minimum":0.01,"maximum":99999999,"required":false},"tld_ids":{"description":"TLD ID(s) to add -- TLD IDs sourced from meta.","type":"array","minItems":1,"maxItems":300,"uniqueItems":true,"items":{"type":"integer"},"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"markup_percentage":{"description":"Markup percentage.","type":["number","null"],"minimum":0.01,"maximum":1000,"required":false},"markup_amount":{"description":"Markup amount.","type":["number","null"],"minimum":0.01,"maximum":99999999,"required":false},"ids":{"description":"Plan ID(s) to update.","type":"array","minItems":1,"maxItems":300,"uniqueItems":true,"items":{"type":"integer"},"required":true}}},{"methods":["DELETE"],"args":{"ids":{"description":"Plan ID(s) to remove \/ archive.","type":"array","minItems":1,"maxItems":300,"uniqueItems":true,"items":{"type":"integer"},"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing\/products\/reseller\/domain\/plans"}]}},"\/hub\/v1\/client-billing-client":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Client ID","type":"integer","minimum":1,"required":false},"name":{"description":"Client Full Name","type":"string","format":"text-field","minLength":1,"pattern":".*\\S.*","required":false},"email":{"description":"Client email address","type":"string","format":"email","required":false},"role":{"description":"Role Detail","type":"object","properties":{"id":{"description":"Role ID","type":"string","example":"","context":["list","view","edit"]},"name":{"description":"Role Name","type":"string","example":"","context":["list","view","edit"]}},"required":false},"contact_number":{"description":"Client contact number","type":"string","maxLength":20,"required":false},"sites":{"description":"Client's sites","type":"array","items":{"type":"object","properties":{"id":{"description":"Site ID","type":"integer"},"domain":{"description":"Site Domain","type":"string"},"home_url":{"description":"Home URL","type":"string","format":"url","readonly":true,"example":"https:\/\/example.org\/"}}},"required":false},"domains":{"description":"Client's domains","type":"array","items":{"type":"object","properties":{"id":{"description":"Domain name ID","type":"integer"},"domain":{"description":"Domain","type":"string"}}},"required":false},"billing_address":{"description":"Client's Billing address","type":"object","properties":{"line1":{"description":"Business Address line 1.","type":"string","format":"text-field","example":"Address line 1"},"line2":{"description":"Business Address line 2.","type":"string","format":"text-field","example":"Address line 2"},"city":{"description":"Business Address City.","type":"string","format":"text-field","example":"City"},"state":{"description":"Business Address State.","type":"string","format":"text-field","example":"State"},"postal_code":{"description":"Business Address Postal Code.","type":"string","format":"text-field","example":"782"},"country":{"description":"Business Address Country.","type":"string","format":"text-field","example":"country"}},"required":false},"additional_info":{"description":"Client additional info.","type":"array","items":{"type":"object","properties":{"id":{"description":"Field ID.","type":"integer","required":true,"example":1},"name":{"description":"Field Name.","type":"string","readonly":true,"example":"Name"},"type":{"description":"Field type.","type":"string","enum":["text","textarea"],"readonly":true,"example":"text"},"category":{"description":"Field category.","type":"string","enum":["business","client"],"readonly":true,"example":"client"},"value":{"description":"Field value.","type":"string","format":"textarea-field","required":true,"example":"value"}}},"required":false},"primary_hub":{"description":"Primary Hub connected to this client","type":"object","properties":{"id":{"description":"Site identifier","type":"integer","minimum":0,"example":1,"required":true},"domain":{"description":"Domain","type":"string","format":"domain","readonly":true,"example":"example.org"},"home_url":{"description":"Home url of the site.","type":"string","readonly":true,"example":"My Site"},"title":{"description":"Custom Site title. (User defined).","type":"string","readonly":true,"example":"My Site"}},"required":false},"invoice_pdf_preview_base_url":{"description":"Preview invoice base URL in PDF.","type":"string","format":"url","required":false},"invoice_counts":{"description":"Invoice counts by status.","type":"object","properties":{"failed":{"description":"Number of failed invoices.","type":"integer","example":0},"paid":{"description":"Number of paid invoices.","type":"integer","example":0},"payment-due":{"description":"Number of payment due invoices.","type":"integer","example":0},"refunded":{"description":"Number of refunded invoices.","type":"integer","example":0},"void":{"description":"Number of void invoices.","type":"integer","example":0},"draft":{"description":"Number of draft invoices.","type":"integer","example":0},"recurring-draft":{"description":"Number of recurring-draft invoices.","type":"integer","example":0}},"required":false},"stripe_account_id":{"description":"Stripe Account id to be used to setup payment method.","type":"string","required":false},"created_on":{"required":false},"created_on_utc":{"required":false},"invited_on":{"required":false},"invited_on_utc":{"required":false},"invoice_pdf_language":{"description":"Default language for Invoice PDF.","type":"object","properties":{"id":{"description":"Language ID","type":"string","example":"en_US"},"name":{"description":"Language Name","type":"string","example":"English United States"},"percent_translated":{"description":"Percentage of language translated","type":"number","example":100}},"required":false},"currency_symbol":{"description":"Billing Currency symbol.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing-client"}]}},"\/hub\/v1\/client-billing-client\/payment-method\/intent":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing-client\/payment-method\/intent"}]}},"\/hub\/v1\/client-billing-client\/payment-method":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"stripe_payment_method_id":{"description":"Stripe Payment Method id","required":true}}},{"methods":["DELETE"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing-client\/payment-method"}]}},"\/hub\/v1\/client-billing-client\/invoices":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"created_on":{"description":["Filter invoices by date its created. Format \"Y-m-d\".","wpmudev"],"type":"string","pattern":"^[\\d]{4}[-][\\d]{2}[-][\\d]{2}$","required":false},"status":{"description":["Filter invoices by status. Support multiple.","wpmudev"],"type":"array","items":{"type":"string","enum":["draft","payment-due","open","paid","uncollectible","void","refunded","failed"],"example":"payment-due"},"required":false},"site_id":{"description":["Filter invoices by Site ID.","wpmudev"],"type":"integer","required":false},"domain":{"description":["Filter invoices by Domain.","wpmudev"],"type":"string","required":false},"plan_id":{"description":["Filter invoices by Plan ID. Support multiple.","wpmudev"],"type":"array","items":{"type":"integer","example":1},"required":false},"subscription_id":{"description":["Filter invoices by Subscription ID.","wpmudev"],"type":"integer","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing-client\/invoices"}]}},"\/hub\/v1\/client-billing-client\/invoices\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/invoices\/(?P[\\d]+)\/download":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/invoices\/(?P[\\d]+)\/pay":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/invoices\/(?P[\\d]+)\/pay-intent-success":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/invoices\/(?P[\\d]+)\/pay-intent-error":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/one-time-products":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"role_id":{"description":"Filter by role ID.","type":"string","format":"text-field","required":false},"status":{"description":"Filter by status.","type":"string","format":"text-field","enum":["active","inactive","pending"],"required":false},"site_id":{"description":["Filter subscriptions by Site ID.","wpmudev"],"type":"integer","required":false},"domain":{"description":["Filter subscriptions by domain.","wpmudev"],"type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing-client\/one-time-products"}]}},"\/hub\/v1\/client-billing-client\/subscriptions":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"role_id":{"description":"Filter by role ID.","type":"string","format":"text-field","required":false},"status":{"type":"array","items":{"type":"string"},"required":false},"site_id":{"description":["Filter subscriptions by Site ID.","wpmudev"],"type":"integer","required":false},"domain":{"description":["Filter subscriptions by domain.","wpmudev"],"type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing-client\/subscriptions"}]}},"\/hub\/v1\/client-billing-client\/subscriptions\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/subscriptions\/(?P[\\d]+)\/request-cancel":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/checkout\/hosting\/preview":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"plan_id":{"description":"Plan ID","type":"integer","required":true},"temp_domain":{"description":"Temporary Domain","type":"string","format":"text-field","required":true},"email":{"description":"WP admin email","type":"string","format":"email","required":true},"username":{"description":"WP Admin username","type":"string","format":"text-field","required":true},"password":{"description":"WP admin Password","type":"string","format":"text-field","minLength":8,"required":true},"region":{"description":"DEV Hosting Region","type":"string","enum":["atl","ord","dfw","lax","mia","ewr","sea","sjc","mex","yto","ams","fra","lhr","cdg","mad","man","sto","waw","icn","sgp","nrt","itm","blr","bom","del","tlv","syd","mel","jnb","scl"],"required":false},"template_id":{"description":"Template ID","type":"string","format":"text-field","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing-client\/checkout\/hosting\/preview"}]}},"\/hub\/v1\/client-billing-client\/checkout\/hosting\/pay":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"plan_id":{"description":"Plan ID","type":"integer","required":true},"temp_domain":{"description":"Temporary Domain","type":"string","format":"text-field","required":true},"email":{"description":"WP admin email","type":"string","format":"email","required":true},"username":{"description":"WP Admin username","type":"string","format":"text-field","required":true},"password":{"description":"WP admin Password","type":"string","format":"text-field","minLength":8,"required":true},"region":{"description":"DEV Hosting Region","type":"string","enum":["atl","ord","dfw","lax","mia","ewr","sea","sjc","mex","yto","ams","fra","lhr","cdg","mad","man","sto","waw","icn","sgp","nrt","itm","blr","bom","del","tlv","syd","mel","jnb","scl"],"required":false},"template_id":{"description":"Template ID","type":"string","format":"text-field","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing-client\/checkout\/hosting\/pay"}]}},"\/hub\/v1\/client-billing-client\/checkout\/hosting\/(?P[\\d]+)\/pay":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/checkout\/hosting\/(?P[\\d]+)\/pay-intent-success":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/checkout\/hosting\/(?P[\\d]+)\/pay-intent-error":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/checkout\/hosting\/validity\/temp_domain":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"plan_id":{"description":"Plan ID","type":"integer","required":true},"temp_domain":{"description":"Temporary Domain","type":"string","format":"text-field","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing-client\/checkout\/hosting\/validity\/temp_domain"}]}},"\/hub\/v1\/client-billing-client\/checkout\/hosting\/meta\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Product ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/checkout\/domain-names\/preview":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","required":true},"contact_details":{"type":"object","properties":{"owner":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"admin":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"billing":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"tech":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}}},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing-client\/checkout\/domain-names\/preview"}]}},"\/hub\/v1\/client-billing-client\/checkout\/domain-names\/pay":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","required":true},"contact_details":{"type":"object","properties":{"owner":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"admin":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"billing":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"tech":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}}},"required":false},"update_default_contact_details":{"description":"Update stored default contact details with the contact_details input.","type":"boolean","default":false,"required":false},"use_default_contact_details":{"description":"Use stored default contact details. contact_details input will be ignored.","type":"boolean","default":false,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing-client\/checkout\/domain-names\/pay"}]}},"\/hub\/v1\/client-billing-client\/checkout\/domain-names\/(?P[\\d]+)\/pay":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/checkout\/domain-names\/(?P[\\d]+)\/pay-intent-success":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/checkout\/domain-names\/(?P[\\d]+)\/pay-intent-error":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/checkout\/domain-names\/lookup":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"search":{"type":"string","minLength":1,"required":true},"search_key":{"type":"string","required":false},"with_suggestions":{"type":"boolean","default":true,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing-client\/checkout\/domain-names\/lookup"}]}},"\/hub\/v1\/client-billing-client\/checkout\/domain-names\/meta":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-billing-client\/checkout\/domain-names\/meta"}]}},"\/hub\/v1\/client-billing-client\/checkout\/domain-names\/renew\/(?P[\\d]+)\/preview":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"period":{"type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/checkout\/domain-names\/renew\/(?P[\\d]+)\/pay":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"period":{"type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/checkout\/domain-names\/renew\/(?P[\\d]+)\/(?P[\\d]+)\/pay":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/checkout\/domain-names\/renew\/(?P[\\d]+)\/(?P[\\d]+)\/pay-intent-success":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-billing-client\/checkout\/domain-names\/renew\/(?P[\\d]+)\/(?P[\\d]+)\/pay-intent-error":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/client-invitation\/confirm":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"hub_client_invite":{"description":"Invitation hash","type":"string","required":true},"team_id":{"description":"The parent owner.","type":"integer","minimum":1,"required":false},"client_id":{"description":"Invited client identifier","type":"integer","minimum":1,"required":true},"signup":{"description":"Flag whether to do signup or not. Ignored if signup not required","type":"boolean","required":false},"password":{"description":"Password, only on signup","type":"string","minLength":8,"required":false},"redirect_to":{"description":"Path for where redirect will go after successful.","type":"string","required":false},"google_api_auth":{"description":"Trigger Google Auth.","type":"string","required":false},"g_error_redirect":{"description":"Path for where Google error redirect.","type":"string","required":false},"language":{"description":"User language preference.","type":"object","properties":{"id":{"description":"Language ID","type":"string","format":"text-field","example":"en_US","default":"en_US"},"name":{"description":"Language Display Name","type":"string","format":"text-field","example":"English (United States)","default":"English (United States)"}},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client-invitation\/confirm"}]}},"\/hub\/v1\/client\/register":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"plan_id":{"description":"Plan ID.","type":"integer","minimum":1,"required":false},"domain_name":{"description":"Domain name.","type":"string","required":false},"name":{"description":"Name.","type":"string","format":"text-field","required":true},"email":{"description":"Email.","type":"string","format":"email","required":true},"password":{"description":"Password.","type":"string","format":"text-field","minLength":8,"required":true},"language":{"description":"User language preference.","type":"object","properties":{"id":{"description":"Language ID","type":"string","format":"text-field","example":"en_US","default":"en_US"},"name":{"description":"Language Display Name","type":"string","format":"text-field","example":"English (United States)","default":"English (United States)"}},"required":false},"redirect_to":{"description":"Path for where redirect will go after successful.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/client\/register"}]}},"\/hub\/v1\/domain-names":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names"}]}},"\/hub\/v1\/domain-names\/default-contact":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"first_name":{"type":"string","maxLength":64,"required":false},"last_name":{"type":"string","maxLength":64,"required":false},"email":{"type":"string","format":"email","maxLength":255,"required":false},"org_name":{"type":"string","maxLength":64,"required":false},"address1":{"type":"string","maxLength":64,"required":false},"address2":{"type":"string","maxLength":64,"required":false},"address3":{"type":"string","maxLength":64,"required":false},"fax":{"type":"string","required":false},"country":{"type":"string","required":false},"state":{"type":"string","maxLength":32,"required":false},"phone":{"type":"string","maxLength":20,"required":false},"city":{"type":"string","maxLength":64,"required":false},"postal_code":{"type":"string","required":false}}},{"methods":["DELETE"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names\/default-contact"}]}},"\/hub\/v1\/domain-names\/lookup":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"search":{"type":"string","minLength":1,"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names\/lookup"}]}},"\/hub\/v1\/domain-names\/purchase":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","required":true},"period":{"type":"integer","default":1,"minimum":1,"required":false},"is_auto_renew":{"type":"boolean","default":false,"required":false},"contact_details":{"type":"object","properties":{"owner":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"admin":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"billing":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"tech":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}}},"required":false},"client":{"type":"object","properties":{"id":{"description":"Billing client ID connected to this domain.","type":["integer","null"],"example":null},"name":{"description":"Billing client name connected to this domain.","type":"string","example":""},"email":{"description":"Billing client email connected to this domain.","type":"string","format":"email","example":"client@example.org"}},"required":false},"update_default_contact_details":{"description":"Update stored default contact details with the contact_details input.","type":"boolean","default":false,"required":false},"use_default_contact_details":{"description":"Use stored default contact details. contact_details input will be ignored.","type":"boolean","default":false,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names\/purchase"}]}},"\/hub\/v1\/domain-names\/purchase\/metas":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","required":true},"is_auto_renew":{"type":["boolean","null"],"default":null,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names\/purchase\/metas"}]}},"\/hub\/v1\/domain-names\/purchase\/meta":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","required":true},"period":{"type":"integer","default":1,"minimum":1,"required":false},"is_auto_renew":{"type":["boolean","null"],"default":null,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names\/purchase\/meta"}]}},"\/hub\/v1\/domain-names\/checkout\/pending":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names\/checkout\/pending"}]}},"\/hub\/v1\/domain-names\/checkout\/pending\/error":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names\/checkout\/pending\/error"}]}},"\/hub\/v1\/domain-names\/checkout\/pending\/complete":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"contact_details":{"type":"object","properties":{"owner":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"admin":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"billing":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"tech":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}}},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names\/checkout\/pending\/complete"}]}},"\/hub\/v1\/domain-names\/transfer-in\/validate":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names\/transfer-in\/validate"}]}},"\/hub\/v1\/domain-names\/transfer-in":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","required":true},"period":{"type":"integer","default":1,"minimum":1,"maximum":1,"required":false},"is_auto_renew":{"type":"boolean","default":false,"required":false},"auth_info":{"type":"string","minLength":1,"pattern":".*\\S.*","required":true},"use_current_nameservers":{"type":"boolean","default":true,"required":false},"records":{"description":"DNS Records to be added ( when move to Default DNS chosen. Optional","type":"array","items":{"type":"object","properties":{"type":{"description":"The type of the DNS record. For example: A, CNAME, TXT, ...","type":"string","example":"NS","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA"]},"name":{"description":"The host name, alias, or service being defined by the record.","type":"string","example":"www"},"data":{"description":"Variable data depending on record type. For example, the \"data\" value for an A record would be the IPv4 address to which the domain will be mapped. For a CAA record, it would contain the domain name of the CA being granted permission to issue certificates.","type":"string","example":"162.10.66.0"},"priority":{"description":"The priority of the host (for SRV and MX records. null otherwise).","type":["null","integer"],"example":null},"port":{"description":"The port that the service is accessible on (for SRV records only. null otherwise).","type":["null","integer"],"minimum":0,"maximum":65535,"example":null},"ttl":{"description":"This value is the time to live for the record, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested. There is a minimum ttl value of 30, unless it is not set. If not set, the default value is the value of the SOA record. For SOA records, defines the time to live for purposes of negative caching.","type":"integer","minimum":30,"maximum":2147483647,"example":1800,"default":43200,"validate_callback":[{},"ttl_arg_validate_callback"]},"weight":{"description":"The weight of records with the same priority (for SRV records only. null otherwise).","type":["null","integer"],"example":null},"flags":{"description":"An unsigned integer between 0-255 used for CAA records.","type":["null","integer"],"example":null},"tag":{"description":"The parameter tag for CAA records. Valid values are \"issue\", \"issuewild\", or \"iodef\"","type":["null","string"],"example":null}}},"required":false},"use_default_contact_details":{"description":"Use stored default contact details. contact_details input will be ignored.","type":"boolean","default":false,"required":false},"contact_details":{"type":"object","properties":{"owner":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"admin":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"billing":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}},"tech":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"arg_options":{"validate_callback":[{},"validate_contact_details"]}}},"required":false},"update_default_contact_details":{"description":"Update stored default contact details with the contact_details input.","type":"boolean","default":false,"required":false},"client":{"type":"object","properties":{"id":{"description":"Billing client ID connected to this domain.","type":["integer","null"],"example":null},"name":{"description":"Billing client name connected to this domain.","type":"string","example":""},"email":{"description":"Billing client email connected to this domain.","type":"string","format":"email","example":"client@example.org"}},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names\/transfer-in"}]}},"\/hub\/v1\/domain-names\/transfer-in\/metas":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","required":true},"is_auto_renew":{"type":["boolean","null"],"default":null,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names\/transfer-in\/metas"}]}},"\/hub\/v1\/domain-names\/transfer-in\/meta":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","required":true},"period":{"type":"integer","default":1,"minimum":1,"required":false},"is_auto_renew":{"type":["boolean","null"],"default":null,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names\/transfer-in\/meta"}]}},"\/hub\/v1\/domain-names\/transfer-in\/dns-records":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names\/transfer-in\/dns-records"}]}},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/auth-info":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false}}}]},"\/hub\/v1\/domain-names\/domains":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":20,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"status":{"description":["Filter domains by status.","wpmudev"],"type":"string","enum":["active","suspended","expired","transferring_in"],"required":false},"registrant_status":{"description":["Filter domains by registrant status.","wpmudev"],"type":"string","enum":["verified","verifying","pending_current_registrant","pending_new_registrant","suspended"],"required":false},"owner_email":{"description":["Filter domains by owner email.","wpmudev"],"type":"string","format":"email","required":false},"is_auto_renew":{"description":["Filter domains by auto renew status.","wpmudev"],"type":["boolean","null"],"required":false},"is_linked_hosting_site":{"description":["Filter domains by linked hosting site.","wpmudev"],"type":["boolean","null"],"required":false},"orderby":{"description":"Sort domains by object attribute.","type":"string","default":"domain","enum":["id","domain","utf8_domain","expired_time","status","registrant_status"],"required":false},"order":{"description":"Sort directions.","type":"string","default":"asc","enum":["asc","desc"],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/domain-names\/domains"}]}},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/renew\/metas":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/renew":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"period":{"type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/auto-renew":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/transfer-lock":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/verification-email\/send":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"type":{"type":"string","enum":["trade_approval","registrant_verification"],"required":false},"registrant_type":{"type":"string","enum":["new","pending"],"required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/gdpr-consent-reminder-email\/send":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/nameservers":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"is_do_ns":{"type":"boolean","required":false},"nameservers":{"type":"array","items":{"type":"string"},"maxItems":13,"minItems":2,"uniqueItems":true,"required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/nameservers\/pending":{"namespace":"hub\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/contact-details":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"owner":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"required":false},"admin":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"required":false},"billing":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"required":false},"tech":{"type":"object","properties":{"first_name":{"type":"string","maxLength":64},"last_name":{"type":"string","maxLength":64},"email":{"type":"string","format":"email","maxLength":255},"org_name":{"type":"string","maxLength":64},"address1":{"type":"string","maxLength":64},"address2":{"type":"string","maxLength":64},"address3":{"type":"string","maxLength":64},"fax":{"type":"string"},"country":{"type":"string"},"state":{"type":"string","maxLength":32},"phone":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":64},"postal_code":{"type":"string"},"status":{"readonly":true}},"required":false},"active":{"required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/dns-records":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":500,"minimum":1,"maximum":500,"required":false}}},{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"type":{"description":"The type of the DNS record. For example: A, CNAME, TXT, ...","type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA"],"required":true},"name":{"description":"The host name, alias, or service being defined by the record.","type":"string","required":true},"data":{"description":"Variable data depending on record type. For example, the \"data\" value for an A record would be the IPv4 address to which the domain will be mapped. For a CAA record, it would contain the domain name of the CA being granted permission to issue certificates.","type":"string","required":false},"priority":{"description":"The priority of the host (for SRV and MX records. null otherwise).","type":["null","integer"],"required":false},"port":{"description":"The port that the service is accessible on (for SRV records only. null otherwise).","type":["null","integer"],"minimum":0,"maximum":65535,"required":false},"ttl":{"default":43200,"description":"This value is the time to live for the record, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested. There is a minimum ttl value of 30, unless it is not set. If not set, the default value is the value of the SOA record. For SOA records, defines the time to live for purposes of negative caching.","type":"integer","minimum":30,"maximum":2147483647,"required":false},"weight":{"description":"The weight of records with the same priority (for SRV records only. null otherwise).","type":["null","integer"],"required":false},"flags":{"description":"An unsigned integer between 0-255 used for CAA records.","type":["null","integer"],"required":false},"tag":{"description":"The parameter tag for CAA records. Valid values are \"issue\", \"issuewild\", or \"iodef\"","type":["null","string"],"required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/dns-records\/(?P[a-z0-9-]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"record_id":{"description":"Record ID.","type":"string","format":"uuid","required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"record_id":{"description":"Record ID.","type":"string","format":"uuid","required":true},"type":{"description":"The type of the DNS record. For example: A, CNAME, TXT, ...","type":"string","enum":["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA"],"required":false},"name":{"description":"The host name, alias, or service being defined by the record.","type":"string","required":false},"data":{"description":"Variable data depending on record type. For example, the \"data\" value for an A record would be the IPv4 address to which the domain will be mapped. For a CAA record, it would contain the domain name of the CA being granted permission to issue certificates.","type":"string","required":false},"priority":{"description":"The priority of the host (for SRV and MX records. null otherwise).","type":["null","integer"],"required":false},"port":{"description":"The port that the service is accessible on (for SRV records only. null otherwise).","type":["null","integer"],"minimum":0,"maximum":65535,"required":false},"ttl":{"description":"This value is the time to live for the record, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested. There is a minimum ttl value of 30, unless it is not set. If not set, the default value is the value of the SOA record. For SOA records, defines the time to live for purposes of negative caching.","type":"integer","minimum":30,"maximum":2147483647,"required":false},"weight":{"description":"The weight of records with the same priority (for SRV records only. null otherwise).","type":["null","integer"],"required":false},"flags":{"description":"An unsigned integer between 0-255 used for CAA records.","type":["null","integer"],"required":false},"tag":{"description":"The parameter tag for CAA records. Valid values are \"issue\", \"issuewild\", or \"iodef\"","type":["null","string"],"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"record_id":{"description":"Record ID.","type":"string","format":"uuid","required":true}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/hosting-site\/connect":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"hosting_site_id":{"type":"string","required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"integer","required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/clients":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"role_id":{"description":"Filter by role ID.","type":"string","format":"text-field","required":false},"status":{"description":"Filter by status.","type":"string","format":"text-field","enum":["active","inactive","pending"],"required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/client":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"client":{"type":"object","properties":{"id":{"description":"Billing client ID connected to this domain.","type":["integer","null"],"example":null}},"required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/invoices":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"created_on":{"description":["Filter invoices by date its created. Format \"Y-m-d\".","wpmudev"],"type":"string","pattern":"^[\\d]{4}[-][\\d]{2}[-][\\d]{2}$","required":false},"status":{"description":["Filter invoices by status. Support multiple.","wpmudev"],"type":"array","items":{"type":"string","enum":["draft","payment-due","open","paid","uncollectible","void","refunded","failed"],"example":"payment-due"},"required":false},"site_id":{"description":["Filter invoices by Site ID.","wpmudev"],"type":"integer","required":false},"plan_id":{"description":["Filter invoices by Plan ID. Support multiple.","wpmudev"],"type":"array","items":{"type":"integer","example":1},"required":false},"subscription_id":{"description":["Filter invoices by Subscription ID.","wpmudev"],"type":"integer","required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/invoices\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true},"items":{"type":"array","minItems":1,"items":{"type":"object","properties":{"plan":{"type":"object","properties":{"id":{"type":"integer","required":true}},"required":true},"quantity":{"type":"integer","required":true,"minimum":1}}},"required":true},"taxes":{"type":"array","uniqueItems":true,"maxItems":5,"items":{"type":"object","properties":{"id":{"description":"Tax Rate ID","type":"integer","required":true}}},"required":false},"invoice_note":{"description":"Invoice note","type":["null","string"],"default":null,"required":false},"is_send_invoice":{"description":"Whether to send invoice directly","type":"boolean","default":false,"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/invoices\/(?P[\\d]+)\/download":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/invoices\/(?P[\\d]+)\/mark-as-paid":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true},"method":{"description":"Payment method","type":"string","enum":["cash","check","bank_transfer","other"],"required":true},"reference":{"description":"Payment reference","type":"string","required":false},"date":{"description":"Payment date","type":"string","pattern":"^[\\d]{4}[-][\\d]{2}[-][\\d]{2}$","required":false},"is_send_receipt":{"description":"Whether to send receipt to client","type":"boolean","default":false,"required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/invoices\/(?P[\\d]+)\/mark-as-void":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true},"is_cancel_subscription":{"description":"Whether to cancel attached subscription.","type":"boolean","default":false,"required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/invoices\/(?P[\\d]+)\/refund":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true},"amount":{"description":"Refund amount, optional. Default is full amount","type":"number","required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/invoices\/(?P[\\d]+)\/pay":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/invoices\/(?P[\\d]+)\/pay-intent-success":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/invoices\/(?P[\\d]+)\/pay-intent-error":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/invoices\/(?P[\\d]+)\/send-email":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"invoice_id":{"description":"Invoice ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/one-time-products":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"role_id":{"description":"Filter by role ID.","type":"string","format":"text-field","required":false},"status":{"description":"Filter by status.","type":"string","format":"text-field","enum":["active","inactive","pending"],"required":false},"site_id":{"description":["Filter subscriptions by Site ID.","wpmudev"],"type":"integer","required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/one-time-products\/(?P[\\d]+)\/re-bill":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"one_time_product_id":{"description":"One Time Product ID","type":"integer","minimum":1,"required":true},"invoice_note":{"description":"Invoice note","type":["null","string"],"default":null,"required":false},"is_send_invoice":{"description":"Whether to send invoice directly","type":"boolean","default":true,"required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/products":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":1000,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort products by object attribute.","type":"string","default":"product_id","enum":["product_id","name","created_on"],"required":false},"ids":{"description":"Filter by IDs.","type":"array","items":{"type":"integer"},"required":false},"is_archived_products":{"description":"Filter the results.","type":["boolean","null"],"default":null,"required":false},"is_archived_plans":{"description":"Filter the plan results.","type":["boolean","null"],"default":null,"required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/subscriptions":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"role_id":{"description":"Filter by role ID.","type":"string","format":"text-field","required":false},"status":{"type":"array","items":{"type":"string"},"required":false},"site_id":{"description":["Filter subscriptions by Site ID.","wpmudev"],"type":"integer","required":false}}},{"methods":["POST"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"items":{"type":"array","items":{"type":"object","properties":{"plan":{"type":"object","properties":{"id":{"type":"integer","required":true}},"required":true},"quantity":{"type":"integer","required":true,"minimum":1}}},"required":false},"taxes":{"type":"array","uniqueItems":true,"maxItems":5,"items":{"type":"object","properties":{"id":{"description":"Tax Rate ID","type":"integer","required":true}}},"required":false},"invoice_note":{"description":"Invoice note","type":["null","string"],"default":null,"required":false},"is_send_invoice":{"description":"Whether to send invoice directly","type":"boolean","default":false,"required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/subscriptions\/invoice-pdf-preview":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"items":{"type":"array","minItems":1,"items":{"type":"object","properties":{"plan":{"type":"object","properties":{"id":{"type":"integer","required":true}},"required":true},"quantity":{"type":"integer","required":true,"minimum":1}}},"required":true},"taxes":{"type":"array","uniqueItems":true,"maxItems":5,"items":{"type":"object","properties":{"id":{"description":"Tax Rate ID","type":"integer","required":true}}},"required":false},"invoice_note":{"description":"Invoice note","type":["null","string"],"default":null,"required":false},"invoice_id":{"description":"Invoice ID. If the context is editing draft.","type":["null","integer"],"default":null,"required":false}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/subscriptions\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/subscriptions\/(?P[\\d]+)\/cancel":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/subscriptions\/(?P[\\d]+)\/request-cancel":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/modules\/billing\/subscriptions\/(?P[\\d]+)\/reactivate":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"subscription_id":{"description":"Subscription ID","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/domain-names\/domains\/(?P[\\d]+)\/billing\/tax-rates":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain Identifier.","type":"number","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"is_active":{"description":"Filter the results based on active status.","type":["boolean","null"],"default":null,"required":false}}}]},"\/hub\/v1\/webmail":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/webmail"}]}},"\/hub\/v1\/webmail\/checkout\/pending":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/webmail\/checkout\/pending"}]}},"\/hub\/v1\/webmail\/checkout\/pending\/error":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/webmail\/checkout\/pending\/error"}]}},"\/hub\/v1\/webmail\/checkout\/pending\/complete":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"account_password":{"type":"string","minLength":10,"maxLength":34,"pattern":"^[a-zA-Z\\d~!@$%^&()\\-_=+\\\/\\\\\\]\\[{}:;><,.'|?#]","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/webmail\/checkout\/pending\/complete"}]}},"\/hub\/v1\/webmail\/domains":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort by object attribute.","type":"string","default":"id","enum":["id","domain","utf8_domain","created_time","num_accounts"],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/webmail\/domains"}]}},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/webmail\/domains\/plans":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/webmail\/domains\/plans"}]}},"\/hub\/v1\/webmail\/domains\/purchase":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"account_name":{"type":"string","format":"email","required":true},"account_password":{"type":"string","minLength":10,"maxLength":34,"pattern":"^[a-zA-Z\\d~!@$%^&()\\-_=+\\\/\\\\\\]\\[{}:;><,.'|?#]","required":true},"plan":{"type":"string","default":"","enum":[],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/webmail\/domains\/purchase"}]}},"\/hub\/v1\/webmail\/domains\/purchase\/meta":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"account_name":{"type":"string","format":"email","required":true},"plan":{"type":"string","default":"","enum":[],"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/webmail\/domains\/purchase\/meta"}]}},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/dns-record":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/dns-record\/verify":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/dns-record\/add":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/config":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/config\/download":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/client":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"client_id":{"description":"Client identifier. Pass null to remove existing association.","type":["integer","null"],"required":false}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort by object attribute.","type":"string","default":"id","enum":["id","account_name","utf8_account_name","created_time","status"],"required":false}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","list","edit"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort by object attribute.","type":"string","default":"id","enum":["id","account_name","utf8_account_name","created_time","status"],"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true},"check":{"type":"integer","default":0,"enum":[0,1],"required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/(?P[\\d]+)\/plans":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/purchase":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_name":{"type":"string","format":"email","required":true},"account_password":{"type":"string","minLength":10,"maxLength":34,"pattern":"^[a-zA-Z\\d~!@$%^&()\\-_=+\\\/\\\\\\]\\[{}:;><,.'|?#]","required":true},"plan":{"type":"string","default":"","enum":[],"required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/(?P[\\d]+)\/purchase":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true},"plan":{"type":"string","enum":[],"required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/purchase\/meta":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_name":{"type":"string","format":"email","required":true},"plan":{"type":"string","default":"","enum":[],"required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/(?P[\\d]+)\/purchase\/meta":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true},"plan":{"type":"string","enum":[],"required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/(?P[\\d]+)\/sso":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/(?P[\\d]+)\/enable":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/(?P[\\d]+)\/forward":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true},"is_enabled":{"type":"boolean","required":false},"recipients":{"type":"array","items":{"type":"string","format":"email"},"uniqueItems":true,"required":false}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/(?P[\\d]+)\/alias":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true},"aliases":{"type":"array","items":{"type":"string","format":"email"},"uniqueItems":true,"required":false}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/(?P[\\d]+)\/rename":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true},"account_name":{"type":"string","format":"email","required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/(?P[\\d]+)\/password":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true},"account_password":{"type":"string","minLength":10,"maxLength":34,"pattern":"^[a-zA-Z\\d~!@$%^&()\\-_=+\\\/\\\\\\]\\[{}:;><,.'|?#]","required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/(?P[\\d]+)\/config\/download":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backlinks":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backlinks\/scan":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"type":"integer","description":"Hub Site ID.","required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/backlinks\/export":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"type":"integer","description":"Hub Site ID.","required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/link-checker":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/doc":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/doc"}]}},"\/hub\/v1\/account\/notice":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/account\/notice"}]}},"\/hub\/v1\/ticket":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"is_tour_started":{"type":["boolean",null],"required":false},"is_sample_ticket_deleted":{"type":["boolean",null],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/ticket"}]}},"\/hub\/v1\/ticket\/settings":{"namespace":"hub\/v1","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"default_assignee":{"type":"object","properties":{"id":{"type":"integer","minimum":0},"name":{"type":"string"},"avatar_url":{"type":"string"},"ticket_caps":{"type":"array"}},"required":false},"statuses":{"type":"array","items":{"type":"object","maxItems":10,"properties":{"name":{"type":"string","format":"text-field","maxLength":50},"slug":{"type":"string","maxLength":20},"color":{"type":"string","format":"hex-color"},"is_open":{"type":"boolean","readonly":true},"is_closed":{"type":"boolean","readonly":true}}},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/ticket\/settings"}]}},"\/hub\/v1\/ticket\/tickets":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["list","detail","client_list","client_detail"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"statuses":{"description":"Filter tickets by multiple statuses.","type":"array","items":{"type":"string"},"default":null,"required":false},"is_read":{"description":"Filter tickets by read status.","type":"boolean","default":null,"required":false},"priorities":{"description":"Filter tickets by multiple priorities.","type":"array","items":{"type":"string","enum":["high","medium","low"]},"default":null,"required":false},"assignee_ids":{"description":"Filter tickets by Assignee Id.","type":"array","items":{"type":"integer"},"required":false},"reporter_ids":{"description":"Filter tickets by Reporter Id.","type":"array","uniqueItems":true,"items":{"type":"integer"},"required":false}}},{"methods":["POST"],"args":{"title":{"type":"string","minLength":20,"maxLength":100,"required":true},"content":{"type":"string","required":true},"is_email_notification_enabled":{"type":"boolean","required":false},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"original_width":{"type":"string"},"original_height":{"type":"string"},"size":{"type":"integer"},"mime_type":{"type":"string"},"urls":{"type":"string"}}},"required":false},"priority":{"type":"string","enum":["high","medium","low"],"required":false},"is_client_email_notification_enabled":{"type":"boolean","required":false},"client_id":{"type":"integer","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/ticket\/tickets"}]}},"\/hub\/v1\/ticket\/tickets\/attachments":{"namespace":"hub\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/ticket\/tickets\/attachments"}]}},"\/hub\/v1\/ticket\/tickets\/attachments\/(?P[\\d]+)\/(?P[A-Fa-f0-9]{64})\/(?P[a-z0-9]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Attachment identifier","type":"integer","minimum":1,"required":true},"verifier_hash":{"description":"Verifier Hash","type":"string","required":true},"size":{"description":"Size","type":"string","required":true}}}]},"\/hub\/v1\/ticket\/tickets\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Ticket ID.","type":"integer","required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Ticket ID.","type":"integer","required":true}}}]},"\/hub\/v1\/ticket\/tickets\/(?P[\\d]+)\/read":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Ticket ID.","type":"integer","required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Ticket ID.","type":"integer","required":true}}}]},"\/hub\/v1\/ticket\/tickets\/(?P[\\d]+)\/status":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Ticket ID.","type":"integer","required":true},"slug":{"description":"Status slug.","type":"string","required":true}}}]},"\/hub\/v1\/ticket\/tickets\/(?P[\\d]+)\/priority":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Ticket ID.","type":"integer","required":true},"priority":{"description":"Priority.","type":"string","required":true}}}]},"\/hub\/v1\/ticket\/tickets\/(?P[\\d]+)\/assignee":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Ticket ID.","type":"integer","required":true},"assignee_id":{"description":"Assignee ID.","type":"integer","minimum":0,"required":true}}}]},"\/hub\/v1\/ticket\/tickets\/(?P[\\d]+)\/email-notification":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Ticket ID.","type":"integer","required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Ticket ID.","type":"integer","required":true}}}]},"\/hub\/v1\/ticket\/tickets\/(?P[\\d]+)\/replies":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Ticket ID.","type":"integer","required":true}}},{"methods":["POST"],"args":{"id":{"description":"Ticket ID.","type":"integer","required":true},"content":{"type":"string","required":true},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"original_width":{"type":"string"},"original_height":{"type":"string"},"size":{"type":"integer"},"mime_type":{"type":"string"},"urls":{"type":"string"}}},"maxItems":5,"uniqueItems":true,"required":false}}}]},"\/hub\/v1\/ticket\/tickets\/(?P[\\d]+)\/replies\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Ticket ID.","type":"integer","required":true},"reply_id":{"description":"Reply ID.","type":"integer","required":true},"content":{"type":"string","required":false},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"original_width":{"type":"string"},"original_height":{"type":"string"},"size":{"type":"integer"},"mime_type":{"type":"string"},"urls":{"type":"string"}}},"maxItems":5,"uniqueItems":true,"required":false}}}]},"\/hub\/v1\/ticket\/clients":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"ids":{"description":"Filter clients by specific Id.","type":"array","uniqueItems":true,"items":{"type":"integer"},"required":false},"priority_ids":{"description":"Prioritize clients by specific Id -- to be appeared as first items.","type":"array","uniqueItems":true,"items":{"type":"integer"},"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/ticket\/clients"}]}},"\/hub\/v1\/ticket\/clients\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Client ID.","type":"integer","required":true}}}]},"\/hub\/v1\/ticket\/client-roles-caps":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":[]},{"methods":["DELETE"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/ticket\/client-roles-caps"}]}},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/(?P[\\d]+)\/migrations":{"namespace":"hub\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["list","detail"],"required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"status":{"description":"Filter by status.","type":"string","enum":["in-progress","completed","error"],"required":false}}},{"methods":["POST"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true},"source_email_address":{"type":"string","format":"email","required":true},"source_server":{"description":"Source server.","type":"string","format":"text-field","required":true},"method":{"description":"Method.","type":"string","enum":["imap4","imap4s","pop3","pop3s"],"required":true},"source_email_password":{"description":"Source Email Password.","type":"string","format":"text-field","required":true}}}]},"\/hub\/v1\/webmail\/domains\/(?P[\\d]+)\/accounts\/(?P[\\d]+)\/migrations\/(?P[\\d]+)":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Domain identifier","type":"integer","minimum":1,"required":true},"account_id":{"description":"Account identifier","type":"integer","minimum":1,"required":true},"migration_id":{"description":"Migration identifier","type":"integer","minimum":1,"required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/http3":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"is_enabled":{"description":"Is HTTP3 is enabled?","type":"boolean","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/antibot":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"is_active":{"description":"Whether Antibot feature is active","type":"boolean","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/global-ip-list":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true},"is_active":{"description":"Whether Global IP List feature is active","type":"boolean","required":false}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/hosting\/global-ip-list\/sync":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/security\/antibot":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/security\/global-ip-list":{"namespace":"hub\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/sites\/(?P[\\d]+)\/modules\/security\/global-ip-list\/sync":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Site identifier","type":"integer","minimum":1,"required":true}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/http3":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"is_enabled":{"description":"Is HTTP3 is enabled?","type":"boolean","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/antibot":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"is_active":{"description":"Whether Antibot feature is active","type":"boolean","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/global-ip-list":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true},"is_active":{"description":"Whether Global IP List feature is active","type":"boolean","required":false}}}]},"\/hub\/v1\/hosting-sites\/(?P[\\w-]+)\/modules\/hosting\/global-ip-list\/sync":{"namespace":"hub\/v1","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"hosting_site_id":{"description":"Hosting Site identifier","type":"string","required":true}}}]},"\/hub\/v1\/antibot\/stats":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/antibot\/stats"}]}},"\/hub\/v1\/antibot\/ip-check":{"namespace":"hub\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"ip":{"description":"IP Address.","type":"string","format":"ip","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/antibot\/ip-check"}]}},"\/hub\/v1\/jwt-auth":{"namespace":"hub\/v1\/jwt-auth","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"hub\/v1\/jwt-auth","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/jwt-auth"}]}},"\/hub\/v1\/jwt-auth\/token":{"namespace":"hub\/v1\/jwt-auth","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/jwt-auth\/token"}]}},"\/hub\/v1\/jwt-auth\/token\/validate":{"namespace":"hub\/v1\/jwt-auth","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/jwt-auth\/token\/validate"}]}},"\/hub\/v1\/jwt-auth\/token\/refresh":{"namespace":"hub\/v1\/jwt-auth","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/jwt-auth\/token\/refresh"}]}},"\/hub\/v1\/jwt-auth\/token\/revoke":{"namespace":"hub\/v1\/jwt-auth","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/jwt-auth\/token\/revoke"}]}},"\/hub\/v1\/jwt-auth\/email-2fa-backup-code":{"namespace":"hub\/v1\/jwt-auth","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hub\/v1\/jwt-auth\/email-2fa-backup-code"}]}},"\/hustle\/v1":{"namespace":"hustle\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"hustle\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hustle\/v1"}]}},"\/hustle\/v1\/provider":{"namespace":"hustle\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"state":{"type":"string","description":"Unique nonce generated from Hustle user site and Hustle user site_url() splited by |.","required":true},"action":{"type":"string","description":"The request action to execute.","required":true},"provider":{"type":"string","description":"The name of email provider or app.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/hustle\/v1\/provider"}]}},"\/microservices\/notifications":{"namespace":"microservices\/notifications","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"microservices\/notifications","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/microservices\/notifications"}]}},"\/microservices\/notifications\/record":{"namespace":"microservices\/notifications","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"user_id":{"required":true},"type":{"required":true},"message":{"required":true},"link":{"default":false,"required":false},"icon":{"default":false,"required":false},"object_id":{"default":0,"required":false},"extra":{"default":"","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/microservices\/notifications\/record"}]}},"\/microservices\/notifications\/topic_notification":{"namespace":"microservices\/notifications","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"forum_id":{"required":true},"author":{"required":true},"title":{"required":true},"excerpt":{"required":true},"category":{"required":true},"link":{"required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/microservices\/notifications\/topic_notification"}]}},"\/mail-subscriptions\/v1":{"namespace":"mail-subscriptions\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"mail-subscriptions\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/mail-subscriptions\/v1"}]}},"\/mail-subscriptions\/v1\/subscription":{"namespace":"mail-subscriptions\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"m":{"description":"Email Address.","type":"email","format":"email","required":true},"i":{"description":"Service name","type":"string","required":true},"w":{"description":"Website ID.","type":"number","required":true},"h":{"description":"Secret Hash. Generated by system, you dont ned to create it, jut pass it on what you got.","type":"string","required":true},"uid":{"description":"Unsubscription id.","type":"integer","required":false},"ur":{"description":"Unsubscription reason.","type":"string","required":false}}},{"methods":["DELETE"],"args":{"m":{"description":"Email Address.","type":"email","format":"email","required":true},"i":{"description":"Service name","type":"string","required":true},"w":{"description":"Website ID.","type":"number","required":true},"h":{"description":"Secret Hash. Generated by system, you dont ned to create it, jut pass it on what you got.","type":"string","required":true},"uid":{"description":"Unsubscription id.","type":"integer","required":false},"ur":{"description":"Unsubscription reason.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/mail-subscriptions\/v1\/subscription"}]}},"\/performance\/v1":{"namespace":"performance\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"performance\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v1"}]}},"\/performance\/v1\/site\/check":{"namespace":"performance\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation. (Or network_home_url if not passing an apikey)","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v1\/site\/check"}]}},"\/performance\/v1\/site\/result\/latest":{"namespace":"performance\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation. (Or network_home_url if not passing an apikey)","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v1\/site\/result\/latest"}]}},"\/performance\/v1\/site\/result\/ignore":{"namespace":"performance\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation. (Or network_home_url if not passing an apikey)","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v1\/site\/result\/ignore"}]}},"\/performance\/v1\/site\/result\/previous":{"namespace":"performance\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation. (Or network_home_url if not passing an apikey)","required":true},"unix_timestamp":{"type":"integer","description":"Will select the latest result BEFORE this timestamp","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v1\/site\/result\/previous"}]}},"\/performance\/v1\/auth-check\/(?P[\\w-]+)":{"namespace":"performance\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"api_key":{"required":true}}}]},"\/performance\/v1\/test\/gzip":{"namespace":"performance\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"tests":{"type":"json","description":"A JSON array of test types and urls to test. Example { \"CSS\": http:\/\/site.com\/core\/modules\/dummy\/dummy-style.css\", \"HTML\": http:\/\/site.com\/\" }","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v1\/test\/gzip"}]}},"\/performance\/v1\/test\/cache":{"namespace":"performance\/v1","methods":["POST","POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"tests":{"type":"json","description":"A JSON array of test types and urls to test. Example { \"css\": http:\/\/site.com\/core\/modules\/dummy\/dummy-style.css\", \"images\": http:\/\/site.com\/core\/modules\/dummy\/dummy-image.png\" }","required":true}}},{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v1\/test\/cache"}]}},"\/microservices\/points":{"namespace":"microservices\/points","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"microservices\/points","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/microservices\/points"}]}},"\/microservices\/points\/(?Prep|hero)\/record\/(?P[\\d]+)":{"namespace":"microservices\/points","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"type":{"required":true},"user_id":{"required":true},"points":{"required":true},"reason_code":{"required":true},"reason":{"required":true},"object_id":{"required":false},"from_user":{"required":false},"from_reason":{"required":false}}}]},"\/microservices\/points\/(?Prep|hero)\/history\/(?P[\\d]+)":{"namespace":"microservices\/points","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"type":{"required":true},"user_id":{"required":true},"reason_code":{"default":false,"required":false},"start":{"default":0,"required":false},"limit":{"default":10,"required":false}}}]},"\/helpscout\/v1":{"namespace":"helpscout\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"helpscout\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/helpscout\/v1"}]}},"\/helpscout\/v1\/mailjet\/subscription":{"namespace":"helpscout\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"action":{"description":"Action","type":"string","enum":["subscribe","unsubscribe"],"required":true},"user_id":{"description":"DEV user id","type":"integer","required":true},"list_id":{"description":"Mailjet list id","type":"integer","required":true},"_mjnonce":{"description":"Nonce","type":"string","required":true},"redirect_to":{"description":"Redirect URL","type":"string","format":"uri","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/helpscout\/v1\/mailjet\/subscription"}]}},"\/helpscout-webhook\/v1":{"namespace":"helpscout-webhook\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"helpscout-webhook\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/helpscout-webhook\/v1"}]}},"\/helpscout-webhook\/v1\/conversation-replies":{"namespace":"helpscout-webhook\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/helpscout-webhook\/v1\/conversation-replies"}]}},"\/helpscout-webhook\/v1\/mailjet-email-lists":{"namespace":"helpscout-webhook\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/helpscout-webhook\/v1\/mailjet-email-lists"}]}},"\/performance\/v2":{"namespace":"performance\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"performance\/v2","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v2"}]}},"\/performance\/v2\/site\/check":{"namespace":"performance\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation. (Or network_home_url if not passing an apikey)","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v2\/site\/check"}]}},"\/performance\/v2\/site\/seo-check":{"namespace":"performance\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation. (Or network_home_url if not passing an apikey)","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v2\/site\/seo-check"}]}},"\/performance\/v2\/site\/set-lighthouse-status":{"namespace":"performance\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"active":{"type":"boolean","description":"Whether or not the new LH SEO mode is active.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v2\/site\/set-lighthouse-status"}]}},"\/performance\/v2\/site\/result\/latest":{"namespace":"performance\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation. (Or network_home_url if not passing an apikey)","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v2\/site\/result\/latest"}]}},"\/performance\/v2\/site\/seo-result\/latest":{"namespace":"performance\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation. (Or network_home_url if not passing an apikey)","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v2\/site\/seo-result\/latest"}]}},"\/performance\/v2\/site\/result\/ignore":{"namespace":"performance\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation. (Or network_home_url if not passing an apikey)","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v2\/site\/result\/ignore"}]}},"\/performance\/v2\/auth-check\/(?P[\\w-]+)":{"namespace":"performance\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"api_key":{"required":true}}}]},"\/microservices\/performance":{"namespace":"microservices\/performance","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"microservices\/performance","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/microservices\/performance"}]}},"\/microservices\/performance\/site\/check":{"namespace":"microservices\/performance","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation. (Or network_home_url if not passing an apikey)","required":true},"user_id":{"type":"integer","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/microservices\/performance\/site\/check"}]}},"\/performance\/v2\/test\/gzip":{"namespace":"performance\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"tests":{"type":"json","description":"A JSON array of test types and urls to test. Example { \"CSS\": http:\/\/site.com\/core\/modules\/dummy\/dummy-style.css\", \"HTML\": http:\/\/site.com\/\" }","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v2\/test\/gzip"}]}},"\/performance\/v2\/test\/cache":{"namespace":"performance\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"tests":{"type":"json","description":"A JSON array of test types and urls to test. Example { \"css\": http:\/\/site.com\/core\/modules\/dummy\/dummy-style.css\", \"images\": http:\/\/site.com\/core\/modules\/dummy\/dummy-image.png\" }","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v2\/test\/cache"}]}},"\/performance\/v2\/delay_js_exclusion_list":{"namespace":"performance\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v2\/delay_js_exclusion_list"}]}},"\/performance\/v2\/critical-css\/calculate":{"namespace":"performance\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"type":{"type":"string","description":"The type of critical CSS to calculate e.g. PURGE","enum":["PURGE","CRITICAL"],"required":true},"domain":{"type":"string","description":"The network_site_url() of the WP installation. (Or network_home_url if not passing an apikey)","required":true},"ignored":{"type":"array","items":{"type":"string"},"required":false},"urls":{"type":"object","patternProperties":{"[a-zA-Z0-9_.-]*$":{"type":"string"}},"description":"URLs for which critical CSS needs to be calculated. Each URL must start with the \"domain\".","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v2\/critical-css\/calculate"}]}},"\/performance\/v2\/critical-css\/get":{"namespace":"performance\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation. (Or network_home_url if not passing an apikey)","required":true},"id":{"type":"string","description":"ID of the critical css job.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v2\/critical-css\/get"}]}},"\/performance\/v3":{"namespace":"performance\/v3","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"performance\/v3","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v3"}]}},"\/performance\/v3\/critical-css\/calculate":{"namespace":"performance\/v3","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"type":{"type":"string","description":"The type of critical CSS to calculate e.g. PURGE","enum":["PURGE","CRITICAL"],"required":true},"domain":{"type":"string","description":"The network_site_url() of the WP installation. (Or network_home_url if not passing an apikey)","required":true},"ignored":{"type":"array","items":{"type":"string"},"required":false},"items":{"type":"object","patternProperties":{"[a-zA-Z0-9_.-]*$":{"type":"object","properties":{"url":{"type":"string"},"width":{"type":"integer","minimum":0},"height":{"type":"integer","minimum":0}}}},"description":"Items for which critical CSS needs to be calculated. Each URL must start with the \"domain\".","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v3\/critical-css\/calculate"}]}},"\/performance\/v3\/critical-css\/get":{"namespace":"performance\/v3","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation. (Or network_home_url if not passing an apikey)","required":true},"id":{"type":"string","description":"ID of the critical css job.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/performance\/v3\/critical-css\/get"}]}},"\/defender\/v1":{"namespace":"defender\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"defender\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/defender\/v1"}]}},"\/defender\/v1\/signatures":{"namespace":"defender\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/defender\/v1\/signatures"}]}},"\/defender\/v1\/yara-signatures":{"namespace":"defender\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/defender\/v1\/yara-signatures"}]}},"\/defender\/v1\/vulnerabilities":{"namespace":"defender\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"wordpress":{"type":"string","description":"Version number of the WP installation from $wp_version.","required":true},"plugins":{"type":"json","description":"A JSON array of plugin slugs and version number","required":true},"themes":{"type":"json","description":"A JSON array of plugin slugs and version number","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/defender\/v1\/vulnerabilities"}]}},"\/defender\/v1\/scan-results":{"namespace":"defender\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation to save scan results for.","required":true},"timestamp":{"type":"integer","description":"The unix timestamp the scan was performed.","required":true},"cautions":{"type":"integer","description":"Count of hardening cautions from this scan.","required":true},"warnings":{"type":"integer","description":"Count of warnings from this scan.","required":true},"data_version":{"type":"string","description":"The version string for the data object like 20160115.","required":true},"scan_data":{"type":"json","description":"A JSON object with the detailed scan data.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/defender\/v1\/scan-results"}]}},"\/defender\/v1\/blacklist-monitoring":{"namespace":"defender\/v1","methods":["POST","DELETE","GET"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation to enable monitoring for.","required":true}}},{"methods":["DELETE"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation to disable monitoring for.","required":true}}},{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation to get status for.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/defender\/v1\/blacklist-monitoring"}]}},"\/audit\/v1":{"namespace":"audit\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"audit\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/audit\/v1"}]}},"\/audit\/v1\/check":{"namespace":"audit\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/audit\/v1\/check"}]}},"\/seo-audit\/v1":{"namespace":"seo-audit\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"seo-audit\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-audit\/v1"}]}},"\/seo-audit\/v1\/start":{"namespace":"seo-audit\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-audit\/v1\/start"}]}},"\/seo-audit\/v1\/status":{"namespace":"seo-audit\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-audit\/v1\/status"}]}},"\/seo-audit\/v1\/result":{"namespace":"seo-audit\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-audit\/v1\/result"}]}},"\/seo-audit\/v1\/sync":{"namespace":"seo-audit\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"ignored_issue_ids":{"type":"string","description":"JSON-encoded list of issues","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-audit\/v1\/sync"}]}},"\/seo-audit\/v1\/ping":{"namespace":"seo-audit\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"user_id":{"type":"integer","description":"User ID","required":true},"site_id":{"type":"integer","description":"Site ID","required":true},"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-audit\/v1\/ping"}]}},"\/seo-audit\/v1\/complete":{"namespace":"seo-audit\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"user_id":{"type":"integer","description":"User ID","required":true},"site_id":{"type":"integer","description":"Site ID","required":true},"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-audit\/v1\/complete"}]}},"\/seo-audit\/v1\/emails":{"namespace":"seo-audit\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"emails":{"type":"array","description":"Array of valid emails","required":true},"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-audit\/v1\/emails"}]}},"\/seo-audit\/v1\/checkup":{"namespace":"seo-audit\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"seed":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"data":{"type":"array","description":"A JSON object with results.","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-audit\/v1\/checkup"}]}},"\/seo-audit\/v1\/staff-test":{"namespace":"seo-audit\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"api_key":{"type":"string","description":"API key","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-audit\/v1\/staff-test"}]}},"\/seo-checkup\/v1":{"namespace":"seo-checkup\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"seo-checkup\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-checkup\/v1"}]}},"\/seo-checkup\/v1\/start":{"namespace":"seo-checkup\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-checkup\/v1\/start"}]}},"\/seo-checkup\/v1\/result":{"namespace":"seo-checkup\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-checkup\/v1\/result"}]}},"\/seo-checkup\/v1\/emails":{"namespace":"seo-checkup\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"emails":{"type":"array","description":"Array of valid emails","required":true},"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-checkup\/v1\/emails"}]}},"\/seo-checkup\/v1.1":{"namespace":"seo-checkup\/v1.1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"seo-checkup\/v1.1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-checkup\/v1.1"}]}},"\/seo-checkup\/v1.1\/start":{"namespace":"seo-checkup\/v1.1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-checkup\/v1.1\/start"}]}},"\/seo-checkup\/v1.1\/result":{"namespace":"seo-checkup\/v1.1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-checkup\/v1.1\/result"}]}},"\/seo-checkup\/v1.1\/emails":{"namespace":"seo-checkup\/v1.1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"emails":{"type":"array","description":"Array of valid emails","required":true},"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-checkup\/v1.1\/emails"}]}},"\/seo-checkup\/v1.1\/sync":{"namespace":"seo-checkup\/v1.1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"ignored_issue_ids":{"type":"string","description":"JSON-encoded list of issues","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/seo-checkup\/v1.1\/sync"}]}},"\/shipper\/v1.0":{"namespace":"shipper\/v1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"shipper\/v1.0","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0"}]}},"\/shipper\/v1.0\/destinations-get":{"namespace":"shipper\/v1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/destinations-get"}]}},"\/shipper\/v1.0\/destinations-add":{"namespace":"shipper\/v1.0","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"Destination domain - network_site_url of the install","required":true},"key":{"type":"string","description":"Destination specific access key","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/destinations-add"}]}},"\/shipper\/v1.0\/destinations-remove":{"namespace":"shipper\/v1.0","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"site_id":{"type":"number","description":"ID of the site to remove","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/destinations-remove"}]}},"\/shipper\/v1.0\/destinations-ping":{"namespace":"shipper\/v1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"Destination domain - network_site_url of the install","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/destinations-ping"}]}},"\/shipper\/v1.0\/destinations-listall":{"namespace":"shipper\/v1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/destinations-listall"}]}},"\/shipper\/v1.0\/destinations-prepare":{"namespace":"shipper\/v1.0","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"Destination domain - network_site_url of the install","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/destinations-prepare"}]}},"\/shipper\/v1.0\/destinations-preparelist":{"namespace":"shipper\/v1.0","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"Destination domain - network_site_url of the install","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/destinations-preparelist"}]}},"\/shipper\/v1.0\/info-get":{"namespace":"shipper\/v1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"Destination domain - network_site_url of the install","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/info-get"}]}},"\/shipper\/v1.0\/info-preflight":{"namespace":"shipper\/v1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"Destination domain - network_site_url of the install","required":true},"target":{"type":"string","description":"Target domain - network_site_url of the install","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/info-preflight"}]}},"\/shipper\/v1.0\/info-token":{"namespace":"shipper\/v1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"Source domain - network_site_url of the install","required":true},"time":{"type":"integer","description":"Source time","required":true},"token":{"type":"string","description":"Source OTP token","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/info-token"}]}},"\/shipper\/v1.0\/info-creds":{"namespace":"shipper\/v1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"Destination domain - network_site_url of the install","required":true},"token":{"type":"string","description":"Destination token","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/info-creds"}]}},"\/shipper\/v1.0\/info-set":{"namespace":"shipper\/v1.0","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"Destination domain - network_site_url of the install","required":true},"info":{"type":"string","description":"Shipper info data, as string","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/info-set"}]}},"\/shipper\/v1.0\/migration-get":{"namespace":"shipper\/v1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"Destination domain - network_site_url of the install","required":true},"version":{"type":"string","description":"Client version","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/migration-get"}]}},"\/shipper\/v1.0\/migration-set":{"namespace":"shipper\/v1.0","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"Destination domain - network_site_url of the install","required":true},"file":{"type":"string","description":"File name or a placeholder","required":true},"type":{"type":"string","description":"Migration type","required":true},"status":{"type":"float","description":"Migration status percentage","required":true},"version":{"type":"string","description":"Client version","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/migration-set"}]}},"\/shipper\/v1.0\/migration-start":{"namespace":"shipper\/v1.0","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"source":{"type":"string","description":"Source domain - network_site_url of the install","required":true},"target":{"type":"string","description":"Target domain - network_site_url of the install","required":true},"type":{"type":"string","description":"Migration type to start","required":true},"version":{"type":"string","description":"Client version","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/migration-start"}]}},"\/shipper\/v1.0\/migration-cancel":{"namespace":"shipper\/v1.0","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"Source domain - network_site_url of the install","required":true},"version":{"type":"string","description":"Client version","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/shipper\/v1.0\/migration-cancel"}]}},"\/smush\/v1":{"namespace":"smush\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"smush\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/smush\/v1"}]}},"\/smush\/v1\/check\/(?P[\\w-]+)":{"namespace":"smush\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"api_key":{"required":true},"domain":{"description":"The network_site_url() of the WP installation.","required":false}}}]},"\/smush\/v1\/cdn":{"namespace":"smush\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"api_key":{"required":true},"domain":{"description":"The network_site_url() of the WP installation.","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/smush\/v1\/cdn"}]}},"\/smush\/v1\/cdn\/check-user\/(?P[\\d]+)":{"namespace":"smush\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"user_id":{"required":true}}}]},"\/smush\/v1\/cdn\/status":{"namespace":"smush\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/smush\/v1\/cdn\/status"}]}},"\/snapshot\/v1":{"namespace":"snapshot\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"snapshot\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v1"}]}},"\/snapshot\/v1\/credentials":{"namespace":"snapshot\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"timestamp":{"type":"string","description":"Request timestamp.","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v1\/credentials"}]}},"\/snapshot\/v1\/backups-size":{"namespace":"snapshot\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v1\/backups-size"}]}},"\/snapshot\/v1\/get-urls":{"namespace":"snapshot\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v1\/get-urls"}]}},"\/snapshot\/v1\/register-settings":{"namespace":"snapshot\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"timestamp":{"type":"string","description":"Request timestamp.","required":false},"backup_freq":{"type":"string","description":"The frequency setting of scans \"daily\", \"weekly\", or \"monthly\".","required":true},"backup_limit":{"type":"integer","description":"Number of backups to keep.","required":false},"backup_time":{"type":"integer","description":"Offset in seconds for the time of day, example 3600 for 1AM.","required":true},"backup_offset":{"type":"integer","description":"Offset in days from the start of the frequency period","required":false},"local_full_backups":{"type":"json","description":"A JSON object with the detailed list of local full backup files.","required":true},"last_backup":{"type":"integer","description":"Unix timestamp of the last completed full backup.","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v1\/register-settings"}]}},"\/snapshot\/v1\/get-key":{"namespace":"snapshot\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"timestamp":{"type":"integer","description":"Request time","required":true},"nonce":{"type":"string","description":"Nonce","required":true},"hash":{"type":"string","description":"OTP","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v1\/get-key"}]}},"\/snapshot\/v1\/get-token":{"namespace":"snapshot\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"token":{"type":"string","description":"Optional previous token.","required":false},"hash":{"type":"string","description":"Signature hash.","required":false},"timestamp":{"type":"string","description":"Request timestamp.","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v1\/get-token"}]}},"\/snapshot\/v1\/current-local-status":{"namespace":"snapshot\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"status":{"type":"string","description":"Current backup status","required":true},"info":{"type":"string","description":"Further backup status info","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v1\/current-local-status"}]}},"\/snapshot\/v2":{"namespace":"snapshot\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"snapshot\/v2","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v2"}]}},"\/snapshot\/v2\/auth-check":{"namespace":"snapshot\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"site_id":{"type":"integer","description":"The hub site_id of the WP installation.","required":true},"api_key":{"type":"string","description":"The apikey of the user.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v2\/auth-check"}]}},"\/snapshot\/v2\/site":{"namespace":"snapshot\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v2\/site"}]}},"\/snapshot\/v2\/site\/settings":{"namespace":"snapshot\/v2","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"schedule_is_active":{"type":"string","enum":["active","inactive"],"description":"Whether schedule is active.","required":false},"schedule_frequency":{"type":"string","description":"The frequency setting of scans \"daily\", \"weekly\", or \"monthly\".","required":false},"schedule_time":{"type":"string","description":"Schedule time in 24 hours clock.","required":false},"schedule_frequency_weekday":{"type":"integer","minimum":0,"maximum":7,"description":"Schedule week day ( weekly based ).","required":false},"schedule_frequency_monthday":{"type":"integer","minimum":0,"maximum":31,"description":"Schedule month day ( monthly based ).","required":false},"snapshot_extra_security_step":{"type":"boolean","description":"Whether extra security step enabled","required":false},"last_backup_time":{"type":"integer","description":"Unix timestamp of the last completed\/success backup.","required":false},"last_failed_backup_time":{"type":"integer","description":"Unix timestamp of the last failed backup.","required":false},"region":{"type":"string","description":"Snapshot Region.","required":false},"system_backup_initiated":{"type":"number","description":"Unix timestamp backup initiated by System ( will remove Hub lock ).","required":false},"plugin_backup_initiated":{"type":"number","description":"Unix timestamp backup initiated ( will trigger Hub lock ).","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v2\/site\/settings"}]}},"\/snapshot\/v2\/site\/ftp-restore":{"namespace":"snapshot\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true},"is_completed":{"type":"boolean","description":"If the restore has completed","required":true},"is_failed":{"type":"boolean","description":"If the restore has failed","required":true},"error_code":{"type":"string","description":"The error code if the restore failed.","required":true},"error_message":{"type":"string","description":"The error message if the restore failed.","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v2\/site\/ftp-restore"}]}},"\/snapshot\/v2\/auth-user-check":{"namespace":"snapshot\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"api_key":{"type":"string","description":"The apikey of the user.","required":true},"user_id":{"type":"integer","description":"The User ID.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v2\/auth-user-check"}]}},"\/snapshot\/v2\/backup-export-email":{"namespace":"snapshot\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v2\/backup-export-email"}]}},"\/snapshot\/v2\/gdrive-handler":{"namespace":"snapshot\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v2\/gdrive-handler"}]}},"\/snapshot\/v2\/storage-usages":{"namespace":"snapshot\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"api_key":{"type":"string","description":"The apikey of the user.","required":true},"skip_cache":{"description":"Whether to skip cache","type":"boolean","default":false,"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v2\/storage-usages"}]}},"\/snapshot\/v2\/dropbox-handler":{"namespace":"snapshot\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v2\/dropbox-handler"}]}},"\/snapshot\/v2\/download-installer-script":{"namespace":"snapshot\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Installer ID (Project ID)","type":"integer","default":3785815,"enum":[3785815,1109034],"required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v2\/download-installer-script"}]}},"\/snapshot\/v2\/onedrive-handler":{"namespace":"snapshot\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v2\/onedrive-handler"}]}},"\/snapshot\/v2\/sites":{"namespace":"snapshot\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"user_id":{"type":"integer","minimum":1,"description":"The User ID.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/snapshot\/v2\/sites"}]}},"\/uptime\/v1":{"namespace":"uptime\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"uptime\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/uptime\/v1"}]}},"\/uptime\/v1\/stats\/(?Pday|week|month)":{"namespace":"uptime\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"range":{"required":true},"domain":{"type":"string","description":"The network_site_url() of the WP installation.","required":true}}}]},"\/uptime\/v1\/monitoring":{"namespace":"uptime\/v1","methods":["POST","DELETE"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation to enable monitoring for.","required":true}}},{"methods":["DELETE"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation to disable monitoring for.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/uptime\/v1\/monitoring"}]}},"\/uptime\/v1\/monitoring\/recipients":{"namespace":"uptime\/v1","methods":["POST","GET"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation to update recipients for.","required":true},"recipients":{"type":"json","description":"A JSON array of recipients name and email. Example [ {name: \"name\", email: \"email@example.org\"}, ... ]","required":true}}},{"methods":["GET"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation to get recipients for.","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/uptime\/v1\/monitoring\/recipients"}]}},"\/uptime\/v1\/monitoring\/recipient\/resend-confirmation":{"namespace":"uptime\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"domain":{"type":"string","description":"The network_site_url() of the WP installation to update recipients for.","required":true},"recipient":{"type":"email","description":"Email Address of recipient","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/uptime\/v1\/monitoring\/recipient\/resend-confirmation"}]}},"\/wp-site-health\/v1":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"wp-site-health\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/wp-site-health\/v1"}]}},"\/wp-site-health\/v1\/tests\/background-updates":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/wp-site-health\/v1\/tests\/background-updates"}]}},"\/wp-site-health\/v1\/tests\/loopback-requests":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/wp-site-health\/v1\/tests\/loopback-requests"}]}},"\/wp-site-health\/v1\/tests\/https-status":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/wp-site-health\/v1\/tests\/https-status"}]}},"\/wp-site-health\/v1\/tests\/dotorg-communication":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/wp-site-health\/v1\/tests\/dotorg-communication"}]}},"\/wp-site-health\/v1\/tests\/authorization-header":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/wp-site-health\/v1\/tests\/authorization-header"}]}},"\/wp-site-health\/v1\/directory-sizes":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/wp-site-health\/v1\/directory-sizes"}]}},"\/wp-site-health\/v1\/tests\/page-cache":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/wp-site-health\/v1\/tests\/page-cache"}]}},"\/wp-block-editor\/v1":{"namespace":"wp-block-editor\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"wp-block-editor\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/wp-block-editor\/v1"}]}},"\/wp-block-editor\/v1\/url-details":{"namespace":"wp-block-editor\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"url":{"description":"The URL to process.","type":"string","format":"uri","required":true}}}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/wp-block-editor\/v1\/url-details"}]}},"\/wp-block-editor\/v1\/export":{"namespace":"wp-block-editor\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/wp-block-editor\/v1\/export"}]}},"\/wp-block-editor\/v1\/navigation-fallback":{"namespace":"wp-block-editor\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/api\/wp-block-editor\/v1\/navigation-fallback"}]}}},"site_logo":0,"site_icon":0,"site_icon_url":"","_links":{"help":[{"href":"https:\/\/developer.wordpress.org\/rest-api\/"}]}}