operations.add_external_service
POST
/external-service
const url = 'https://raw.githubusercontent.com/federation/v1/external-service';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"service":"example","authentication":{"issuer":"example","token":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://raw.githubusercontent.com/federation/v1/external-service \ --header 'Content-Type: application/json' \ --data '{ "service": "example", "authentication": { "issuer": "example", "token": "example" } }'Add an external service.
Request Body
Section titled “Request Body ” Media type application/json
object
service
required
Name of the external service. Must be unique in the system.
string
authentication
required
object
issuer
required
Issuer associated with the OIDC token.
string
token
required
OIDC id_token issued to the service user from the issuer.
string
Example generated
{ "service": "example", "authentication": { "issuer": "example", "token": "example" }}Responses
Section titled “ Responses ”Service registered successfully
Service already registered
Authorization Error
Internal Error