Skip to content

operations.add_server

POST
/servers
curl --request POST \
--url https://raw.githubusercontent.com/federation/v1/servers \
--header 'Content-Type: application/json' \
--data '{ "server": { "id": "example", "url": "https://candig.uhnresearch.ca", "location": { "name": "UHN", "province": "Ontario", "province-code": "ca-on" }, "testing": true }, "authentication": { "issuer": "example", "token": "example" } }'

Add a server to the federation.

register
boolean

Re-register all known servers/services

Media type application/json
object
server
required

A federated CanDIG instance in the network

object
id
required

Unique id for the server

string
url
required

Base URL of the CanDIG instance

string
Example
https://candig.uhnresearch.ca
location
required
object
name
string
Example
UHN
province
string
Example
Ontario
province-code
string
Example
ca-on
testing

If True, this is only registered as a test server in Federation, not in CanDIG overall

boolean
authentication
required
One of:
CanDIGv2 authentication
object
issuer
required

Issuer associated with the OIDC token.

string
token
required

OIDC access token issued to a user from the issuer. Can be expired, as long as it’s verifiable with the current public key.

string

Server registered successfully

Server already registered

Authorization Error

Internal Error