Skip to content

Update a custom header group

Request

PUT /v3/custom-headers/{customHeaderGroupId}
Security
API_Key
Path
customHeaderGroupIdintegerrequired

Unique identification number for custom header group

Bodyapplication/json
idinteger, (int64)
groupNamestringrequired
headersArray of objectsrequired
requestUrlFiltersArray of objectsrequired
assignmentsArray of objectsrequired
applyToAllbooleanrequired
PUT
/v3/custom-headers/{customHeaderGroupId}
curl -i -X PUT \
  'https://api.observepoint.com/v3/custom-headers/{customHeaderGroupId}' \
  -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 }