curl --request POST \
--url https://aws-us-east-2.api.entire.io/api/v1/repos/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"<string>"
],
"include": [
"activity"
]
}
'import requests
url = "https://aws-us-east-2.api.entire.io/api/v1/repos/batch"
payload = {
"ids": ["<string>"],
"include": ["activity"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['<string>'], include: ['activity']})
};
fetch('https://aws-us-east-2.api.entire.io/api/v1/repos/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://aws-us-east-2.api.entire.io/api/v1/repos/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
'<string>'
],
'include' => [
'activity'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://aws-us-east-2.api.entire.io/api/v1/repos/batch"
payload := strings.NewReader("{\n \"ids\": [\n \"<string>\"\n ],\n \"include\": [\n \"activity\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://aws-us-east-2.api.entire.io/api/v1/repos/batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"<string>\"\n ],\n \"include\": [\n \"activity\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://aws-us-east-2.api.entire.io/api/v1/repos/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"<string>\"\n ],\n \"include\": [\n \"activity\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"from_db": true,
"repos": [
{
"archived": true,
"auto_run_on_push": true,
"capabilities": {
"can_manage_access": true,
"can_manage_settings": true,
"data_role": "<string>"
},
"checkpoint_count": 123,
"default_branch": "<string>",
"description": "<string>",
"full_name": "<string>",
"github_id": 123,
"html_url": "<string>",
"id": "<string>",
"language": "<string>",
"name": "<string>",
"open_pr_count": 123,
"owning_project_id": "<string>",
"permission": "<string>",
"private": true,
"public_sharing_enabled": true,
"runners_enabled": true,
"stargazers_count": 123,
"trails_enabled": true,
"viewer_can_see_checkpoint_data": true,
"$schema": "/api/v1/schemas/RepoListItem.json",
"activity": [
123
],
"is_provider_admin": true,
"repo_group_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"updated_at": "2023-11-07T05:31:56Z",
"$schema": "/api/v1/schemas/ReposListOutputBody.json"
}{
"error": "<string>",
"$schema": "/api/v1/schemas/ApiError.json",
"blocking_trail": 123,
"code": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"$schema": "/api/v1/schemas/ApiError.json",
"blocking_trail": 123,
"code": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"$schema": "/api/v1/schemas/ApiError.json",
"blocking_trail": 123,
"code": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"$schema": "/api/v1/schemas/ApiError.json",
"blocking_trail": 123,
"code": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"$schema": "/api/v1/schemas/ApiError.json",
"blocking_trail": 123,
"code": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"$schema": "/api/v1/schemas/ApiError.json",
"blocking_trail": 123,
"code": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"$schema": "/api/v1/schemas/ApiError.json",
"blocking_trail": 123,
"code": "<string>",
"detail": "<string>"
}Hydrate repositories by id
Accepted credentials: User token, Plugin installation token.
Returns the repositories named by repo IDs that are held in this region. IDs for repositories in other regions, unknown IDs, and repositories you cannot view are omitted without error.
Use an own-account bearer token (including supported service accounts) or a Core-issued plugin installation bearer token, subject to the permissions and restrictions below. Plugin assertion JWTs and plugin OAuth user-delegation tokens are not accepted here.
Requires live repository view_metadata permission on each requested repository, which pull, list or manage_settings grants (contents:read for plugin installations). Other authorized automation principals can also use this operation.
curl --request POST \
--url https://aws-us-east-2.api.entire.io/api/v1/repos/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"<string>"
],
"include": [
"activity"
]
}
'import requests
url = "https://aws-us-east-2.api.entire.io/api/v1/repos/batch"
payload = {
"ids": ["<string>"],
"include": ["activity"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['<string>'], include: ['activity']})
};
fetch('https://aws-us-east-2.api.entire.io/api/v1/repos/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://aws-us-east-2.api.entire.io/api/v1/repos/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
'<string>'
],
'include' => [
'activity'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://aws-us-east-2.api.entire.io/api/v1/repos/batch"
payload := strings.NewReader("{\n \"ids\": [\n \"<string>\"\n ],\n \"include\": [\n \"activity\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://aws-us-east-2.api.entire.io/api/v1/repos/batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"<string>\"\n ],\n \"include\": [\n \"activity\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://aws-us-east-2.api.entire.io/api/v1/repos/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"<string>\"\n ],\n \"include\": [\n \"activity\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"from_db": true,
"repos": [
{
"archived": true,
"auto_run_on_push": true,
"capabilities": {
"can_manage_access": true,
"can_manage_settings": true,
"data_role": "<string>"
},
"checkpoint_count": 123,
"default_branch": "<string>",
"description": "<string>",
"full_name": "<string>",
"github_id": 123,
"html_url": "<string>",
"id": "<string>",
"language": "<string>",
"name": "<string>",
"open_pr_count": 123,
"owning_project_id": "<string>",
"permission": "<string>",
"private": true,
"public_sharing_enabled": true,
"runners_enabled": true,
"stargazers_count": 123,
"trails_enabled": true,
"viewer_can_see_checkpoint_data": true,
"$schema": "/api/v1/schemas/RepoListItem.json",
"activity": [
123
],
"is_provider_admin": true,
"repo_group_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"updated_at": "2023-11-07T05:31:56Z",
"$schema": "/api/v1/schemas/ReposListOutputBody.json"
}{
"error": "<string>",
"$schema": "/api/v1/schemas/ApiError.json",
"blocking_trail": 123,
"code": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"$schema": "/api/v1/schemas/ApiError.json",
"blocking_trail": 123,
"code": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"$schema": "/api/v1/schemas/ApiError.json",
"blocking_trail": 123,
"code": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"$schema": "/api/v1/schemas/ApiError.json",
"blocking_trail": 123,
"code": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"$schema": "/api/v1/schemas/ApiError.json",
"blocking_trail": 123,
"code": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"$schema": "/api/v1/schemas/ApiError.json",
"blocking_trail": 123,
"code": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"$schema": "/api/v1/schemas/ApiError.json",
"blocking_trail": 123,
"code": "<string>",
"detail": "<string>"
}Body
Response
OK
Was this page helpful?