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.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
accountSwitchKey | string | (Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
PAPI-Use-Prefixes | string | (Required) Enum Sets whether to represent 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":"\u003creporting:edge-logging.send-receipt name=\"DLR\"\u003e\u003chostname\u003elogs.customer.com\u003c/hostname\u003e\u003curl\u003e/dlr\u003c/url\u003e\u003callow-cacheh\u003eoff\u003c/allow-cacheh\u003e\u003cstatus\u003eon\u003c/status\u003e\u003cport\u003e443\u003c/port\u003e\u003cformat\u003estuff=%(PMUSER_LOG)\u0026amp;time=%t\u0026amp;url=%u\u003c/format\u003e\u003cmethod\u003ePOST\u003c/method\u003e\u003c/reporting:edge-logging.send-receipt\u003e"}]}}