Update label selections
Update which labels are assigned to a specific entity (order, customer, 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
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://your-site.com/wp-json/fluent-cart/v2/labels/update-label-selections" \ -H "Content-Type: application/json" \ -d '{ "bind_to_type": "string", "bind_to_id": 0, "selectedLabels": [ 0 ] }'{
"message": "string"
}{
"code": "rest_forbidden",
"message": "Sorry, you are not allowed to do that.",
"data": {
"status": 401
}
}