Skip to content

Create a custom header group

Request

POST /v3/custom-headers
Security
API_Key
Bodyapplication/json
idinteger, (int64)
groupNamestringrequired
headersArray of objectsrequired
requestUrlFiltersArray of objectsrequired
assignmentsArray of objectsrequired
applyToAllbooleanrequired
POST
/v3/custom-headers
curl -i -X POST \
  https://api.observepoint.com/v3/custom-headers \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": 0,
    "groupName": "string",
    "headers": [
      {
        "name": "string",
        "value": "string",
        "type": "REQUEST"
      }
    ],
    "requestUrlFilters": [
      {
        "requestUrlFilter": "string",
        "allowSubdomains": true
      }
    ],
    "assignments": [
      {
        "itemType": "AUDIT",
        "itemId": 0
      }
    ],
    "applyToAll": true
  }'

Responses

Successful operation

Bodyapplication/json
idinteger, (int64)
groupNamestringrequired
headersArray of objectsrequired
requestUrlFiltersArray of objectsrequired
assignmentsArray of objectsrequired
applyToAllbooleanrequired
Response
{ "id": 0, "groupName": "string", "headers": [ {} ], "requestUrlFilters": [ {} ], "assignments": [ {} ], "applyToAll": true }