AgentConnect
Hooks

Add a trusted user

Vouch for one user by login. The server resolves the host's numeric user id through the repository's own credential and stores that; re-adding refreshes the display login.

POST
/v1/orgs/{orgId}/hooks/{hookId}/trusted-actors

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

orgId*string
hookId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/orgs/string/hooks/string/trusted-actors" \  -H "Content-Type: application/json" \  -d '{    "login": "string"  }'
{  "id": "string",  "provider": "github",  "repoId": "string",  "actorId": "string",  "login": "string",  "addedBy": "string",  "createdAt": "string"}