PUT
/
v2
/
intention
/
{intentionId}
cURL
curl --request PUT \
  --url https://api.gptmaker.ai/v2/intention/{intentionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "description": "<string>",
  "preprocessingMessage": "DISABLED",
  "preprocessingText": "<string>",
  "fields": [
    {
      "name": "<string>",
      "jsonName": "<string>",
      "description": "<string>",
      "type": "TEXT",
      "required": true
    }
  ],
  "type": "WEBHOOK",
  "httpMethod": "GET",
  "url": "<string>",
  "headers": [
    {
      "name": "<string>",
      "value": "<string>"
    }
  ],
  "params": [
    {
      "name": "<string>",
      "value": "<string>"
    }
  ],
  "requestBody": "<string>",
  "autoGenerateParams": true,
  "autoGenerateBody": true
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

intentionId
string
required

ID da intenção

Body

application/json

Dados da intenção a ser atualizada

The body is of type object.

Response

200
application/json

Intenção atualizada com sucesso

The response is of type object.