Skip to main content

AnchorPoints API

All URIs are relative to http://localhost:1000

MethodHTTP requestDescription
anchor_points_create_new_anchor_pointPOST /anchor_points/create/anchor_points/create [POST]
anchor_points_delete_specific_anchor_pointPOST /anchor_points/{anchor_point}/delete/anchor_points/{anchor_point}/delete [POST]
anchor_points_snapshotGET /anchor_points/anchor_points [GET]

anchor_points_create_new_anchor_point​

AnchorPoint anchor_points_create_new_anchor_point(transferables=transferables, seeded_anchor_point=seeded_anchor_point)

/anchor_points/create [POST]

This will create a anchorPoint.

Example​

import pieces_os_client
from pieces_os_client.models.anchor_point import AnchorPoint
from pieces_os_client.models.seeded_anchor_point import SeededAnchorPoint
from pieces_os_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:1000
# See configuration.py for a list of all supported configuration parameters.
configuration = pieces_os_client.Configuration(
host="http://localhost:1000"
)


# Enter a context with an instance of the API client
with pieces_os_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pieces_os_client.AnchorPointsApi(api_client)
transferables = True # bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) (optional)
seeded_anchor_point = pieces_os_client.SeededAnchorPoint() # SeededAnchorPoint | (optional)

try:
# /anchor_points/create [POST]
api_response = api_instance.anchor_points_create_new_anchor_point(transferables=transferables, seeded_anchor_point=seeded_anchor_point)
print("The response of AnchorPointsApi->anchor_points_create_new_anchor_point:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnchorPointsApi->anchor_points_create_new_anchor_point: %s\n" % e)

Parameters​

NameTypeDescriptionNotes
transferablesboolThis is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)[optional]
seeded_anchor_pointSeededAnchorPoint[optional]

Return type​

AnchorPoint

Authorization​

No authorization required

HTTP request headers​

  • Content-Type: application/json
  • Accept: application/json, text/plain

HTTP response details​

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

anchor_points_delete_specific_anchor_point​

anchor_points_delete_specific_anchor_point(anchor_point)

/anchor_points/{anchor_point}/delete [POST]

This will delete a specific anchorPoint!

Example​

import pieces_os_client
from pieces_os_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:1000
# See configuration.py for a list of all supported configuration parameters.
configuration = pieces_os_client.Configuration(
host="http://localhost:1000"
)


# Enter a context with an instance of the API client
with pieces_os_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pieces_os_client.AnchorPointsApi(api_client)
anchor_point = 'anchor_point_example' # str | This is the specific uuid of an anchor_point.

try:
# /anchor_points/\{anchor_point\}/delete [POST]
api_instance.anchor_points_delete_specific_anchor_point(anchor_point)
except Exception as e:
print("Exception when calling AnchorPointsApi->anchor_points_delete_specific_anchor_point: %s\n" % e)

Parameters​

NameTypeDescriptionNotes
anchor_pointstrThis is the specific uuid of an anchor_point.

Return type​

void (empty response body)

Authorization​

No authorization required

HTTP request headers​

  • Content-Type: Not defined
  • Accept: text/plain

HTTP response details​

Status codeDescriptionResponse headers
204No Content-
500Internal Server Error-

anchor_points_snapshot​

AnchorPoints anchor_points_snapshot(transferables=transferables)

/anchor_points [GET]

This will get a snapshot of all your anchorPoints.

Example​

import pieces_os_client
from pieces_os_client.models.anchor_points import AnchorPoints
from pieces_os_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:1000
# See configuration.py for a list of all supported configuration parameters.
configuration = pieces_os_client.Configuration(
host="http://localhost:1000"
)


# Enter a context with an instance of the API client
with pieces_os_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pieces_os_client.AnchorPointsApi(api_client)
transferables = True # bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) (optional)

try:
# /anchor_points [GET]
api_response = api_instance.anchor_points_snapshot(transferables=transferables)
print("The response of AnchorPointsApi->anchor_points_snapshot:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnchorPointsApi->anchor_points_snapshot: %s\n" % e)

Parameters​

NameTypeDescriptionNotes
transferablesboolThis is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)[optional]

Return type​

AnchorPoints

Authorization​

No authorization required

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json, text/plain

HTTP response details​

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-