Update project name or slug
PATCH
/api/public/v1/projects/{project_id}
const url = 'https://testperch.com/api/public/v1/projects/example';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"example","slug":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://testperch.com/api/public/v1/projects/example \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "example", "slug": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”project_id
required
ID of a project visible to the authenticated credential.
string
ID of a project visible to the authenticated credential.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
string
slug
string
Example generated
{ "name": "example", "slug": "example"}Responses
Section titled “Responses”Update project name or slug.
Media typeapplication/json
object
id
required
string
name
required
string
slug
required
string
web_url
required
string format: uri
workspace
required
object
id
required
string
name
required
string
slug
required
string
Example generated
{ "id": "example", "name": "example", "slug": "example", "web_url": "https://example.com", "workspace": { "id": "example", "name": "example", "slug": "example" }}Invalid parameters, query, or cursor.
Media typeapplication/json
object
error
required
object
code
required
string
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid
Example
{ "error": { "code": "invalid_request" }}Missing or invalid OAuth bearer token or API key.
Media typeapplication/json
object
error
required
object
code
required
string
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid
Example
{ "error": { "code": "invalid_request" }}The project workspace does not have product access.
Media typeapplication/json
object
error
required
object
code
required
string
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid
Example
{ "error": { "code": "invalid_request" }}The credential lacks the required permission; configuration writes require a Read + write project key.
Media typeapplication/json
object
error
required
object
code
required
string
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid
Example
{ "error": { "code": "invalid_request" }}The resource is inaccessible or does not exist.
Media typeapplication/json
object
error
required
object
code
required
string
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid
Example
{ "error": { "code": "invalid_request" }}Configuration conflicts with an existing resource or integration requirements.
Media typeapplication/json
object
error
required
object
code
required
string
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid
Example
{ "error": { "code": "invalid_request" }}Credential or workspace rate limit exceeded.
Media typeapplication/json
object
error
required
object
code
required
string
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid
Example
{ "error": { "code": "invalid_request" }}Headers
Section titled “Headers”Retry-After
required
Seconds before retrying.
integer
Seconds before retrying.
Internal server error.
Media typeapplication/json
object
error
required
object
code
required
string
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid
Example
{ "error": { "code": "invalid_request" }}