Skip to main content
POST
/
api
/
run
/
svc
/
github_repo
/
private
/
try_acquire_sync_lock
Calls a mutation at the path svc/github_repo/private.js:try_acquire_sync_lock
curl --request POST \
  --url https://ardent-sandpiper-70.convex.cloud/api/run/svc/github_repo/private/try_acquire_sync_lock \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "args": {
    "baggage": {
      "trace_id": "<string>",
      "traffic_type": "external"
    },
    "name": "<string>",
    "owner": "<string>",
    "timeout_ms": 123
  }
}
'
{
  "status": "success",
  "errorMessage": "<string>",
  "errorData": {},
  "value": {
    "acquired": true,
    "repo_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Token of the format "Bearer {token}" for normal authentication and "Convex {token}" for admin tokens.

Body

application/json
args
object
required

Response

Convex executed your request and returned a result

status
enum<string>
required
Available options:
success,
error
errorMessage
string
errorData
object
value
object