Logo
API_DOC API Documentation

Add an element

PUT https://{{host}}/network-list/v2/network-lists/:networkListId/elements?element={{element}}

Adds the specified element to the list. If the network list's type is IP, the value needs to be a URL-encoded IP address or CIDR block. If the type is GEO, it's a two-character country code. (See the EdgeScape Documentation) for more information. For a list of countries, go to Data CodesCountry Code.)

 

Body PARAM

Key Datatype Required Description 
element
string (Required) Specifies the element to add to the network list.
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 
Accept
string




RESPONSES

status OK

{ "contractId": "C-0N7RAC71", "elementCount": 13, "groupId": 32145, "links": { "activateInProduction": { "href": "/network-list/v2/network-lists/1024_AMAZONELASTICCOMPUTECLOU/environments/PRODUCTION/activate", "method": "POST" }, "activateInStaging": { "href": "/network-list/v2/network-lists/1024_AMAZONELASTICCOMPUTECLOU/environments/STAGING/activate", "method": "POST" }, "appendItems": { "href": "/network-list/v2/network-lists/1024_AMAZONELASTICCOMPUTECLOU/append", "method": "POST" }, "retrieve": { "href": "/network-list/v2/network-lists/1024_AMAZONELASTICCOMPUTECLOU" }, "statusInProduction": { "href": "/network-list/v2/network-lists/1024_AMAZONELASTICCOMPUTECLOU/environments/PRODUCTION/status" }, "statusInStaging": { "href": "/network-list/v2/network-lists/1024_AMAZONELASTICCOMPUTECLOU/environments/STAGING/status" }, "update": { "href": "/network-list/v2/network-lists/1024_AMAZONELASTICCOMPUTECLOU", "method": "PUT" } }, "list": [ "192.0.2.10/24", "12.129.0.0/15", "12.211.0.0/15", "192.0.2.120/24", "192.0.2.66/24", "12.231.0.0/14", "12.235.0.0/14", "192.0.2.192/24", "192.0.2.24/24", "192.0.2.179/24", "192.0.2.207/24", "192.0.2.129/24", "192.0.2.209/24" ], "name": "My Network List", "networkListType": "networkListResponse", "readOnly": true, "shared": true, "syncPoint": 65, "type": "IP", "uniqueId": "1024_NETWORKLIST" }



Curl
curl -X PUT 'https://host/network-list/v2/network-lists/:networkListId/elements?element=?element=&accountSwitchKey=' -H 'Accept: application/json'

ENDPOINTS