Styles/Documents

Archives or unarchives multiple documents attached to the given style in a single request. All-or-nothing: if the style is not visible to the caller's company, or any id is unknown / belongs to a different style, the request is rejected with a 404 (details.styleDocumentIds lists the offending ids where relevant) and no documents are modified. Direction is set by the isArchived boolean in the body.

post/api/styles/{id}/style-documents/bulk-archive

Request

  • Base URL
    https://api.retraced.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.retraced.com/api/styles/{id}/style-documents/bulk-archive
  • Auth
    none declared

Path parameters

idstring required

Request body

idsstring[] required
isArchivedboolean required

Response

Default Response

Changes

    • info

      added the required property //// to the response with the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • info

      response property data/documents/items/createdAt list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/documents/items/documentClass list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/documents/items/documentType/impactAreaId list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/documents/items/fileUrl list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/documents/items/updatedAt list-of-types was narrowed by removing types null from media type application/json of response 200