GuideLab API

Upload custom field image

Upload an image for a product custom field option (e.g. image_select or image_multi_select). Accepts JPEG, PNG, WebP, or GIF up to 5MB via multipart form data with a fieldId.

POST
/products/{id}/custom-field-image

Upload an image for a product custom field option (e.g. image_select or image_multi_select). Accepts JPEG, PNG, WebP, or GIF up to 5MB via multipart form data with a fieldId.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Path Parameters

id*string

Product ID

Response Body

application/json

curl -X POST "https://example.com/products/550e8400-e29b-41d4-a716-446655440000/custom-field-image"
{  "imageKey": "string"}
Empty
Empty
Empty
Empty