Create docs tab
Add a docs tab after the portal's other tabs. Put groups in it with tab_id on POST or PATCH /docs/groups. Refused while the tab style is the header link.
curl -X POST "https://productlane.com/api/v2/docs/tabs" \
-H "Authorization: Bearer $PRODUCTLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'Authorization
AuthorizationstringheaderrequiredBearer authentication header of the form
Bearer <token>, where<token>is your auth token.
Body
namestringrequirediconstringNucleo fill icon name, e.g.
BookOpenorCode.portal_instance_idstring | nullPortal instance id to assign, from GET /portal/instances. Omit to follow the group or parent the item belongs to;
nulltargets the Main (Root) portal. A value that disagrees with the group's portal is rejected.
Response
Successful response
idstringrequiredcreated_atstringrequiredupdated_atstringrequirednamestringrequirediconstringrequiredNucleo icon name, e.g.
BookOpen.kindenum<string>requireddocsholds your own groups.api_referencealso lists the pages generated from an OpenAPI spec.One of:docsapi_referenceordernumberrequiredslugstring | nullrequiredURL path of an API reference under /docs. null for docs tabs, whose pages keep their article URLs.
publishedbooleanrequiredDefaults to false for new tabs. Set to true to publish the tab and its articles or API reference.
portal_instance_idstring | nullrequired
{
"id": "string",
"created_at": "string",
"updated_at": "string",
"name": "string",
"icon": "string",
"kind": "docs",
"order": 0,
"slug": "string",
"published": true,
"portal_instance_id": "string"
}