@codewarior
Please double check your parameter values, as per the error message it seems you are passing some parameter value string. Kindly check the following cURL examples, these will help you to accomplish the task.
Insert Text into the page header:
curl -X POST "https://api.aspose.cloud/v3.0/pdf/target.pdf/header/text?startPageNumber=1&endPageNumber=2&folder=Temp"
-H "accept: application/json"
-H "authorization: Bearer [Access_Token]"
-H "Content-Type: application/json"
-H "x-aspose-client: Containerize.Swagger"
-d "{\"Background\":true,\"HorizontalAlignment\":\"Center\",\"Opacity\":1.0,\"Rotate\":\"None\",\"RotateAngle\":10.0,\"XIndent\":0.0,\"YIndent\":0.0,\"Zoom\":1.0,\"TextAlignment\":\"Center\",\"Value\":\"Header\",\"TextState\":{\"FontSize\":14.0,\"Font\":\"Arial Bold\",\"ForegroundColor\":{\"A\":255,\"R\":0,\"G\":255,\"B\":0},\"BackgroundColor\":{\"A\":255,\"R\":255,\"G\":0,\"B\":0},\"FontStyle\":\"Bold\"},\"LeftMargin\":1.0,\"TopMargin\":20.0,\"RightMargin\":2.0}"
Insert Image into the page header:
curl -X POST "https://api.aspose.cloud/v3.0/pdf/Test_sample.pdf/header/image?startPageNumber=1&endPageNumber=2&folder=Temp"
-H "accept: application/json"
-H "authorization: Bearer [Access_Token]"
-H "Content-Type: application/json"
-H "x-aspose-client: Containerize.Swagger"
-d "{\"Background\":true,\"HorizontalAlignment\":\"Center\",\"Opacity\":1.0,\"Rotate\":\"None\",\"RotateAngle\":0.0,\"XIndent\":0.0,\"YIndent\":0.0,\"Zoom\":0.1,\"FileName\":\"Temp/aspose.jpg\",\"LeftMargin\":1.0,\"TopMargin\":20.0,\"RightMargin\":2.0}"
Please share your input document along with the code, we will investigate it and guide you.