repos
Create repository
Create a repository.
Repos collect Full scans and Diff scans and are typically associated with a git repo.
This endpoint consumes 1 unit of your quota.
This endpoint requires the following org token scopes:
- repo:create
post/orgs/{org_slug}/repos
Request
- Base URLhttps://api.socket.dev/v0
- URLhttps://api.socket.dev/v0/orgs/{org_slug}/repos
- Auth
- HTTP bearer
- or HTTP basic
Path parameters
org_slugstring required
The slug of the organization
Query parameters
on_duplicatestring
Set to "redirect" to receive a 302 redirect to the existing repo instead of a 409 error when a duplicate slug is detected.
Request body
Response
Lists repositories for the specified organization. The authenticated user must be a member of the organization.
Changes
No recorded changes to this operation across all 2 revisions of this API.