Skip to content

Asset upload does not allow specifying attributes #32

Closed
@GriffinCodes

Description

@GriffinCodes

Executing the following cURL uploads an image to my stack's assets inside the specified folder

curl --location 'https://api.contentstack.io/v3/assets' \ --header 'api_key: API_KEY' \ --header 'authorization: MANAGEMENT_TOKEN' \ --header 'Content-Type: multipart/form-data' \ --form 'asset[upload]=@"/path/to/image.jpg"' \ --form 'asset[parent_uid]="PARENT_FOLDER_UID"' \ --form 'asset[title]="Test2_3"' 

While the javadocs note the form field's existence, it does not appear to allow me to fill in the form field, causing the image to be uploaded to the root folder. Please let me know if I'm missing something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close