Authorizations
Body
Body
Schema for uploading an asset with organization, website, and user details.
The name of the file, must match the regex pattern (converted to lowercase) and have a valid extension.
"example.png"
Size of the file in bytes. Uploaded file must match this file size. 1mb for images and 10mb for videos.
1024
UUID of the organization (optional, converted to lowercase)
"123e4567-e89b-12d3-a456-426614174222"
UUID of the website (optional, converted to lowercase)
"123e4567-e89b-12d3-a456-426614174111"
UUID of the user (optional, converted to lowercase)
"123e4567-e89b-12d3-a456-426614174333"
The file path, must be a valid enum value.
announcements
, images
, videos
, banners
, fonts
, posts
, profiles
, minting
, loyalty
, tokenClaims
"images"
Response
200
Response returned upon successful generation of the signed URL for uploading the file.
The pre-signed URL to be used for uploading the file.
"https://assets.snagsolutions.io/organizations/123e4567-e89b-12d3-a456-426614174222/websites/123e4567-e89b-12d3-a456-426614174111/images/example.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ABJSSMZGO3T2ZKBVJOG2%2F20240702%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240702T072637Z&X-Amz-Expires=60&X-Amz-Signature=6f7952568b7861edd14afb0915870970c9b048ba5237f7a70a16b0f10b96587e&X-Amz-SignedHeaders=host&x-id=PutObject"
The URL of the uploaded file.
"https://assets.snagsolutions.io/organizations/123e4567-e89b-12d3-a456-426614174222/websites/123e4567-e89b-12d3-a456-426614174111/images/example.png"