Ethos Developers - API Docs
  • API Documentation
    • Introduction
    • API v2
      • Activity
      • Categories
      • Chains
      • Contributions
      • Nfts
      • Projects
      • Project Votes
      • Score
      • System
      • Users
      • Xp
    • API v1 (deprecated)
      • Activities
      • Addresses
      • Attestations
      • Categories
      • Contracts
      • Contributions
      • Curated Lists
      • ENS
      • Events
      • Exchange Rates
      • Fees
      • Invitations
      • Markets
      • Notifications
      • Profiles
      • Replies
      • Reviews
      • Scores
      • Search
      • Signatures
      • Slashes
      • Twitter
      • Users
      • Vouches
      • XP
  • Whitepaper
    • Whitepaper
Powered by GitBook
On this page
  1. API Documentation
  2. API v2

Chains

PreviousCategoriesNextContributions

Delete a chain (Admin only)

delete
Authorizations
Path parameters
idintegerRequired
Responses
200
Successful response
application/json
Responseany
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
404
Not found
application/json
500
Internal server error
application/json
delete
DELETE /api/v2/chains/{id} HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

  • GETList all available chains
  • POSTAdd a new chain (Admin only)
  • PUTEdit an existing chain (Admin only)
  • DELETEDelete a chain (Admin only)

List all available chains

get
Responses
200
Successful response
application/json
500
Internal server error
application/json
get
GET /api/v2/chains HTTP/1.1
Host: api.ethos.network
Accept: */*
{
  "chains": [
    {
      "id": 1,
      "name": "text",
      "url": "https://example.com",
      "iconUrl": "https://example.com"
    }
  ]
}

Add a new chain (Admin only)

post
Authorizations
Body
namestring · min: 1 · max: 100Required
urlstring · uri | nullableRequired
iconUrlstring · uri | nullableRequired
Responses
200
Successful response
application/json
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
500
Internal server error
application/json
post
POST /api/v2/chains HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 75

{
  "name": "text",
  "url": "https://example.com",
  "iconUrl": "https://example.com"
}
{
  "chain": {
    "id": 1,
    "name": "text",
    "url": "https://example.com",
    "iconUrl": "https://example.com"
  }
}

Edit an existing chain (Admin only)

put
Authorizations
Path parameters
idintegerRequired
Body
namestring · min: 1 · max: 100Required
urlstring · uri | nullableRequired
iconUrlstring · uri | nullableRequired
Responses
200
Successful response
application/json
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
404
Not found
application/json
500
Internal server error
application/json
put
PUT /api/v2/chains/{id} HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 75

{
  "name": "text",
  "url": "https://example.com",
  "iconUrl": "https://example.com"
}
{
  "chain": {
    "id": 1,
    "name": "text",
    "url": "https://example.com",
    "iconUrl": "https://example.com"
  }
}