Logo
Akamai APIs API Documentation

Get a custom behavior

GET https://{{host}}/papi/v1/custom-behaviors/:behaviorId

Get information for a single custom behavior. Use this operation if you want to examine the custom behavior's XML metadata source.

 

Body PARAM

Key Datatype Required Description 
accountSwitchKey
string (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).



HEADERS

Key Datatype Required Description 
PAPI-Use-Prefixes
string (Required) __Enum__ Sets whether to represent [ID prefixes](https://techdocs.akamai.com/property-mgr/reference/id-prefixes) in response data. Set to `false` when exchanging PAPI data with other APIs.
Accept
string




RESPONSES

status OK

{ "accountId": "act_A-CCT1234", "customBehaviors": { "items": [ { "behaviorId": "cbe_12345", "description": "Setting custom download receipt. Uses PMUSER_LOG variable.", "displayName": "Custom Download Receipt", "name": "DLR", "status": "ACTIVE", "updatedByUser": "jsmith", "updatedDate": "2017-04-24T12:34:56Z", "xml": "<reporting:edge-logging.send-receipt name=\"DLR\"><hostname>logs.customer.com</hostname><url>/dlr</url><allow-cacheh>off</allow-cacheh><status>on</status><port>443</port><format>stuff=%(PMUSER_LOG)&amp;time=%t&amp;url=%u</format><method>POST</method></reporting:edge-logging.send-receipt>" } ] } }

Curl
curl -X GET 'https://host/papi/v1/custom-behaviors/:behaviorId?accountSwitchKey=' -H 'PAPI-Use-Prefixes: PAPI-Use-Prefixes' -H 'Accept: application/json'

ENDPOINTS