API Reference

Delete a single section

Description

Deletes a section given its ID.

DELETE /documents/{documentId}/sections/{sectionId}

🚧

Required OAuth Scopes:

file:write

Parameters

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

Code Samples

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

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

print(r.json())

Returns

204 - No Content