API Reference

Retrieve a single section

Description

Retrieves a section given its ID.

GET /documents/{documentId}/sections/{sectionId}

🚧

Required OAuth Scopes:

file:read

Parameters

ParameterInTypeRequiredDescription
documentIdpathstringtrueThe unique identifier of the document
sectionIdpathstringtrueThe unique identifier of the section

Code Samples

curl -X GET https://api.app.wdesk.com/platform/v1/documents/{documentId}/sections/{sectionId}  \ 
-H 'Accept: application/json' \ 
-H 'Authorization: Bearer {access-token}'
http GET https://api.app.wdesk.com/platform/v1/documents/{documentId}/sections/{sectionId}  \ 
Accept:application/json \ 
Authorization:"Bearer {access-token}"
wget --method=GET "https://api.app.wdesk.com/platform/v1/documents/{documentId}/sections/{sectionId}" \
 --output-document -  \ 
 --header 'Accept: application/json' \ 
 --header 'Authorization: Bearer {access-token}'
import requests
headers = {
  'Accept': 'application/json',
  'Authorization': 'Bearer {access-token}'
}

r = requests.get('https://api.app.wdesk.com/platform/v1/documents/{documentId}/sections/{sectionId}', headers = headers)

print(r.json())

Returns

200 - OK

Returns a Section object containing details about the requested Section.

Example Responses


{
  "id": "a8b3adb687644b27fafcb3a9875f0f0d_34",
  "name": "Subsection",
  "parent": {
    "id": "a8b3adb687644b27fafcb3a9875f0f0d_13",
    "name": "Section"
  },
  "index": 0,
  "children": [],
  "nonPrinting": false
}