post
https://expert.inskill.ai/public/apiv3/resources
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_idandasset_id - Product Resources: Provide
product_id, omitasset_id - Asset Resources: Provide
asset_id, omitproduct_id
Content Requirements by Type:
- URL resources (type=0): Provide
urlfield - Dynamic resources (type=4): Provide
bodyfield (markdown content) - Document/Image/Video (types=1,2,3): Upload file via
fileparameter
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.
