cURL
curl --request POST \ --url https://api.example.com/servers/{id}/resources \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "resource": { "serverID": "kSuB9Gf6aD4", "resourceID": "kSuB9Gf6aD4" } } '
{ "resource": { "serverID": "kSuB9Gf6aD4", "resourceID": "kSuB9Gf6aD4" } }
Enter 'Bearer' followed by a space and your token (e.g., 'Bearer ${HASMCP_ACCESS_TOKEN}').
MCP Server ID
Show child attributes
Resource associated