Skip to content

Create Invalidation

POST /prod-api/acdn/cloudfrontRest/outCreateInvalidation

Body Request Parameters

{
  "distributionName": "E3A0Z4",
  "paths": ["/ztlll"]
}

Request Parameters

Name Location Type Required Chinese Name Description
Authorization header string Yes none
body body PutInvalidationVo No PutInvalidationVo none

Response Example

Success

{
  "msg": "Update successful",
  "code": 200
}

201 Response

{}

Response Results

Status Code Status Meaning Description Data Model
200 [OK] Success Inline
201 [Created] Created Inline
401 [Unauthorized] Unauthorized Inline
403 [Forbidden] Forbidden Inline
404 [Not Found] Not Found Inline

Response Data Structure

Status Code 200

Name Type Required Constraints Chinese Name Description
» msg string true none none
» code integer true none none

Data Model

PutInvalidationVo

{
  "distributionId": 0,
  "paths": ["string"]
}

PutInvalidationVo

Properties

Name Type Required Constraints Chinese Name Description
distributionName integer(int64) true Distribution none
paths [string] true none Object paths to add none