POST
/
{resourceSlug}
/
forms
/
session
/
{sessionId}
/
cancel
curl --request POST \
  --url https://app.agentcloud.dev/{resourceSlug}/forms/session/{sessionId}/cancel
{
  "_id": "<string>",
  "redirect": "<string>"
}

Path Parameters

resourceSlug
string
required

The resourceSlug is a URL parameter of the teamId associated with the user.

sessionId
string
required

The ID of the session to be cancelled.

Response

302
dynamicResponse
Successful operation, redirect to '/{resourceSlug}/models'. (this needs to be modified to correctly display dynamicResponse)

Server response after successsfully adding a new object

_id
string

The unique Mongo id of the newly inserted object.

redirect
string

a string containing the redirect link to get all objects after a successful insertion.