POST
/
{resourceSlug}
/
forms
/
session
/
add
curl --request POST \
  --url https://app.agentcloud.dev/{resourceSlug}/forms/session/add \
  --header 'Content-Type: req.json' \
  --data '"<string>"'
{
  "_id": "<string>",
  "redirect": "<string>"
}

Path Parameters

resourceSlug
string
required

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

Body

req.json ยท string
JSON body containing appId of the app to use for this session.

Mongodb Object id, unique identifier, length of 24 characters fitting the following regex; [a-f0-9]{24}

Response

302
dynamicResponse
Successful operation, redirect to '/{resourceSlug}/session/{sessionId}'. Redirect field contains path to the newly created session to initialise app.

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.