Upload editor file
Upload a file for use in rich text editors (product descriptions, emails, etc.).
AuthorizationBasic <token>
WordPress Application Password authentication. Generate one at wp-admin > Users > Application Passwords. Use as Basic Auth with username:application_password (base64-encoded).
In: header
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
file?string
Response Body
application/json
application/json
curl -X POST "https://your-site.com/wp-json/fluent-cart/v2/upload-editor-file"{
"url": "http://example.com"
}{
"code": "rest_forbidden",
"message": "Sorry, you are not allowed to do that.",
"data": {
"status": 401
}
}