Admin Create Content Node
curl --request POST \
--url https://api.member.dev/api/v1/teams/{team_id}/hubs/{hub_id}/content/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"attributes": {
"node_type": "<string>",
"title": "<string>",
"content_type": "<string>",
"description": "<string>",
"legacy_hash": "<string>",
"media_id": "<string>",
"meta": {},
"parent_id": "<string>",
"position": 0,
"privacy": "members",
"published_at": "2023-11-07T05:31:56Z",
"slug": "<string>"
},
"type": "<string>"
}
}
'{
"data": {
"attributes": {
"content_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"hub_id": "<string>",
"legacy_hash": "<string>",
"media_id": "<string>",
"meta": {},
"node_type": "<string>",
"parent_id": "<string>",
"position": 123,
"privacy": "<string>",
"published_at": "2023-11-07T05:31:56Z",
"slug": "<string>",
"team_id": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"attachments": [
{
"id": "<string>",
"media_id": "<string>",
"role": "<string>",
"file_id": "<string>",
"filename": "<string>",
"mime_type": "<string>",
"size_bytes": 123,
"url": "<string>"
}
],
"file_id": "<string>",
"is_saved": false
},
"id": "<string>",
"type": "content_nodes"
}
}content-admin
Admin Create Content Node
Create a new content node in the hub tree.
POST
/
api
/
v1
/
teams
/
{team_id}
/
hubs
/
{hub_id}
/
content
Admin Create Content Node
curl --request POST \
--url https://api.member.dev/api/v1/teams/{team_id}/hubs/{hub_id}/content/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"attributes": {
"node_type": "<string>",
"title": "<string>",
"content_type": "<string>",
"description": "<string>",
"legacy_hash": "<string>",
"media_id": "<string>",
"meta": {},
"parent_id": "<string>",
"position": 0,
"privacy": "members",
"published_at": "2023-11-07T05:31:56Z",
"slug": "<string>"
},
"type": "<string>"
}
}
'{
"data": {
"attributes": {
"content_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"hub_id": "<string>",
"legacy_hash": "<string>",
"media_id": "<string>",
"meta": {},
"node_type": "<string>",
"parent_id": "<string>",
"position": 123,
"privacy": "<string>",
"published_at": "2023-11-07T05:31:56Z",
"slug": "<string>",
"team_id": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"attachments": [
{
"id": "<string>",
"media_id": "<string>",
"role": "<string>",
"file_id": "<string>",
"filename": "<string>",
"mime_type": "<string>",
"size_bytes": 123,
"url": "<string>"
}
],
"file_id": "<string>",
"is_saved": false
},
"id": "<string>",
"type": "content_nodes"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/vnd.api+json
Show child attributes
Show child attributes
Response
Successful Response
Show child attributes
Show child attributes
⌘I