Get Attached Document details
  • 29 Aug 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Get Attached Document details

  • Dark
    Light
  • PDF

Article summary

Get
/attached-docs/{id}/

Operation is used to retrieve full details of attachment between given attached object type and document by id. Available from product version 3.2.8.

Security
API Key
Header parameter nameAuthorization
Token issued for API consumer.
Path parameters
id
integer Required

Id of Attached Document

Query parameters
attachedObjectType
integer Required

<<_objecttype>> id of the object attached to the document. It is unique id which determines type of the target object. <<_getobjecttypes>>

Responses
200

Attached Document

{
  "attachedObjectType": {
    "id": 888,
    "identifier": "objectidentifier",
    "instanceAPIUrl": "https://example.keycom.com/api/v2/object/",
    "name": "Objectname",
    "objectTypesUrl": "https://example.keycom.com/api/v2/objecttypes/"
  },
  "createdBy": "USER",
  "createdTs": "2020-06-05T11:23:42Z",
  "documentId": 88547,
  "documentUrl": "https://example.keycom.com/api/v2/externaldoc/88547/",
  "id": 3352794,
  "target": "https://example.keycom.com/api/v2/object/4040485/"
}
Expand All
object

Attached Document

attachedObjectType
object
id
integer

Primary key

identifier
string

Object type readable identifier

instanceAPIUrl
string

Object type instances API endpoint URL.

name
string

Object type translated name. Not searchable.

createdBy
string

creator

createdTs
string

Creation date and time

documentId
integer

Unique identifier of attached external document

documentUrl
string

Url to fetch attached external document

id
integer

Unique id of Attached Document

target
string

Url to fetch attached object

401

Authentication credentials are missing or invalid

{
  "details": "Authentication credentials were not provided"
}
object
details
string

Detailed description of error

404

Object was not found

{
  "details": "Not found."
}
object
details
string

Detailed description of error


Was this article helpful?