Deployment failed via API

I did try to deploy:

const accountId = process.env.CLOUDFLARE_ACCOUNT_ID;
const apiToken = process.env.CLOUDFLARE_API_TOKEN;

        const endpoint = `https://api.cloudflare.com/client/v4/accounts/${accountId}/pages/projects/${projectName}/deployments`;

        try {
            const response = await fetch(endpoint, {
                method: 'POST',
                headers: {
                    'Content-Type': 'application/json',
                    Authorization: `Bearer ${apiToken}`,
                },
            });
`

Got this error:

Deployment failed: {
  result: null,
  success: false,
  errors: [
    {
      code: 8000096,
      message: 'A "manifest" field was expected in the request body but was not provided.'
    }
  ],
  messages: []
}
Was this page helpful?