POST
/
v1
/
internal
/
prompts
/
review
curl --request POST \
  --url https://api.pulze.ai/v1/internal/prompts/review \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "accept": "1",
  "decline_reason": "<string>"
}'
{
  "prompt": "<string>",
  "title": "<string>",
  "description": "<string>",
  "added_on": "2023-11-07T05:31:56Z",
  "modified_on": "2023-11-07T05:31:56Z",
  "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tokens": 123,
  "published_on": "2023-11-07T05:31:56Z",
  "reviewed_on": "2023-11-07T05:31:56Z",
  "approved_on": "2023-11-07T05:31:56Z",
  "decline_reason": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
id
string
required
accept
enum<string>
default:1

Whether Admin accepts(1) or declines(0) review

Available options:
0,
1
decline_reason
string | null

Reason for decline

Response

200
application/json
Successful Response
prompt
string
required
title
string
required
Required string length: 1 - 60
description
string
required
Required string length: 1 - 200
added_on
string
required
modified_on
string
required
org_id
string
required
tokens
integer
required
published_on
string | null
required
reviewed_on
string | null
required
approved_on
string | null
required
id
string
required
decline_reason
string | null

Reason for decline