Delete Journey State
(v2)DELETE
Permanently deletes a state and its edges, along with every state that could only be reached through it, and returns the ids of all the states removed. Goldens generated for a path through any of them are kept but no longer belong to any path. The root state cannot be deleted; trying returns a 400.
curl -X DELETE "https://api.confident-ai.com/v2/journeys/{journeyId}/states/{stateId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "<JOURNEY-STATE-ID>",
"deletedStateIds": [
"<JOURNEY-STATE-ID>"
]
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/journeys/<JOURNEY-ID>",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
journeyIdstringRequiredThe id of the journey the state belongs to.
stateIdstringRequiredThe id of the state.
Response
Delete Journey State succeeded.
successbooleanIndicates if the request was successful.
dataobjectThe states removed by deleting a state from a journey.
Show 2 propertiesHide 2 properties
idstringThe id of the state you deleted.
deletedStateIdslist of stringsEvery state removed: the one you deleted, then any state that could only be reached through it.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.