cURL
curl --request POST \ --url https://api.example.com/providers/{id}/resources \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "resource": { "name": "<string>", "description": "<string>", "uri": "<string>", "mimeType": "text/plain", "size": 123, "annotations": {} } } '
{ "resource": { "id": "kSuB9Gf6aD4", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "name": "<string>", "description": "<string>", "uri": "<string>", "mimeType": "text/plain", "size": 123, "annotations": {} } }
Enter 'Bearer' followed by a space and your token (e.g., 'Bearer ${HASMCP_ACCESS_TOKEN}').
Provider ID
Show child attributes
Provider Resource created