PATCH
/
v1
/
projects
/
:namespace
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
      }
    ]
  }
}
You must be authenticated to access this route
Body
name
string
The updated name of the project.
namespace
string
The updated namespace of the project (this must still be unique).
icon
string
Base64 encoded icon for the project. The icon must start with “data:image/png;base64,”.
Response
success
boolean
Indicates whether the call was successful. true if successful, false if not.
data
object
The updated project data.
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
      }
    ]
  }
}