curl --request POST \
--url https://api.wppfy.com/label/edit \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"labelid": "new",
"name": "responder editado",
"color": 2,
"delete": false
}
'{
"response": "Label created"
}Labels
Create, edit or delete label
Creates, edits or deletes an instance label.
Usage rules:
- To edit an existing label, send the label’s real
labelid. - To create a new label, send
labelid: "new"withdelete: false. The API generates the next available numericlabelidfor the instance. - To delete an existing label, send the real
labelidwithdelete: true.
Notes:
- The success response returns
"Label created"for creation and"Label edited"for editing. - To find out the final
labelidcreated, queryGET /labelsafter the operation or consume the instance’s labels webhook/event.
POST
/
label
/
edit
curl --request POST \
--url https://api.wppfy.com/label/edit \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"labelid": "new",
"name": "responder editado",
"color": 2,
"delete": false
}
'{
"response": "Label created"
}Authorizations
Body
application/json
Label ID.
Use the real ID to edit/delete an existing label.
Use "new" to create a new label when delete is false.
Example:
"25"
New label name
Example:
"responder edited"
Numeric code of the new color (0-19)
Required range:
0 <= x <= 19Example:
2
Indicates whether the label should be deleted
Example:
false
Response
Operation completed successfully
Available options:
Label created, Label edited Example:
"Label edited"
