Add a version to an evidence library document
Upload a new version of an evidence library document with a change note, while disputes for earlier purchases keep the version valid back then.
validFrom still use them.
validFrommay be in the past, or in the future for a scheduled version that becomes current on that date.- Returns 409 when the document is archived, or when another version is added at the same time. In the second case, send the request again with a new idempotency key.
- Returns 404 when the
evidenceLibraryEnabledfeature flag is off.
Authorizations
You can use an OAuth2 JWT bearer token in the Authorization header of your API requests for supported endpoints: Authorization: Bearer <YOUR_JWT_HERE>.
These tokens are valid for 10 minutes and can be requested via the access token endpoint endpoint.
Headers
Idempotency key to be used. Sending again the same key would return the same result without re-executing the update.
Path Parameters
Identifier of the resource in Payrails.
Body
What changed in this version.
2000"Missing items: report within 14 days of delivery"
The new version of the document.
When this version starts to apply. Defaults to now; may be in the past or the future. Each dispute uses the version valid at its purchase time. A version dated before the current version never becomes current. A version dated after the current version but before a scheduled future one becomes current now.
Response
Version added. Returns the document with all its versions.
Kind of library document. terms and policy documents are attached to every dispute; productDescription documents to not-as-described disputes.
terms, policy, productDescription Which new disputes Payrails attaches the document to, derived from its kind.
allDisputes, notAsDescribedDisputes Number of disputes that use any version of the document. For a caller limited to some workspaces, only disputes in those workspaces count.
Absent when the document applies to every workspace.
The version valid now. Absent when every version starts in the future.
When a dispute last started to use a version of the document. For a caller limited to some workspaces, only disputes in those workspaces count.
All versions, lowest first. Returned by create (version 1 only), get, add version and archive; not returned by list.
The latest 100 dispute links to a version of the document, newest first, one entry per link; usedInCount is the total. Returned by get, add version and archive; not returned by list.
100