Skip to content

API reference

Update suggestion sharing

Settings API

PUT/v1/suggestion-sharing

Records a new answer as an immutable version that names the person who gave it. Earlier answers are never edited. Only a signed-in person may call this, as for /v1/datev-settings. An API key is refused with 401 session_required.

Request body

application/json, required

  • sharedbooleanRequired

Response

A 200 answer carries these fields.

  • sharedbooleanRequired
  • versioninteger or nullRequired
  • createdAtstring (date-time) or nullRequired
  • createdBystring (uuid) or nullRequired

    The signed-in person who answered.

Status codes

Status Meaning
200 The new answer, which is now current.
400 The body is not exactly {"shared": true|false} (invalid_suggestion_sharing). Nothing was changed.
401 No usable credential was sent (invalid_credentials), or an API key was used (session_required).
501 This deployment has no database, so nothing can be recorded (no_database). It is a permanent limit of this deployment, not a busy server, so sending the same request again will not help.
PUT/v1/suggestion-sharing
Example
curl -X PUT https://api.certinvo.com/v1/suggestion-sharing \
  -H "Authorization: Bearer $CERTINVO_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @body.json
import { readFile } from 'node:fs/promises'

const response = await fetch(`https://api.certinvo.com/v1/suggestion-sharing`, {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: await readFile('body.json'),
})
console.log(response.status, await response.json())
import os

import requests

response = requests.put(
    "https://api.certinvo.com/v1/suggestion-sharing",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}", "Content-Type": "application/json"},
    data=open("body.json", "rb"),
)
print(response.status_code, response.text)
200
application/json
{
  "shared": true,
  "version": 0,
  "createdAt": "2026-09-17T09:30:00Z",
  "createdBy": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
}
Success response
PUT
/v1/suggestion-sharing
Update suggestion sharing
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Bodyapplication/json
›Code Snippet
curl -X PUT "https://api.certinvo.com/v1/suggestion-sharing" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "shared": true
}...'
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close