PATCH
/
repositories
/
{repository_id}
/
rename
Rename a repository
curl --request PATCH \
  --url https://apigcp.trynia.ai/v2/repositories/{repository_id}/rename \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "new_name": "<string>"
}'
{
  "success": true,
  "repository_id": "<string>",
  "display_name": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

repository_id
string
required

The ID of the repository to rename

Body

application/json

Response

200
application/json

Repository renamed successfully

The response is of type object.