8.1 Add/Update resource
POST https://{{domain}}/api/v2/resource
Add or update (if any resource with a given resource guid is found) the posted resource.
Request:
Content-Type: multipart/form-data
Form part 1 (required)
Name | Content-Type | Description |
---|---|---|
string; any value | application/json | Description and meta data of Document |
JSON object containing:
- ResourceGUID (guid, required): the Resource GUID
- ResourceChecksum (string, required): SHA1 checksum of the resource in upper-case format.
- ResourceType (enum, required) the type of the resourceknown resource types: RipConfiguration, NormalProfile, FotobaMarks, Template, Label, ColorMap, DefectProfile, Grommet, IccProfile, LayoutTemplate, Library, PlateCurve, ToolMapping, Substrate, Document, Thumbnail, Preview, JobXml, CuttingMarks, NestSettings,
- DTGPresetMeta (JSON object required) - JSON object containing the metadata about the resource;
- MediaType (required for “NormalProfile”): the Media tag from the PMM.
- ProfileGroup (required for “NormalProfile” ): the ProfileGroup tag from the PMMVariants - required for “NormalProfile”
- Name (string, required)
Form part 2 (optional)
Name | Content-Type | Description |
---|---|---|
string; any value | application/octet-stream | Content is Document binary |
Request Body
[{"name"=>"JsonString", "value"=>"", "datatype"=>"null"}, {"name"=>"Name of resource", "value"=>nil, "datatype"=>"null"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
MisKey | string | User MIS key |
RESPONSES
status: OK
"Resource successfully added"