Thanks @Connor_Barley. Requests for tickets pipelines do work now indeed. However, Deals keep returning an error : {
"status": "error",
"message": "must specify probability when writing a dealstage"
}
POST:
Hi @geri1985, the team has added additional validation when creating/updating dealstages that will reject writes that don't include a probability. You should include the probability in all future requests. We'll update the docs to match tomorrow. Your account has been "unstuck" from the consistently loading Deals screen as well.
Hi @geri1985, taking a look at your POST data to create a new pipeline, I can see you have a probability field included which doesn't appear in the docs here. I can also see your displayOrder field starts at 0, when it should start at 1. That said, I was able to actually break my own deals page with a simple POST request based off of the docs. I'm in touch with the CRM team right now and will update when we've addressed the issue.
Yes, that worked. However, when I add new data or try something else with PUT request I keep getting the same error with broken Deals page and it's not loading.
Request:
POST: https://api.hubapi.com/crm-pipelines/v1/pipelines/deals?hapikey=XXXXXXXX-144f-45a3-aae3-865a454bfffc
Body: {
"pipelineId": "api_test_pipeline4",
"label": "API test deals pipeline",
"displayOrder": 3,
"active": true,
"stages": [
{
"label": "Initial Qualification",
"displayOrder": 0,
"probability": 0.1
},
{
"label": "Negotiation",
"displayOrder": 1,
"probability": 0.5
},
{
"label": "Success",
"displayOrder": 2,
"stageId": "customclosedwonstag",
"probability": 1
}
]
}
How long do you think will it take to do a stronger validation? Is there anything I can help with?
Hi @geri1985, our CRM developers just pushed out a fix for this. We're working on stronger validation that wouldn't allow your Deals page to get into that state in the first place, but you should be good to go moving forward.
Hi @geri1985, just a quick update here. The team believes that the PUT request that you made may have deleted or altered it in a way that broke the Deal homepage. They're working on a fix at the moment.
Also, in your original post, you included your API key. Please refrain from posting sensitive information like this in the forums since these are public. I'd recommend deactivating your API key and generating a new one.
Hi @geri1985, that's strange. I'm also able to reproduce the issue. I'm going to reach out to my team about this and get back to you when I have an answer.
Hi @geri1985, happy to help here! Can you reply with your HubID so I can take a closer look at this and try to reproduce the issue you're seeing? Make sure the pipelineID is correct in your call. Are you able to reproduce this in a REST client like Postman?