- API reference
- Changelog entries
Add pictures to a changelog draft
POSThttps://app.notert.io/api/v1/changelog-entries/{id}/pictures
Stores pictures for a draft's body by their addresses, which the server fetches from the open web and draws as a WebP within 1920 pixels. The body shows none until a change places each by its storedUrl. Only a draft takes them: a published or scheduled entry is PUBLISHED until it is unpublished.
A token with changelog:write. How to send one
Request
curl -X POST https://app.notert.io/api/v1/changelog-entries/6d2e9a1c-4b7f-4c3e-9a5d-2f8b1c6e4a90/pictures \
-H "Authorization: Bearer $NOTERT_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"pictureUrls": [
"https://example.com/shots/dark-mode.png"
]
}'Response 200
{
"pictures": [
{
"pictureUrl": "https://example.com/shots/dark-mode.png",
"storedUrl": "https://notert-content.com/requests/6d2e9a1c/2b7e4c1a.webp"
}
]
}Path parameters
idstringRequiredThe entry's id.
At most 64 characters.
Body
pictureUrlsuri[]RequiredPublic https addresses of pictures (JPEG, PNG, GIF or WebP, of no more pixels than 3840 x 2160, up to 10 MB each), at most 10, which the server fetches. One that can't be fetched, isn't a picture or is too large is PICTURE_REFUSED, and none is stored.
Response 200
picturesobject[]Where each picture is stored, in the order named.
pictureUrlstringThe address the picture was sent as.
storedUrlstringWhere the picture is stored, which the draft's body shows once a change places it as .
Errors
- 400
BAD_REQUESTInput validation failed. - 401
UNAUTHORIZEDSend a valid API token as a Bearer token. - 403
HOLDER_NOT_ALLOWEDThe teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. - 403
INSUFFICIENT_SCOPEThis API token can't draft and change changelog entries or their tags. Create one that may in the workspace's settings. - 403
NETWORK_NOT_ALLOWEDThis API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. - 403
NO_SEATThis workspace's plan has no seat for you. - 403
WORKSPACE_SUSPENDEDThis workspace is suspended. - 404
NOT_FOUNDNot Found. - 409
CHANGED_MEANWHILESomething changed meanwhile. Try again. - 409
PUBLISHEDOnly a draft changes. Unpublish the entry first, then change it. - 422
PICTURE_REFUSEDA picture in pictureUrls couldn't be attached, so nothing was written. data.url names it and data.reason says why. Its data holdsurl,reason. - 429
TOO_MANY_REQUESTSToo Many Requests. Its data holdsretryAfter.
A refusal names its code beside a message. Rate limits says when to try again.