Skip to main content
POST
Set Check Owner
Use this API to set a check’s owner for a project, or to clear it with null. Without an owner set here, the check’s owner is the default owner for its responsibility, else the project admin (see Update Check Settings). List Checks returns both: ownerMemberId (set here) and effectiveOwner (the one that applies).

Endpoint

POST https://api.velt.dev/v2/agents/checks/owner/set

Headers

string
required
Your API key.
string
required

Body

Params

object
required
The schema uses .strict(): unknown fields, in data or in owner, are rejected.

Example Requests

1. Set the owner

2. Clear the owner

Response

Success Response

Failure Response

Errors: INVALID_ARGUMENT (a body outside the schema: a missing or malformed ruleKey, a missing ownerMemberId, an owner without userId, or an unknown field) / NOT_FOUND with CHECKS_WORKSPACE_NOT_FOUND (the workspace has no store database).