Skip to main content

Update project

PUT 

<your-unleash-url>/api/admin/projects/:projectId

Update a project with new configuration. Any fields not provided are ignored.

Request

Path Parameters

    projectId stringrequired

Bodyrequired

updateProjectSchema

    namestringrequired

    The new name of the project. The name must contain at least one non-whitespace character.

    Possible values: Value must match regular expression ^(?!\s*$).+

    Example: my-renamed-project
    descriptionstring

    A new description for the project

    Example: Anything related to the new UI
    modestring

    A mode of the project affecting what actions are possible in this project

    Possible values: [open, protected, private]

    Example: open
    defaultStickinessstring

    A default stickiness for the project affecting the default stickiness value for variants and Gradual Rollout strategy

    Example: userId

Responses

This response has no body.

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId' \
-H 'Content-Type: application/json' \
-H 'Authorization: <Authorization>' \
-d '{
"name": "my-renamed-project",
"description": "Anything related to the new UI",
"mode": "open",
"defaultStickiness": "userId"
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
Body required
{
  "name": "my-renamed-project",
  "description": "Anything related to the new UI",
  "mode": "open",
  "defaultStickiness": "userId"
}
ResponseClear

Click the Send API Request button above and see the response here!