Logo
Akamai APIs API Documentation

Policies

Number of APIs: 2


1. Create a policy

POST https://{{host}}/script-management/v1/properties/:propertyId/hostnames/:hostname/network/:network/policies

Creates a new policy for the specified propertyId, hostname, and network. The policy request needs to include the spofConfig object or scriptConfig array item, but it can contain both. Only one policy can exist per hostname. A change to the spofConfig or scriptConfig overwrites the existing policy. If a policy already exists with the same spofConfig and scriptConfig, the API responds with a 409 error and displays the existing policy.



2. Get a policy

GET https://{{host}}/script-management/v1/properties/:propertyId/hostnames/:hostname/network/:network/policies

Returns information about the latest version of a policy for the specified property, hostname, and network.



ENDPOINTS