Discussions

Ask a Question
Back to All

Custom field deletion

I'm trying to delete a custom field via the API but it keeps returning an "Invalid UUID" message.

I see the custom field when I do a GET request, then I copy/paste the UUID into the delete request. I have tried the following commands:

curl --request DELETE --url https://api.servicem8.com/custom_fields_1.0 --data UUID="xxx"

and

curl --request DELETE --url https://api.servicem8.com/custom_fields_1.0 --data '{"uuid":"xxx"}'

Both return the error {"errorCode":100,"message":"Invalid UUID"} even though I am copying/pasting the UUID directly from the GET response.

Is this a bug or am I doing something wrong?

Cheers