Delete page content record
DELETEhttps://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
- 200
- 400
- 404
- 500
Expected response to a valid request
- application/json
- Schema
- Example (auto)
Schema
page object
{
"page": {
"id": "ac4aae0b-4140-49a4-a84c-126762fd0c8f",
"uid": "first_text_body",
"type": "MediumHeading",
"content": "Lorem Ipsum yadda yaddda bing bang.",
"created_at": "2022-12-27 08:26:49.219717",
"updated_at": "2022-12-27 08:26:49.219717"
}
}
Bad Request - unable to complete.
- application/json
- Schema
- Example (auto)
Schema
- oneOf
- InvalidJson
- ValidationErrors
error
Example:
Invalid JSON syntax. Please check your syntax and try again.
error
Example:
The <object> failed to create/update
errors
Example:
{"attribute":"can't be blank"}
{
"error": "Invalid JSON syntax. Please check your syntax and try again."
}
Bad Request - unable to complete.
- application/json
- Schema
- Example (auto)
Schema
- oneOf
- InvalidJson
- ValidationErrors
error
Example:
Invalid JSON syntax. Please check your syntax and try again.
error
Example:
The <object> failed to create/update
errors
Example:
{"attribute":"can't be blank"}
{
"error": "Invalid JSON syntax. Please check your syntax and try again."
}
Internal Server Error - returned on unhandled exceptions.
- application/json
- Schema
- Example (auto)
Schema
error
A message describing the error
Example:
Sorry something went wrong
{
"error": "Sorry something went wrong"
}
Authorization: http
name: bearerAuthtype: httpscheme: bearerbearerFormat: Token token=your token
- go
- powershellSailPoint SDK
- pythonSailPoint SDK
- csharp
- curl
- dart
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- r
- ruby
- rust
- shell
- swift
- NATIVE
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))
}
ResponseClear