Skip to main content
POST
Attach library documents to a package

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-workspace-id
string

The workspace the key was issued for, as returned by GET /api/v1/workspaces. Optional: omitting it acts in the key's workspace, and any other id is rejected with 401.

Path Parameters

packageId
string
required

Body

application/json
documentIds
string[]
required

The library documents to copy in, from 1 to 50, appended to the package's documents in this order. Place fields on the package's copies with PUT /api/v1/packages/:packageId/fields.

Required array length: 1 - 50 elements

The id of a library document, from GET /api/v1/library/documents. A document that has been trashed or is already attached elsewhere is a 404.

Minimum string length: 1

Response

Success

data
object
required