Delete a header
1 |
DELETE /api/1/header/{id} |
Parameters
Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
---|---|---|---|---|---|
Authorization: | Header | False | Required | String (Bearer {access token}) | Pass the authentication token that was granted when you authorized access. |
id | Path | False | Required | String | The ID of the header you want to delete. |
Request
HTTP
Following is an example HTTP request:
1 2 3 4 5 |
DELETE /api/1/header/2 HTTP/1.1 Host: restapi.actonsoftware.com Authorization: Bearer 70bf22cceb1016351f97b8b59ae35 Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded |
curl
Following is an example curl request:
1 |
curl -X DELETE -H "Authorization: Bearer 70bf22cceb1016351f97b8b59ae35" -H "Cache-Control: no-cache" -H "Content-Type: application/x-www-form-urlencoded" -d 'false' https://restapi.actonsoftware.com/api/1/header/2 |
Response
Success results in an HTTP 200 response with a JSON object like the following:
1 2 3 4 |
{ "status": "success", "message": "Header 2 deleted." } |