Skip to main content

Attach blob metadata to an entity

Registers an already-uploaded blob (via Next/@vercel/blob) on the entity de dominio. Requires a valid Bearer session.
1 min read
post/blob/profiles/{studioId}/attachments
Request example
Response
post/blob/profiles/{studioId}/attachments

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#
Identifier or key studioId.

Body

application/json
domainstringrequired#
entityTypestringrequired#
entityIdstringrequired#
purposestringrequired#
blobUrlstringrequired#
blobPathnamestringrequired#
blobEtagstring#
contentTypestringrequired#
sizeBytesintegerrequired#

Responses

application/json
Created.
dataobjectrequired#
Show child attributes
blobUrlstringrequired#
pathnamestringrequired#
entityTypestringrequired#
entityIdstringrequired#
domainstringrequired#
attachmentIdstring#
UUID of the created image/attachment row (task_images, note_images, …).
replacedPathnamesstring[]#