Rename, pause or resume a source
Renames a source, or pauses (disabled) and resumes (active) it. A
paused agent's reports are refused until it is resumed. revoked
cannot be set here: revoke the agent under Organization → Agents.
A revoked source answers 409 SOURCE_REVOKED.
Requires the catalog:source:write scope.
Authorization
Parameters
Path parameters
idstring requiredThe source's ID.
Request body required
namestringstatusstring
Responses
200
The source.
dataSourceShow Source properties
idstringorg_idstringkindstringenvironment_idstring | nullagent_idstring | nullnamestringstatusstringlast_seen_atstring (date-time) | nullagent_versionstringWhat the agent last said it runs; empty for a cloud account.created_bystringcreated_atstring (date-time)updated_atstring (date-time)
400
The request is not valid: a field or filter value is wrong
(VALIDATION_ERROR, with a sentence saying what), the body is not
the expected JSON or carries an unknown field (INVALID_BODY), the
cursor is not one this list gave (INVALID_CURSOR), a binding names
a service that does not exist (UNKNOWN_COMPONENT), or a PATCH
tries to change a slug (SLUG_IMMUTABLE).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
403
The key lacks a scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
404
Nothing with this ID (or slug) exists in the organization (NOT_FOUND).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
409
The source is revoked (SOURCE_REVOKED).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
429
Too many requests (RATE_LIMITED). Wait for Retry-After seconds.
Retry-AfterintegerSeconds to wait before retrying.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
Example request
curl -X PATCH 'https://evohub.io/api/v1/catalog/sources/src_4a6c8e0b2d4f6a8c1e3b5d7f9a2c4e6b' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"status": "disabled"
}'
