Skip to main content
Removes a specific AI Builder content item from a proposal. Use the id returned when you uploaded the content, or retrieve it from the list content endpoint. The proposal must be in Draft status to allow deletions.

Request

DELETE /public/api/proposals/{ProposalId}/ai/content/{ContentId}

Headers

Accept
string
required
Must be application/json.
X-MSS-API-APPID
string
required
Your API Application Key.
X-MSS-API-USERKEY
string
required
Your User API Key.
X-MSS-CUSTOM-DATE
string
required
Current UTC timestamp in RFC 7231 format.
X-MSS-SIGNATURE
string
required
HMAC-SHA256 signature, Base64-encoded.

Path parameters

ProposalId
integer
required
Unique identifier of the proposal that owns the content item. The proposal must be in Draft status to allow content deletions.
ContentId
integer
required
Unique identifier of the AI Builder content item to delete. This is the id value returned when the content was uploaded.

Response

Success

A 200 response confirms the deletion.
id
integer
required
The ID of the content item that was deleted. Matches the ContentId provided in the request.
deleted
boolean
required
true when the content item was successfully deleted.

Error codes

CodeMeaning
401Not authorized — invalid credentials or incorrect HMAC signature.
403Forbidden — your account does not have permission for this API call.
409Conflict — the proposal must be in Draft status to allow editing.

Example

curl -i -X DELETE \
  'https://api.portal.io/public/api/proposals/12345/ai/content/42' \
  -H 'Accept: application/json' \
  -H 'X-MSS-API-APPID: YOUR_API_APPID' \
  -H 'X-MSS-API-USERKEY: YOUR_API_USERKEY' \
  -H 'X-MSS-CUSTOM-DATE: Thu, 17 Apr 2026 12:00:00 GMT' \
  -H 'X-MSS-SIGNATURE: Base64EncodedHMACSHA256Signature'
Response
{
  "id": 42,
  "deleted": true
}