Skip to main content

Delete page content record

DELETE 

https://acmeco.nonemployee.com/api/page_contents/:uid

Delete page content by by UID (user-specified identifier)

Request

Path Parameters

    id uuidrequired

    ID of the object to retrieve, update, or delete

Responses

Expected response to a valid request

Schema
    page object
    iduuid

    The id of the page content

    Example: ac4aae0b-4140-49a4-a84c-126762fd0c8f
    uidstring

    The user-specified identifier for the record

    Example: first_text_body
    typestring

    The type of content on the page.

    Possible values: [FormHeading, LargeHeading, MediumHeading, SmallHeading, Paragraph, HtmlContainer, Owner, RequestProgressBar]

    Example: MediumHeading
    contentstring

    The text content to present in this page content record.

    Example: Lorem Ipsum yadda yaddda bing bang.
    created_atdate-time

    The date-time the record created.

    Example: 2022-12-27 08:26:49.219717
    updated_atdate-time

    The date-time the record was last updated.

    Example: 2022-12-27 08:26:49.219717

Authorization: http

name: bearerAuthtype: httpscheme: bearerbearerFormat: Token token=your token
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://acmeco.nonemployee.com/api/page_contents/:uid"
method := "DELETE"

client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)

if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Bearer <TOKEN>")

res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()

body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
Request Collapse all
Base URL
https://acmeco.nonemployee.com/api
Auth
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!