Projects
Create Project
API Documentation
API v1
- GETIntroduction
- Auth
- Projects
- Introduction to Projects
- GETGet Project
- POSTCreate Project
- PATCHUpdate Project
- DELDelete Project
- Activity
- Insights
- Invitations
- Members
- Users
Projects
Create Project
This endpoint creates a new project
POST
/
v1
/
projects
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
}
]
}
}
You must be authenticated to access this route
Body
The name of the project
The namespace of the project (this is unique)
Base64 encoded icon for the project
Response
Indicates whether the call was successful. true
if successful, false
if
not.
The contents of the data object
The id of the project (project_xxxxx
)
The namespace of the project
The name of the project
The icon URL to our CDN of the project
The tier of the project
The stripe id of the project
[{
"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
}
]
}
}
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
}
]
}
}