Skip to main content
POST
/
v3
/
content
Create Content
curl --request POST \
  --url https://api.proposales.com/v3/content \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "company_id": 123,
  "language": "<string>",
  "title": "<string>",
  "description": "<string>",
  "images": [
    {}
  ]
}'
{
  "data": {
    "product_id": 123,
    "variation_id": 123,
    "message": "<string>"
  }
}

Body

company_id
number
required
The ID of the Proposales company that the content should belong to.
language
string
required
A two-letter ISO 3166-1 alpha-2 language code indicating the language of the content.
title
string
required
The title of the content in the specified language.
description
string
The description of the content in the specified language.
images
array
A list of images to be added to the content. You have two options for providing images:
  1. Using Uploadcare UUID: Upload images to Uploadcare first and provide the UUID
  2. Using URL: Provide a publicly accessible image URL with an empty uuid string. The system will automatically download and upload the image to Uploadcare.
Needs to have this shape:
{
  uuid: string; // UUID from Uploadcare, or empty string "" when using url
  filename?: string;
  mime_type?: string;
  url?: string; // Public image URL (used when uuid is empty)
  size?: number;
  height?: number;
  width?: number;
}[]
Example with Uploadcare UUID:
{
  "uuid": "9a7b8c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
  "filename": "product.jpg"
}
Example with URL:
{
  "uuid": "",
  "url": "https://example.com/image.jpg"
}
Note:
  • Images that fail to download from URL will be silently skipped.
  • At least one valid image must be provided (either successful URL download or existing UUID).

Response

data
object