Update an issue source
const url = 'http://localhost:8080/api/v1/projects/example/issue-sources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: { cookie: 'cetra_session=<cetra_session>', 'Content-Type': 'application/json' }, body: '{"budget_period":"day","budget_usd":1,"channel_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"chat_connection_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","chat_model":"example","clear_budget":true,"daily_cap":1,"embed_connection_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","embed_model":"example","enabled":true,"feedback_sources":["example"],"filter":"example","floor":1,"min_issue_size":1,"name":"example","sample_rate":1,"score_names":["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 http://localhost:8080/api/v1/projects/example/issue-sources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --cookie cetra_session=<cetra_session> \ --data '{ "budget_period": "day", "budget_usd": 1, "channel_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "chat_connection_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "chat_model": "example", "clear_budget": true, "daily_cap": 1, "embed_connection_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "embed_model": "example", "enabled": true, "feedback_sources": [ "example" ], "filter": "example", "floor": 1, "min_issue_size": 1, "name": "example", "sample_rate": 1, "score_names": [ "example" ] }'Project members and above. API keys cannot call it. kind cannot change. Enabling a source checks the active-source limit.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project UUID, URL-encoded org-slug/project-slug, or current.
Issue source id.
Request Bodyrequired
Section titled “Request Bodyrequired”PATCH /api/v1/projects/{project}/issue-sources/{id} body. Absent means unchanged.
There is no kind: sending it is a 400 (unknown field). Optional fields refuse null,
except filter, where null clears it.
object
Period of the budget.
Spend limit per budget_period, in USD. Give it with budget_period when the source has
no budget yet.
New channels, at most 10 of this project. [] removes every channel. Absent keeps them.
Connection of the chat model. LLM kinds only.
Chat model of that connection. LLM kinds only.
Removes the budget. Cannot come with budget_usd or budget_period.
Most candidates admitted per UTC day, 1 to 10 000. LLM kinds only.
Refused: the embedding connection is fixed after create (400).
Refused: the embedding model is fixed after create (400).
Turns the source on or off.
Replaces the feedback sources of a feedback source.
Spans filter. null or "" clears it.
Cosine similarity at which a candidate joins an issue, 0.5 to 0.99. LLM kinds only.
Smallest group a refit makes into a new issue, 2 to 100. LLM kinds only.
Display name, 1 to 128 characters after trimming.
Share of the matching traces or scores that become candidates, in (0, 1]. LLM kinds only.
Replaces the score names of a score or feedback source.
Responses
Section titled “Responses”The updated source.
An issue source. Spec 09 § Issues.
object
Period of the budget. Present exactly when budget_usd is.
Spend limit per budget_period, in USD. Omitted when there is no budget.
Candidates created in the last 24 hours, by status. LLM kinds only.
object
Joined an issue.
Not kept: the trace is gone, or the daily cap was reached.
Failed after its retries.
Embedded, waiting for the next refit.
Waiting for a worker, or for their retry time.
Skipped: the source was deleted, paused too long, or the trace was deleted.
Channels notified of new and regressed issues. Ordered by id.
Connection of the chat model that summarizes and names. LLM kinds only.
Chat model of that connection. LLM kinds only.
Creation time. JSON is RFC 3339.
User who created the source. Omitted when that user is unknown.
Most candidates admitted per UTC day, 1 to 10 000. LLM kinds only.
Connection of the embedding model. Fixed after create. LLM kinds only.
Vector dimension of the embedding model, set once the source first embeds. LLM kinds only.
Embedding model of that connection. Fixed after create. LLM kinds only.
Whether the source runs. A disabled source counts for no plan limit.
Feedback sources read by a feedback source: end_user and/or human. Omitted for other
kinds.
Spans filter for error sources. Omitted when there is none.
Cosine similarity at which a candidate joins an issue, 0.5 to 0.99. LLM kinds only.
Source id.
What the source reads. Immutable.
Smallest group a refit makes into a new issue, 2 to 100. LLM kinds only.
Display name, unique in the project. 1 to 128 characters.
When the next refit is due. Omitted for other kinds. JSON is RFC 3339.
Issues of this source that are open now.
The provider’s error text for a connection pause. Omitted when the source is not paused for a connection.
Why the sweeper skips the source. Omitted when it runs.
The project the source belongs to.
Share of the matching traces or scores that become candidates, in (0, 1]. LLM kinds only.
Score names read by a score or feedback source. Omitted for other kinds.
Spend of the current UTC day, in USD. LLM kinds only.
Last change time. JSON is RFC 3339.
Example
{ "budget_period": "day", "kind": "error"}The request is malformed or a filter is invalid.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}No credentials, or the credentials are invalid.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The credentials do not allow this operation, or the organization’s plan does not include it (code plan_required).
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The resource does not exist.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The request conflicts with the current state.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}Too many requests.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}