8.5 List Resources

POST https://{{domain}}/api/v2/resource/list

Get a filtered list of all the resources in the organization

Request:

JSON object containing the type to filter on:

  • ResourceTypes (array of strings, required): an array with one or more of the following types (RipConfiguration, NormalProfile, FotobaMarks, Template, Label, ColorMap, DefectProfile, Grommet, IccProfile, LayoutTemplate, Library, PlateCurve, ToolMapping, Substrate, Document, Thumbnail, Preview, JobXml, CuttingMarks, NestSettings, DTGPreset). When * is used then all resources are listed.
  • Domain (string, optional): Domain to query, allowed values Private and Public. Default if Private when not specified.
  • IncludeDeleted (boolean, optional) - by default it is false.

Response:

Return the company resources filtered by request body filter. The list is a packed array of arrays. Each item in the array is a resource represented by an array of 4 elements.

Packed method is used to save space in the transfer. The following 4 elements are presented in the following order:

  1. ResourceGUID
  2. ResourceType
  3. SHA1 checksum
  4. Name

Request Body

{"ResourceTypes"=>["FotobaMarks"], "Domain"=>"Private", "IncludeDeleted"=>false}

RESPONSES

status: OK

[["cb726598-7a52-4853-8ea1-da4fed7918b3","FotobaMarks","F4A459303167CE76171EC8668D0FC8559B3255CF","XY Automatic christian"],["881764c1-09d7-4fca-8f1d-cb18722f01cc","FotobaMarks","145F642593268CF49603B21591BF4A9D0957E2A5","autocutter"],["b092d884-72ae-484c-85b5-936480fcc2b7","FotobaMarks","5BF4D00B60244165109994DFF36FA320719A6DAF","Fotoba barcode"]]