POST
/v1/validation-policy/notices/{notice}/seenA signed-in person closed the notice, and it is not listed again for anyone of the company. Closing it again answers the same. An API key is refused with 401 session_required.
Path parameters
- noticestringRequired
Response
A 200 answer carries these fields.
- noticestringRequired
- seenbooleanRequired
Status codes
| Status | Meaning |
|---|---|
200 |
The notice is closed. |
401 |
No usable credential was sent (invalid_credentials), or an API key was used (session_required). |
404 |
The company has no such notice (not_found). |
POST
/v1/validation-policy/notices/{notice}/seenExample
curl -X POST https://api.certinvo.com/v1/validation-policy/notices/$NOTICE/seen \
-H "Authorization: Bearer $CERTINVO_API_KEY"const notice = 'value'
const response = await fetch(`https://api.certinvo.com/v1/validation-policy/notices/${notice}/seen`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
notice = "value"
response = requests.post(
f"https://api.certinvo.com/v1/validation-policy/notices/{notice}/seen",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)200
application/json
{
"notice": "string",
"seen": true
}Success response