Skip to main content

PinningApi

All URIs are relative to https://api.estuary.tech

MethodHTTP requestDescription
pinningPinsGetGET /pinning/pinsList all pin status objects
pinningPinsPinidDeleteDELETE /pinning/pins/{pinid}Delete a pinned object
pinningPinsPinidGetGET /pinning/pins/{pinid}Get a pin status object
pinningPinsPinidPostPOST /pinning/pins/{pinid}Replace a pinned object
pinningPinsPostPOST /pinning/pinsAdd and pin object
# **pinningPinsGet** > pinningPinsGet()

List all pin status objects

This endpoint lists all pin status objects

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PinningApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

PinningApi apiInstance = new PinningApi();
try {
apiInstance.pinningPinsGet();
} catch (ApiException e) {
System.err.println("Exception when calling PinningApi#pinningPinsGet");
e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json
# **pinningPinsPinidDelete** > pinningPinsPinidDelete(pinid)

Delete a pinned object

This endpoint deletes a pinned object.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PinningApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

PinningApi apiInstance = new PinningApi();
String pinid = "pinid_example"; // String | Pin ID
try {
apiInstance.pinningPinsPinidDelete(pinid);
} catch (ApiException e) {
System.err.println("Exception when calling PinningApi#pinningPinsPinidDelete");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
pinidStringPin ID

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json
# **pinningPinsPinidGet** > pinningPinsPinidGet(pinid)

Get a pin status object

This endpoint returns a pin status object.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PinningApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

PinningApi apiInstance = new PinningApi();
String pinid = "pinid_example"; // String | cid
try {
apiInstance.pinningPinsPinidGet(pinid);
} catch (ApiException e) {
System.err.println("Exception when calling PinningApi#pinningPinsPinidGet");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
pinidStringcid

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json
# **pinningPinsPinidPost** > pinningPinsPinidPost(pinid)

Replace a pinned object

This endpoint replaces a pinned object.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PinningApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

PinningApi apiInstance = new PinningApi();
String pinid = "pinid_example"; // String | Pin ID
try {
apiInstance.pinningPinsPinidPost(pinid);
} catch (ApiException e) {
System.err.println("Exception when calling PinningApi#pinningPinsPinidPost");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
pinidStringPin ID

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json
# **pinningPinsPost** > pinningPinsPost(cid, name)

Add and pin object

This endpoint adds a pin to the IPFS daemon.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PinningApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

PinningApi apiInstance = new PinningApi();
String cid = "cid_example"; // String | cid
String name = "name_example"; // String | name
try {
apiInstance.pinningPinsPost(cid, name);
} catch (ApiException e) {
System.err.println("Exception when calling PinningApi#pinningPinsPost");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
cidStringcid
nameStringname

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json