Description
Deletes a section given its ID.
DELETE
/documents/{documentId}/sections/{sectionId}
Required OAuth Scopes:
file:write
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
documentId | path | string | true | The unique identifier of the document |
sectionId | path | string | true | The 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)