Expand GET /contract/list and click Try it out and then Execute to receive the list of the available contracts. List of key terms.
If you have contracts associated with your Impossible Cloud Management Console (ICMC) account, you should receive a response body containing all your contracts, for example:
Change the allocatedCapacity to the number of bytes you'd like to allocate to the new partner
Copy your distributorContractId from the previous request and paste it between quotes in the appropriate part of the request body as the value of the distributorContractId key;
Enter the new partner name as the value of the name key.
Let's say we'd like to create a new partner named "New partner company" with the allocated capacity of 5 TB. Eventually, the partnerDetails field should look like this:
You can set allocatedCapacity value to "0" if you'd like that partner to use the "Pay-per-use" model.
Click "Execute".
If the body is correct and there is enough capacity to be allocated, you should receive a response body containing information about the newly created partner:
Where:
id is the unique identifier of the new partner;
distributorContractId is the unique identifier of your distributor account;
name is the name of the new partner;
allocatedCapacity is the storage allocated to that partner just now.
Copy the partner's id from the previous request and paste it to the "partnerID field.
Edit the partnerDetails field:
Let's say we'd like to change the partner's allocated storage capacity to 250 MB. Eventually, the partnerDetails field should look like this:
Click "Execute".
If the body is correct and the new name is correct, you should receive a response body like this:
You can update partner's name and change the partner's allocated capacity within a single request. In this case, the partnerDetails body will look like this:
{
"allocatedCapacity": 250000000,