Globals
REST API operations for globals
Overview
Use these API operations to interact with global helper functions (also called "global helpers" and simply "globals") in Panther.
To call the API, see the How to use the Panther REST API instructions—including directions for how to invoke it directly from this documentation page.
Required permissions
For
GET
operations, your API token must have theView Rules
orView Policies
permission.For
POST
,PUT
, andDELETE
operations, your API token must have theManage Rules
orManage Policies
permission.
Operations
The python body of the global
The description of the global
The id of the global
The tags for the global
POST /globals HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"body": "text",
"description": "text",
"id": "text",
"tags": [
"text"
]
}
{
"body": "text",
"createdAt": "text",
"description": "text",
"id": "text",
"lastModified": "text",
"tags": [
"text"
]
}
ID of the global to fetch
GET /globals/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
{
"body": "text",
"createdAt": "text",
"description": "text",
"id": "text",
"lastModified": "text",
"tags": [
"text"
]
}
put creates or updates a global
The id of the global
The python body of the global
The description of the global
The tags for the global
PUT /globals/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"body": "text",
"description": "text",
"tags": [
"text"
]
}
{
"data": {
"body": "text",
"createdAt": "text",
"description": "text",
"id": "text",
"lastModified": "text",
"tags": [
"text"
]
}
}
ID of the global to delete
DELETE /globals/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
No content
the pagination token
the maximum results to return
100
GET /globals HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
OK response.
{
"next": "text",
"results": [
{
"body": "text",
"createdAt": "text",
"description": "text",
"id": "text",
"lastModified": "text",
"tags": [
"text"
]
}
]
}
Last updated
Was this helpful?