Tearleads

GET/documents/{documentId}/attribution/ranges

List document attribution ranges

Operation documents.attribution.ranges.list

Description

Pages a document's complete edit attribution when the compact attribution response is truncated. Requires read access. A cursor or expected revision from before a later write returns 409, and the client restarts from the first page.

Authentication

Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.

Parameters

NameInTypeDetails
documentIdpathstringrequired
cursorquerystringoptional
expectedRevisionqueryintegeroptional
  • at least 0
limitqueryintegeroptional
  • 1 to 500
accept-encodingheaderstringoptional

Responses

200 OK

application/jsonListDocumentEditAttributionRangesResponse

One page of a document's complete edit attribution.

  1. object
    5 fields
    • attributionRevisionintegerrequired
      • at least 0
    • documentIdstringrequired
      • not empty
      • at most 500 items
    • hasMorebooleanrequired
      • always true
    • nextCursorstringrequired
      • not empty

    Other fields are allowed.

  2. object
    5 fields
    • attributionRevisionintegerrequired
      • at least 0
    • documentIdstringrequired
      • not empty
      • at most 500 items
    • hasMorebooleanrequired
      • always false
    • nextCursornullrequired

    Other fields are allowed.

Response headers

NameTypeDetails
cache-controlstringrequired
  • always private, no-cache
content-encodingstringoptional
content-typestringrequired
  • not empty
varystringrequired
  • pattern (?:^|,)\s*(?:[Aa][Cc][Cc][Ee][Pp][Tt]-[Ee][Nn][Cc][Oo][Dd][Ii][Nn][Gg]|\*)\s*(?:,|$)

Other responses

StatusMeaningBody
400Bad Request

application/jsonErrorResponse

401Unauthorized

application/jsonSessionFailureResponse

403Forbidden

application/jsonErrorResponse

404Not Found

application/jsonErrorResponse

409Conflict

application/jsonErrorResponse

500Internal Server Error

application/jsonErrorResponse

503Service Unavailable

application/jsonErrorResponse

Additional rules

The server also enforces these rules, which the schema above cannot express.

  • Document attribution segment start counters are less than end counters.