Saltar para o conteúdo principal
POST
/
public
/
api
/
v1
/
hub
/
external-links
Create external link
curl --request POST \
  --url https://api.gennia.ai/public/api/v1/hub/external-links \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "title": "Documentation",
  "url": "https://docs.example.com"
}
'
{
  "createdAt": "2023-11-07T05:31:56Z",
  "displayOrder": 123,
  "publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "title": "<string>",
  "url": "<string>"
}

Autorizações

X-Api-Key
string
header
obrigatório

Corpo

application/json

Body for creating a new external link on the hub.

title
string

Display title of the link.

Required string length: 1 - 100
Exemplo:

"Documentation"

url
string

URL of the link.

Maximum string length: 2048
Exemplo:

"https://docs.example.com"

Resposta

Created

createdAt
string<date-time>
displayOrder
integer<int32>
publicId
string<uuid>
title
string
url
string