domain_aliases


Domain aliases such as www.domain.com should be set for all domains. WordPress multisite users that are domain mapping need to register an alias for each mapped domain.


Available HTTP and Response Types
DELETE GET POST PUT | JSON

6 Methods


  • DELETE
    https://api.pagely.com/ v1 / domain_aliases /single

    Available To Partner Account

    Description
    No Description

    Sample Response


      Required Params

      id int
  • GET
    https://api.pagely.com/ v1 / domain_aliases /all

    Available To Partner Account

    Description

    Get all aliases for a given domain/site.

    Sample Response


      Required Params

      domain_id string search on

      Optional Params

      inc_domain bool include domain in results
      limit int
      offset int
      order_by string id
      order_dir string DESC
      s string search on
      s_explicit string search on
  • GET
    https://api.pagely.com/ v1 / domain_aliases /single

    Available To Partner Account

    Description
    No Description

    Sample Response


      Required Params

      id int
  • POST
    https://api.pagely.com/ v1 / domain_aliases /action

    Available To Partner Account

    Description

    Mostly used to make domain alias the Primary domain of the site. Example: Any WordPress site on our system can have the domain swapped from domain.com to blog.domain.com by first creating the alias blog.domain.com and the using the make_primary action. Our system goes into the wp db and changes fields to the new domain.

    Sample Response


      Required Params

      action string make_primary|enable|disable|flush_cache
      id int
  • POST
    https://api.pagely.com/ v1 / domain_aliases /single

    NOT AVAILABLE TO PARTNERS

    Description

    Not used at this time.

    Sample Response


      Required Params

      id int
  • PUT
    https://api.pagely.com/ v1 / domain_aliases /single

    Available To Partner Account

    Description

    Add a single alias

    Sample Response


      Required Params

      domain string fqdn|blog.domain.com
      domain_id int

      Optional Params

      account_id int
      reseller_id int