What is causing the api curl error?

My domain uses the enterprise plan.

curl -X POST "h~~://api.cloudflare.com/client/v4/zones/myid/custom_hostnames
-H “Content-Type:application/json”
-H “X-Auth-Key: mykey”
-H “X-Auth-Email:[email protected]
–data ‘{“hostname”:“test.cc09c.com”,“ssl”:{“method”:“http”,“type”:“dv”},“custom_metadata”:{“origin”:“”},“custom_origin_server”:“test01.abc.com”}’

You can check the normal list with GET,
When I send a query to create, I get an error.

The error contents are as follows.

“result”: {
“ssl”: null
“success”: false,
“errors”: [
“code”: 1413,
“message”: “No custom metadata access has been allocated for this zone. If you’re already a paid SSL for SaaS customer, please contact your Customer Success Manager for additional provisioning. If you’re not yet enrolled, please fill out this form and someone from our sales team will contact you: h~~~://www.cloudflare.com/plans/enterprise/contact/.”

It says you don’t have that access and to contact your CSM. Have you done that?


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.