Chains
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"
}
}
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"
}
}
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