# Document

The `document` object provides the ability to upload extension documentation (via an online link or file upload) to the extension object.

<table><thead><tr><th width="165">Field Name</th><th width="154">Data Type</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td><td><p> The ID of the document object. </p><p>Example: EDM-1234-5678-0001</p></td></tr><tr><td><code>name</code></td><td>string</td><td><p>The name of the document object. </p><p>Example: Guide to establishing a reseller relationship</p></td></tr><tr><td><code>description</code></td><td>string</td><td><p>The description of the document object. </p><p>Example: Learn what happens when you establish a reseller relationship with SoftwareOne</p></td></tr><tr><td><code>type</code></td><td>string</td><td>The type of the document object.</td></tr><tr><td><code>url</code></td><td>string</td><td><p>The URI to access the document object. </p><p>Example: https://address.to.media.file.pl/abcde.docx</p></td></tr><tr><td><code>language</code></td><td>string</td><td><p>The language of the document object. </p><p>Example: pl-PL</p></td></tr><tr><td><code>status</code></td><td>enum</td><td>The status of the document object. Allowed values: <code>draft</code>, <code>published</code>, or <code>unpublished</code>. </td></tr><tr><td><code>extension</code></td><td>object</td><td><p>A reference to the <a href="extension"><code>extension</code></a> object.</p><p>Example:</p><pre class="language-json" data-overflow="wrap" data-line-numbers><code class="lang-json">{
    "id": "EXT-1234-5678",    
    "name": "Microsoft AI Cloud Partner",
    "icon": "/static/EXT-1234-5678/logo.png"
}
</code></pre></td></tr><tr><td><code>audit</code></td><td>object</td><td>A reference to the <a href="../common-api-objects/audit"><code>audit</code></a> object.</td></tr></tbody></table>

### Example response <a href="#example" id="example"></a>

{% code lineNumbers="true" %}

```json
 {
    "id": "EDM-1234-5678-0001",    
    "name": "Guide to establishing a reseller relationship",
    "description": "Learn what happens when you establish a reseller relationship with SoftwareOne",
    "type": "File",
    "url": "https://address.to.media.file.pl/abcde.docx",
    "language": "pl-pl",
    "status": "Draft",
    "extension": {
      "id": "EXT-1234-5678",    
      "name": "Microsoft AI Cloud Partner",
      "icon": "/static/EXT-1234-5678/logo.png"
     },
    "audit": {
     "created": { "at": "...", "by": { } },
     "updated": { "at": "...", "by": { } }
   }
  }
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.platform.softwareone.com/developer-resources/rest-api/extensions-api/document.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
