pages

Delete a custom page from the system by ID. Requires site administrative privileges, or organization admin privileges for pages belonging to an organization. Successful writes log api_page_destroy with the actor and target ids in the admin API audit log.

delete/api/pages/{id}

Request

  • Base URL
    https://dev.to
  • Auth
    • API key in header api-key
    • or HTTP bearer

Path parameters

idinteger required

The ID of the page to delete.

Response

successful

titlestring required

Title of the page

slugstring required

Used to link to this page in URLs, must be unique and URL-safe

descriptionstring required

For internal use, helps similar pages from one another

body_markdownstring nullable

The text (in markdown) of the ad (required)

body_jsonstring nullable

For JSON pages, the JSON body

is_top_level_pathboolean

If true, the page is available at '/{slug}' instead of '/page/{slug}', use with caution

social_imageobject nullable
organization_idinteger nullable

The ID of the organization the page belongs to, if any

positioninteger

Display order position for organization pages

template'contained' | 'full_within_layout' | 'nav_bar_included' | 'json' | 'css' | 'txt' required

Controls what kind of layout the page is rendered in

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the media type application/json for the response with the status