You must be authenticated to access this route
Body
The updated name of the project.
The updated namespace of the project (this must still be unique).
Base64 encoded icon for the project. The icon must start with “data:image/png;base64,”.
Response
Indicates whether the call was successful. true
if successful, false
if not.
The updated project data.
The id of the project (project_xxxxx
)
The namespace of the project
The updated name of the project
The icon URL to our CDN 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 PATCH 'https://api.lawg.dev/v1/projects/:namespace' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Updated Project Name",
"icon": "base64_encoded_icon"
}'
{
"success": true,
"data": {
"id": "project_xxx",
"namespace": "my-project",
"name": "Updated Project Name",
"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
}
]
}
}