Create resource

Create a new resource

Required Fields (All Resources):

  • name: Resource name (required)
  • url: Resource URL (required - will be auto-generated for file uploads)
  • type: Resource type (0=URL, 1=Document, 2=Image, 3=Video, 4=Dynamic)

Resource Scope:

  • Account Resources: Omit both product_id and asset_id
  • Product Resources: Provide product_id, omit asset_id
  • Asset Resources: Provide asset_id, omit product_id

Content Requirements by Type:

  • URL resources (type=0): Provide url field
  • Dynamic resources (type=4): Provide body field (markdown content)
  • Document/Image/Video (types=1,2,3): Upload file via file parameter

File Upload Format: For resources with file uploads, use multipart/form-data. For URL and dynamic resources without files, both application/json and multipart/form-data are supported.

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!