Skip to content

Register Uploaded Image

Registers an existing public image URL under Cards images (used when the monolith uploads to R2 first).

Terminal window
curl --request POST \
--url 'https://lxp.prod.api.toolzz.media/upload/image/register' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"source": "https://assets.lms.homol.toolzz.media/path/to/image.png"
}'
{
"success": true,
"source": "https://assets.lms.homol.toolzz.media/path/to/image.png",
"images_id": 882
}

ParameterTypeDescriptionRequired
sourcestringPublic URL under CardsS3PublicBaseUrl.Yes

HTTPCodeWhen
400invalid_argumentURL missing or not under configured public base
401 / 403Auth / admin failure

  • Admin only. source must be under the configured public upload base URL.