curl --location --request POST 'https://api.lawg.dev/v1/projects' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "My Project",
"namespace": "my-project",
"icon": "base64 encoded icon"
}'
{
"success": true,
"data": {
"id": "project_xxx",
"namespace": "my-project",
"name": "My Project",
"icon": "https://cdn.lawg.dev/projects/project_xxx.png",
"tier": 0,
"stripe_id": null,
"feeds": [
{
"id": "feed_xxx",
"name": "My Feed",
"description": null,
"emoji": null,
"type": 0
}
],
"members": [
{
"id": "user_xxx",
"username": "john",
"icon": null
}
]
}
}
This endpoint creates a new project
curl --location --request POST 'https://api.lawg.dev/v1/projects' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "My Project",
"namespace": "my-project",
"icon": "base64 encoded icon"
}'
{
"success": true,
"data": {
"id": "project_xxx",
"namespace": "my-project",
"name": "My Project",
"icon": "https://cdn.lawg.dev/projects/project_xxx.png",
"tier": 0,
"stripe_id": null,
"feeds": [
{
"id": "feed_xxx",
"name": "My Feed",
"description": null,
"emoji": null,
"type": 0
}
],
"members": [
{
"id": "user_xxx",
"username": "john",
"icon": null
}
]
}
}
true
if successful, false
if
not.Show Toggle object
project_xxxxx
)[{
"id": "feed_xxxx",
"name": "",
"description": "", // or null
"emoji": "", // or null
"type": 0, // 0 = APPLICATION, 1 = EVENTS
}]
[{
"id": "user_xxxxx",
"username": "",
"icon": "", // or null
}]
curl --location --request POST 'https://api.lawg.dev/v1/projects' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "My Project",
"namespace": "my-project",
"icon": "base64 encoded icon"
}'
{
"success": true,
"data": {
"id": "project_xxx",
"namespace": "my-project",
"name": "My Project",
"icon": "https://cdn.lawg.dev/projects/project_xxx.png",
"tier": 0,
"stripe_id": null,
"feeds": [
{
"id": "feed_xxx",
"name": "My Feed",
"description": null,
"emoji": null,
"type": 0
}
],
"members": [
{
"id": "user_xxx",
"username": "john",
"icon": null
}
]
}
}