Parameters
layer
dictionary
title
string
content
string
type
string
tags
array
slug
string
cover_image_path
string
summary
string
account_id
number
POST/v1/layers
bash
curl https://api.tradly.app/v1/layers \
-H "Authorization: Bearer YOUR_PUBLISHABLE_OR_SECRET_KEY" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"layer": {
"title": "How to deploy React JS app using Docker",
"content": "your markdown content here MD or MDX or HTML or any string",
"type": "blog",
"tags": [
"node",
"react",
"tech"
],
"slug": "react123",
"cover_image_path": "https://your_domain.com/image.png",
"summary": "Welcome to our blog.",
"account_id": 4
}
}'RESPONSE
json
{
"status": true,
"data": {
"layer": {
"id": 1
}
}
}