dlogify docs
API referenceProjects

Update a project

PATCH/v1/projects/{project_id}

Requires role admin or higher.

Renames the project, turns its log history on or off, or both. Turned off, new lines are not stored; lines already stored stay until their retention ends. Log history starts on the date in the Data Retention Policy; the switch can be set before it.

Authorization

AuthorizationBearer <token>

A session token from /v1/auth/sign-in/email (CLI, scripts).

In: header

Path Parameters

project_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Properties1 <= properties

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PATCH "https://example.com/v1/projects/string" \  -H "Authorization: Bearer $DLOGIFY_SESSION" \  -H "Content-Type: application/json" \  -d '{}'
{  "created_at": "2019-08-24T14:15:22Z",  "id": "string",  "log_history_enabled": true,  "name": "string",  "org_id": "string"}