curl --request PATCH \
--url https://api.callva.io/api/v1/external/issues/{issue} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"problem": "<string>",
"solution": "<string>",
"implemented_at": "2023-11-07T05:31:56Z",
"proven_by": "<string>",
"stack": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.callva.io/api/v1/external/issues/{issue}"
payload = {
"title": "<string>",
"problem": "<string>",
"solution": "<string>",
"implemented_at": "2023-11-07T05:31:56Z",
"proven_by": "<string>",
"stack": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
problem: '<string>',
solution: '<string>',
implemented_at: '2023-11-07T05:31:56Z',
proven_by: '<string>',
stack: '<string>',
agent_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
call_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.callva.io/api/v1/external/issues/{issue}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Issue updated successfully",
"data": {
"id": "<string>",
"project_id": "<string>",
"agent_id": "<string>",
"call_id": "<string>",
"kind": "<string>",
"status": "<string>",
"title": "<string>",
"problem": "<string>",
"solution": "<string>",
"implemented_at": "<string>",
"proven_by": "<string>",
"stack": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"created_by": {
"id": 123,
"name": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>"
}
}{
"success": false,
"message": "This API token is tenant-scoped. Please provide project_id in the request payload or query parameters, or use a project-scoped token.",
"code": "PROJECT_REQUIRED"
}{
"error": "Invalid or expired token",
"message": "The provided token is invalid or has expired"
}{
"success": true,
"message": "Access denied. Only owners and admins can manage issues."
}{
"message": "<string>"
}{
"success": true,
"message": "Validation failed",
"errors": {}
}Update an issue
Requires permission: issues.update.
What a token may call depends on its role: see Authentication and permissions.
Also accepted as PUT, with the same body and effect.
curl --request PATCH \
--url https://api.callva.io/api/v1/external/issues/{issue} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"problem": "<string>",
"solution": "<string>",
"implemented_at": "2023-11-07T05:31:56Z",
"proven_by": "<string>",
"stack": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.callva.io/api/v1/external/issues/{issue}"
payload = {
"title": "<string>",
"problem": "<string>",
"solution": "<string>",
"implemented_at": "2023-11-07T05:31:56Z",
"proven_by": "<string>",
"stack": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
problem: '<string>',
solution: '<string>',
implemented_at: '2023-11-07T05:31:56Z',
proven_by: '<string>',
stack: '<string>',
agent_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
call_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.callva.io/api/v1/external/issues/{issue}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Issue updated successfully",
"data": {
"id": "<string>",
"project_id": "<string>",
"agent_id": "<string>",
"call_id": "<string>",
"kind": "<string>",
"status": "<string>",
"title": "<string>",
"problem": "<string>",
"solution": "<string>",
"implemented_at": "<string>",
"proven_by": "<string>",
"stack": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"created_by": {
"id": 123,
"name": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>"
}
}{
"success": false,
"message": "This API token is tenant-scoped. Please provide project_id in the request payload or query parameters, or use a project-scoped token.",
"code": "PROJECT_REQUIRED"
}{
"error": "Invalid or expired token",
"message": "The provided token is invalid or has expired"
}{
"success": true,
"message": "Access denied. Only owners and admins can manage issues."
}{
"message": "<string>"
}{
"success": true,
"message": "Validation failed",
"errors": {}
}Authorizations
A CallVA API token, sent as Authorization: Bearer <token>.
Creating one. In the CallVA dashboard, open the organization's Settings, then API Keys, and choose Create API Key: give the key a name, choose its role, and choose its project scope - All projects for an organization-wide token, or one project for a project token. The key is shown once, when it is created, and cannot be read again; store it then. Creating keys needs the api_tokens.create permission, which owners and admins hold, and a key cannot create another key.
Organization-wide or project token. A project token works in the one project it was created for; any project named in the request is ignored. An organization-wide token reaches the projects of its organization, and each request names its project with the X-Project-ID header or project_id (query string for reads and deletes, body for writes).
What it can call. The token's role decides which endpoints it may call; each endpoint names the permission it requires, and a token whose role lacks it is answered 403.
Headers
The project this request acts in. Required with an organization-wide token (or send project_id instead); ignored with a project token, which always acts in its own project.
Path Parameters
The issue ID
Body
defect, limitation open, fixed, closed 255255