Membership Tier
This endpoint retrieves all the membershipTiers of an entity.
The Id of the user performing the request.
dummy-useridThe page number of expected set of documents.
1The limit of the number of documents each page.
10The API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokenSuccessful response
Client error
Server error
GET /api/entities/{entityId}/membershipTiers?userId=dummy-userid HTTP/1.1
Host: https:/.questprotocol.xyz
apikey: test
token: dummy-token
Accept: */*
{
"success": true,
"data": [
{
"entityId": "entity123",
"membershipTier": 1,
"xpThreshold": 1000,
"isEnabled": true,
"createdAt": "2023-06-27T12:45:00Z",
"description": "Membership tier description",
"imageIPFS": "ipfs://image123"
}
]
}This endpoint allows to add a new membershipTier for an entity.
The Id of the user performing the request.
dummy-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-token1002ipfs-hashdescriptionSuccessful response
Client error
Server error
POST /api/entities/{entityId}/membershipTiers?userId=dummy-userid HTTP/1.1
Host: https:/.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"xPThreshold": 100,
"membershipTier": 2,
"imageIPFS": "ipfs-hash",
"description": "description"
}{
"success": true
}This endpoint retrieves the membershipTier details of an entity.
The Id of the user performing the request.
dummy-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokenSuccessful response
Client error
Server error
GET /api/entities/{entityId}/membershipTiers/{membershipTier}?userId=dummy-userid HTTP/1.1
Host: https:/.questprotocol.xyz
apikey: test
token: dummy-token
Accept: */*
{
"success": true,
"data": {
"entityId": "entity123",
"membershipTier": 1,
"xpThreshold": 1000,
"isEnabled": true,
"createdAt": "2023-06-27T12:45:00Z",
"description": "Membership tier description",
"imageIPFS": "ipfs://image123"
}
}This endpoint allows to update a membershipTier for an entity.
The Id of the user performing the request.
dummy-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-token100ipfs-hashdescriptionSuccessful response
Client error
Server error
POST /api/entities/{entityId}/membershipTiers/{membershipTier}/update?userId=dummy-userid HTTP/1.1
Host: https:/.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 71
{
"xPThreshold": 100,
"imageIPFS": "ipfs-hash",
"description": "description"
}{
"success": true
}This endpoint allows to delete a membershipTier for an entity.
The Id of the user performing the request.
dummy-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokenSuccessful response
Client error
Server error
POST /api/entities/{entityId}/membershipTiers/{membershipTier}/delete?userId=dummy-userid HTTP/1.1
Host: https:/.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 2
{}{
"success": true
}Claim rewards for a specific membership tier of an entity
This endpoint allows users to claim rewards for a specific membership tier of an entity.
The Id of the user performing the request.
dummy-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Server error
POST /api/entities/{entityId}/membershipTiers/{membershipTier}/claim-rewards?userId=dummy-userid HTTP/1.1
Host: https:/.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"addToDynamicNFT": true
}{
"success": true
}Last updated