Skip to main content

Delete goal image

Delete goal image. Requires Authorization: Bearer with a Better Auth session token. Returns blob pathnames for the client to clean up.
1 min read
delete/goals/profiles/{studioId}/{goalId}/images/{imageId}
Request example
Response
delete/goals/profiles/{studioId}/{goalId}/images/{imageId}

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.
goalIdstringrequired#
Identifier or key goalId.
imageIdstringrequired#
Identifier or key imageId.

Responses

application/json
Image deleted; includes optional blobPathnames.
dataobject#
Show child attributes
blobPathnamesstring[]#
request_idstring#