Delete custom headers
DELETE
/api/v2/organizations/{organization}/projects/{project}/custom-headers
const url = 'https://dashboard.quantcdn.io/api/v2/organizations/test-org/projects/test-project/custom-headers';const options = { method: 'DELETE', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"headers":{"X-Custom-Header":"value","Cache-Control":"max-age=3600"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://dashboard.quantcdn.io/api/v2/organizations/test-org/projects/test-project/custom-headers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "headers": { "X-Custom-Header": "value", "Cache-Control": "max-age=3600" } }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organization
required
string
Organization identifier
Example
test-orgproject
required
string
Project identifier
Example
test-projectRequest Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
headers
required
Custom headers
object
key
additional properties
string
Example
{ "X-Custom-Header": "value", "Cache-Control": "max-age=3600"}Responses
Section titled “Responses”The headers have been deleted.
The server could not understand the request due to invalid syntax.
Media typeapplication/json
object
message
required
Error message
string
error
required
Error flag
boolean
Example
{ "message": "The requested resource was not found", "error": true}Access is forbidden.
Media typeapplication/json
object
message
required
Error message
string
error
required
Error flag
boolean
Example
{ "message": "The requested resource was not found", "error": true}