Publish To Catalog
POST
/v1/catalog/publish
const url = 'https://api.cloud.agentums.ru/v1/catalog/publish';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"category":"","changelog":"","icon":"sparkles","profile_slug":"example","summary":"example","title":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.cloud.agentums.ru/v1/catalog/publish \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "category": "", "changelog": "", "icon": "sparkles", "profile_slug": "example", "summary": "example", "title": "example" }'Подать свою роль в каталог. Карточка заводится черновиком, версия уходит в очередь.
Адрес карточки здесь не выдаётся: он появится при одобрении, иначе имя занимала бы заявка, которую никто не собирался доводить до конца.
Authorizations
Заголовок раздела «Authorizations»Request Bodyrequired
Заголовок раздела «Request Bodyrequired»Media typeapplication/json
CatalogPublishIn
Заявка на публикацию своей роли. Персона и наборы берутся из самой роли, а не отсюда: публикуется то, что человек уже собрал и попробовал.
object
category
Category
string
changelog
Changelog
string
icon
Icon
string
profile_slug
required
Profile Slug
string
summary
required
Summary
string
title
required
Title
string
Responses
Заголовок раздела «Responses»Successful Response
Media typeapplication/json
CatalogPublishOut
object
listing_id
required
Listing Id
string
state
required
State
string
version
required
Version
integer
Examplegenerated
{ "listing_id": "example", "state": "example", "version": 1}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}